tldr/pages/common/eslint.md

20 lines
276 B
Markdown
Raw Normal View History

2017-10-30 09:27:33 +00:00
# eslint
> Find problematic patterns or code that doesnt adhere to certain style guidelines
- Create eslint config:
`eslint --init`
- Fix lint:
`eslint --fix`
- Lint on files:
`eslint {filename}.js`
- Lint with config:
`eslint -c {config file path} {filename}.js`