eslint-config-getninjas
This is our eslint config, to centralize and to distribute this config by npm. We are extending eslint-config-airbnb-base
(not the eslint-config-airbnb
, because we don't have necessity of eslint-plugin-jsx-a11y
and eslint-plugin-react
- for now).
Installing
On your project, run the code below:
( export PKG=eslint-config-getninjas; npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"; )
Installing globally
Some editors (like Vim) runs eslint globally, so you need to install eslint dependencies on your environment. To install it, just:
( export PKG=eslint-config-getninjas; npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install -g "$PKG@latest"; )
Usage
We export two ESLint configurations for your usage.
eslint-config-getninjas
Add "extends": "getninjas" to your .eslintrc.
eslint-config-getninjas/legacy
Add "extends": "getninjas/legacy" to your .eslintrc.