standard: add page
This commit is contained in:
27
pages/common/standard.md
Normal file
27
pages/common/standard.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# standard
|
||||||
|
|
||||||
|
> The JavaScript Standard Style tool for linting and fixing JavaScript code.
|
||||||
|
|
||||||
|
- Lint all JavaScript source files in the current directory:
|
||||||
|
|
||||||
|
`standard`
|
||||||
|
|
||||||
|
- Lint specific JavaScript files:
|
||||||
|
|
||||||
|
`standard {{path/to/file}}`
|
||||||
|
|
||||||
|
- 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}}`
|
Reference in New Issue
Block a user