@gaincompliance/eslint-config-gain

shared eslint rules for gain projects

Stats

StarsIssuesVersionUpdatedCreatedSize
@gaincompliance/eslint-config-gain
0211.0.1118 months ago5 years agoMinified + gzip package size for @gaincompliance/eslint-config-gain in KB

Readme

Shared ESLint Rules

npm license Build Status

Commitizen friendly greenkeeper badge

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'

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.