mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 10:42:07 +02:00
Create eslint.md
This commit is contained in:
parent
37ff096332
commit
7e8b983fb5
1 changed files with 19 additions and 0 deletions
19
pages/common/eslint.md
Normal file
19
pages/common/eslint.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# eslint
|
||||||
|
|
||||||
|
> Find problematic patterns or code that doesn’t adhere to certain style guidelines
|
||||||
|
|
||||||
|
- Create eslint config:
|
||||||
|
|
||||||
|
`eslint --init`
|
||||||
|
|
||||||
|
- Fix lint:
|
||||||
|
|
||||||
|
`eslint --fix`
|
||||||
|
|
||||||
|
- Lint on files:
|
||||||
|
|
||||||
|
`eslint {filename}.js`
|
||||||
|
|
||||||
|
- Lint with config:
|
||||||
|
|
||||||
|
`eslint -c {config file path} {filename}.js`
|
Loading…
Add table
Reference in a new issue