0.1.1 • Published 5 years ago

eslint-plugin-community v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

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

ruledescriptionrecommendedfixable
no-race-namesdiscourage using common terms that may relate to race:warning::wrench:

Key

icondescription
:bangbang:Reports as error in recommended configuration
:warning:Reports as warning in recommended configuration
:wrench:Rule is fixable with eslint --fix