Improving eslint-config-airbnb.
Note: Please install it globally!
If you have global installed eslint-config-airbnb
and eslint
, you can skip step 1 and step 2.
Step 1. Install eslint
:
npm i -g eslint
Step 2. Install eslint-config-airbnb
in Linux/OSX:
(
export PKG=eslint-config-airbnb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install -g "$PKG@latest"
)
Step 3. Install eslint-config-shanbay
npm i -g eslint-config-shanbay
In .eslintrc.json
or .eslintrc
:
{
"extends": ["airbnb", "shanbay"]
}
or
{
"extends": ["airbnb-base", "shanbay/base"]
}