eslint-config-quri-base
v4.0.0
Published
Quri's base JS ESLint config, following our styleguide
Downloads
10
Maintainers
Readme
eslint-config-quri-base
This package provides Quri's base JS .eslintrc as an extensible shared config.
Usage
We export two ESLint configurations for your usage.
eslint-config-quri-base
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint
and eslint-plugin-import
.
npm install --save-dev eslint-config-quri-base eslint-plugin-import eslint
- add
"extends": "quri-base"
to your .eslintrc
eslint-config-quri-base/legacy
Lints ES5 and below. Requires eslint
and eslint-plugin-import
.
npm install --save-dev eslint-config-quri-base eslint-plugin-import eslint
- add
"extends": "quri-base/legacy"
to your .eslintrc
See Quri's overarching ESLint config, Quri's Javascript styleguide, and the ESlint config docs for more information.
Improving this config
Consider adding test cases if you're making complicated rules changes, like anything involving regexes. Perhaps in a distant future, we could use literate programming to structure our README as test cases for our .eslintrc?
You can run tests with npm test
.
You can make sure this module lints with itself using npm run lint
.