This package provides Spyder Trap's .eslintrc as an extensible shared config.
Extends Airbnb's config. The main differences being:
-
18.1 Use soft tabs (space character) set to
24 spaces. - Environment declarations
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint
and eslint-plugin-import
.
- Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-spydertrap@latest" peerDependencies
Linux/OSX users can simply run
(
export PKG=eslint-config-spydertrap;
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-spydertrap eslint@^#.#.# eslint-plugin-import@^#.#.#
- Add
"extends": "spydertrap"
to your .eslintrc
TODO
Inquire about rule modification with a Lead Developer.
You can make sure this module lints with itself using npm run lint
.