2.0.6 • Published 7 years ago

eslint-config-grain v2.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

eslint-config-grain

Usage

Install the conventions by running:

npm install --save-dev eslint eslint-config-grain

Then add the extends to your .eslintrc:

{
  "extends": "grain",
  "rules": {
    // your overrides
  }
}

Other configs

This config also exposes a few other configs that I use often and pull in as needed.

You can use them standalone:

{
  "extends": "grain/<config-name>"
}

Or in combination with the base config (recommended)

{
  "extends": ["grain", "grain/<config-name>"]
}

Grain configs

This config also exposes a few other configs that I use often and pull in as needed.

Grain React/React Native project config:

{
  "extends": ["grain", "grain/react"]
}

Grain Vue project config:

{
  "extends": ["grain", "grain/vue"]
}

Example of highly customized config

{
  "extends": [
    "grain/possible-errors", "grain/best-practices", "grain/vue"
  ],
  "rules": { /* custom rules */ }
}