mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 01:58:28 +00:00
Update cheatsheets
This commit is contained in:
37
standard
Normal file
37
standard
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# standard
|
||||
|
||||
> The JavaScript Standard Style tool for linting and fixing JavaScript code.
|
||||
> More information: <https://standardjs.com>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user