Licence
ISC
Version
0.1.1
Deps
1
Size
79 kB
Vulns
0
Weekly
0
eslint-plugin-community
Rules that promote community and inclusiveness in code
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-community:
$ npm install eslint-plugin-community --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-community globally.
Usage
Add community to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["community"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"community/no-race-names": "warn"
}
}
Rules
| rule | description | recommended | fixable |
|---|---|---|---|
no-race-names |
discourage using common terms that may relate to race |
Key
| icon | description |
|---|---|
| Reports as error in recommended configuration | |
| Reports as warning in recommended configuration | |
Rule is fixable with eslint --fix |