mirror of https://github.com/CrimsonTome/tldr.git
33 lines
637 B
Markdown
33 lines
637 B
Markdown
# standard
|
|
|
|
> The JavaScript Standard Style tool for linting and fixing JavaScript code.
|
|
> Homepage: <https://standardjs.com>.
|
|
|
|
- Lint all JavaScript source files in the current directory:
|
|
|
|
`standard`
|
|
|
|
- Lint specific JavaScript file(s):
|
|
|
|
`standard {{path/to/file(s)}}`
|
|
|
|
- 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}}`
|