eslint-plugin-react-extra

ESLint rules to use with React

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
eslint-plugin-react-extra
730.1.07 years ago7 years agoMinified + gzip package size for eslint-plugin-react-extra in KB

Readme

eslint-plugin-react-extra
ESLint rules to use with React

Installation

You'll first need to install ESLint:
$ npm i eslint --save-dev

Next, install eslint-plugin-react-extra:
$ npm install eslint-plugin-react-extra --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-react-extra globally.

Usage

Add react-extra to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
    "plugins": [
        "react-extra"
    ]
}

Then configure the rules you want to use under the rules section.
{
    "rules": {
        "react-extra/rule-name": 2
    }
}

Supported Rules