@sazze/eslint-config-base
v1.0.5
Published
Sazze's base JS ESLint config, following our styleguide
Downloads
4
Maintainers
Readme
eslint-config-sazze-base
This package provides Sazze's base JS .eslintrc as an extensible shared config.
Usage
We export two ESLint configurations for your usage.
eslint-config-sazze-base
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint
and eslint-plugin-import
.
- Ensure packages are installed with correct version numbers by running:
(
export PKG=@sazze/eslint-config-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 e@sazze/eslint-config-base eslint@^#.#.# eslint-plugin-import@^#.#.#
- Add
"extends": "@sazze/base"
to your .eslintrc