2025-03-14 21:59:59 -06:00
|
|
|
# standard
|
|
|
|
|
|
|
|
|
|
> The JavaScript Standard Style tool for linting and fixing JavaScript code.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://standardjs.com/#usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Lint all JavaScript source files in the current directory:
|
|
|
|
|
|
|
|
|
|
`standard`
|
|
|
|
|
|
|
|
|
|
- Lint specific JavaScript file(s):
|
|
|
|
|
|
|
|
|
|
`standard {{path/to/file1 path/to/file2 ...}}`
|
|
|
|
|
|
|
|
|
|
- Apply automatic fixes during linting:
|
|
|
|
|
|
|
|
|
|
`standard --fix`
|
|
|
|
|
|
|
|
|
|
- Declare any available global variables:
|
|
|
|
|
|
|
|
|
|
`standard --global {{variable}}`
|
|
|
|
|
|
|
|
|
|
- Use a custom ESLint plugin when linting:
|
|
|
|
|
|
|
|
|
|
`standard --plugin {{plugin}}`
|
|
|
|
|
|
|
|
|
|
- Use a custom JS parser when linting:
|
|
|
|
|
|
|
|
|
|
`standard --parser {{parser}}`
|
|
|
|
|
|
|
|
|
|
- Use a custom ESLint environment when linting:
|
|
|
|
|
|
|
|
|
|
`standard --env {{environment}}`
|