Update eslint.md
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
# eslint
|
# 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:
|
- Create eslint config:
|
||||||
|
|
||||||
`eslint --init`
|
`eslint --init`
|
||||||
|
|
||||||
- Fix lint:
|
- Lint on files:
|
||||||
|
|
||||||
|
`eslint {{filename}}.js {{filename1}}.js`
|
||||||
|
|
||||||
|
- Fix lint issues:
|
||||||
|
|
||||||
`eslint --fix`
|
`eslint --fix`
|
||||||
|
|
||||||
- Lint on files:
|
|
||||||
|
|
||||||
`eslint {{filename}}.js`
|
|
||||||
|
|
||||||
- Lint with config:
|
- Lint with config:
|
||||||
|
|
||||||
`eslint -c {{path/to/config_file}} {{filename}}.js`
|
`eslint -c {{path/to/config_file}} {{app/src}}`
|
||||||
|
Reference in New Issue
Block a user