eslint-config-shanbay
v1.0.2
Published
Eslint config for shanbay fe team
Downloads
14
Readme
eslint-config-shanbay
Improving eslint-config-airbnb.
Install
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
Usage
In .eslintrc.json
or .eslintrc
:
{
"extends": ["airbnb", "shanbay"]
}
or
{
"extends": ["airbnb-base", "shanbay/base"]
}