Eslint config itp base
In The Pocket's base JavaScript ESLint config, based on Airbnb's config.
Installation
Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-itp-base@latest" peerDependencies
Linux/OSX users can simply run
(
export PKG=eslint-config-itp-base;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
Which produces and runs a command like:
npm install --save-dev eslint-config-itp-base eslint@^
Usage
Add the following to your .eslintrc file in the project root
{
"extends": "itp-base"
}
Run eslint
eslint .
License
Eslint-Config-Itp-Base is freely distributable under the terms of the MIT license.