tldr/pages.pl/common/eslint.md

21 lines
330 B
Markdown
Raw Normal View History

2020-04-15 17:07:54 +01:00
# 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}}`