1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:02:18 +02:00

Create eslint.md

This commit is contained in:
phillip055 2017-10-30 16:27:33 +07:00 committed by GitHub
parent 37ff096332
commit 7e8b983fb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1,19 @@
# eslint
> Find problematic patterns or code that doesn’t 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`