eslint-config-itp-base
v1.1.0
Published
In The Pocket's base JS ESLint config, based on Airbnb's config
Downloads
88
Readme
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@^#.#.# eslint-plugin-import@^#.#.#
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.