2018-01-30 15:35:40 +00:00
|
|
|
# standard
|
|
|
|
|
|
|
|
> The JavaScript Standard Style tool for linting and fixing JavaScript code.
|
|
|
|
|
|
|
|
- Lint all JavaScript source files in the current directory:
|
|
|
|
|
|
|
|
`standard`
|
|
|
|
|
2018-02-02 08:52:06 +00:00
|
|
|
- Lint specific JavaScript file(s):
|
2018-01-30 15:35:40 +00:00
|
|
|
|
2018-02-02 10:27:57 +00:00
|
|
|
`standard {{path/to/file(s)}}`
|
2018-01-30 15:35:40 +00:00
|
|
|
|
|
|
|
- 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}}`
|
2018-01-31 08:55:02 +00:00
|
|
|
|
|
|
|
- Use a custom ESLint environment when linting:
|
|
|
|
|
|
|
|
`standard --env {{environment}}`
|