eslint-plugin-community

0.1.1 • Public • Published

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

/eslint-plugin-community/

    Package Sidebar

    Install

    npm i eslint-plugin-community

    Weekly Downloads

    0

    Version

    0.1.1

    License

    ISC

    Unpacked Size

    81.1 kB

    Total Files

    28

    Last publish

    Collaborators

    • tzellman