mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
Update eslint.md
This commit is contained in:
parent
9321f2686f
commit
c46e032e08
1 changed files with 7 additions and 7 deletions
|
@ -1,19 +1,19 @@
|
|||
# eslint
|
||||
|
||||
> Find problematic patterns or code that doesn’t adhere to certain style guidelines.
|
||||
> A pluggable linting utility for JavaScript and JSX.
|
||||
|
||||
- Create eslint config:
|
||||
|
||||
`eslint --init`
|
||||
|
||||
- Fix lint:
|
||||
- Lint on files:
|
||||
|
||||
`eslint {{filename}}.js {{filename1}}.js`
|
||||
|
||||
- Fix lint issues:
|
||||
|
||||
`eslint --fix`
|
||||
|
||||
- Lint on files:
|
||||
|
||||
`eslint {{filename}}.js`
|
||||
|
||||
- Lint with config:
|
||||
|
||||
`eslint -c {{path/to/config_file}} {{filename}}.js`
|
||||
`eslint -c {{path/to/config_file}} {{app/src}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue