@gaincompliance/eslint-config-gain
v1.0.111
Published
shared eslint rules for gain projects
Downloads
204
Maintainers
Readme
Shared ESLint Rules
Installation
$ npm i @gaincompliance/eslint-config-gain -D
Usage
Extend the rulesets contained in this config to stay in sync with our conventions. Override any conflicting rules in your local config, but consider contributing them back to this config if we should align to that rule, too.
Base
In your base .eslintrc
, extend the es6.js
ruleset:
extends: '@gaincompliance/gain/rules/es6'
Extension
Since ESLint traverses the file system looking for .eslintrc
files in each directory, you can add additional config
files where you use a specific convention beyond the base.
Tests
Base
extends: '@gaincompliance/gain/rules/tests/base'
Mocha
extends: '@gaincompliance/gain/rules/tests/mocha'
Cucumber
extends: '@gaincompliance/gain/rules/tests/cucumber'