mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-10 11:29:59 +03:00
create eslint.md
initial
This commit is contained in:
parent
4818ca04be
commit
b0f7b04e8b
20
pages.pl/common/eslint.md
Normal file
20
pages.pl/common/eslint.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# eslint
|
||||||
|
|
||||||
|
> A pluggable linting utility for JavaScript and JSX.
|
||||||
|
> More information: <https://eslint.org>.
|
||||||
|
|
||||||
|
- Create eslint config:
|
||||||
|
|
||||||
|
`eslint --init`
|
||||||
|
|
||||||
|
- Lint on a given set of files:
|
||||||
|
|
||||||
|
`eslint {{filename}}.js {{filename1}}.js`
|
||||||
|
|
||||||
|
- Fix lint issues:
|
||||||
|
|
||||||
|
`eslint --fix`
|
||||||
|
|
||||||
|
- Lint with config:
|
||||||
|
|
||||||
|
`eslint -c {{path/to/config_file}} {{app/src}}`
|
Loading…
Reference in New Issue
Block a user