Create eslint.md

This commit is contained in:
phillip055
2017-10-30 16:27:33 +07:00
committed by GitHub
parent 37ff096332
commit 7e8b983fb5

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

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