tldr/pages/common/eslint.md
2017-10-31 00:04:41 +07:00

273 B

eslint

A pluggable linting utility for JavaScript and JSX.

  • Create eslint config:

eslint --init

  • Lint on files:

eslint {{filename}}.js {{filename1}}.js

  • Fix lint issues:

eslint --fix

  • Lint with config:

eslint -c {{path/to/config_file}} {{app/src}}