mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 22:55:31 +02:00
eslint: add page (#1617)
This commit is contained in:
commit
af085efc39
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
|
||||
|
||||
> A pluggable linting utility for JavaScript and JSX.
|
||||
|
||||
- Create eslint config:
|
||||
|
||||
`eslint --init`
|
||||
|
||||
- Lint on files:
|
||||
|
||||
`eslint {{filename}}.js {{filename1}}.js`
|
||||
|
||||
- Fix lint issues:
|
||||
|
||||
`eslint --fix`
|
||||
|
||||
- Lint with config:
|
||||
|
||||
`eslint -c {{path/to/config_file}} {{app/src}}`
|
Loading…
Add table
Reference in a new issue