@socialgouv/eslint-config-strict
v1.0.0-beta.5
Published
SocialGouv strict ESLint config.
Downloads
590
Readme
@socialgouv/eslint-config-strict
Our strict eslint config.
Install
$ npm install -D @socialgouv/eslint-config-strict eslint prettier
# or
$ yarn add -D @socialgouv/eslint-config-strict eslint prettier
Usage
Add this to your .eslintrc.yml
file:
extends:
- "@socialgouv/eslint-config-strict"
or add this to your .eslintrc.json
file:
{
"extends": ["@socialgouv/eslint-config-strict"]
}
Suggestions
In some cases, sorting objects keys doesn't make sense. You can disable this rule for some files and directories:
overrides:
- files:
- src/elements/**/*.js
rules:
sort-keys-fix/sort-keys-fix: off
{
"overrides": [
{
files: ["src/elements/**/*.js"],
rules: {
"sort-keys-fix/sort-keys-fix": "off"
}
}
]
}