eslint: add page (#1617)

coverage
Starbeamrainbowlabs 2017-11-04 11:38:36 +00:00 committed by GitHub
commit af085efc39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

19
pages/common/eslint.md Normal file
View File

@ -0,0 +1,19 @@
# 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}}`