@q4/eslint-config-q4-node
v1.0.0
Published
JS ESLint config for Q4 Node projects
Downloads
3
Keywords
Readme
eslint-config-q4-node
JS ESLint config for Q4 Node projects
A fork of the Airbnb style guide at: https://github.com/airbnb/javascript
Install
Install the package and its peer dependencies:
npm install --save-dev eslint eslint-plugin-import eslint-config-airbnb-base q4mobile/eslint-config-q4-node
Add
"extends": "q4-node"
to your .eslintrc file.
Run
If you installed the packages locally, run the local eslint binary:
./node_modules/.bin/eslint .
If you installed all the packages globally with npm install -g
, you can run the global eslint: eslint .
Configure WebStorm
- Open Preferences and go to Languages & Frameworks ▸ JavaScript ▸ Code Quality Tools ▸ ESLint.
- Check Enable.
- Select the eslint binary you want to use in ESLint package.
- Check Automatic search, or check Configuration file and select your .eslintrc file manually.