tldr/pages/common/eslint.md

20 lines
286 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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 {{path/to/config_file}} {{filename}}.js`