Skip to content

meowtec/eslint-plugin-react-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-react-ext

The missing rules for eslint-react-plugin.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-react and eslint-plugin-react-ext:

$ npm install eslint-plugin-react eslint-plugin-react-ext --save-dev

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

Usage

Add eslint-plugin-react-ext to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "react-ext"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "react-ext/no-unused-class-property": 2
    }
}

Supported Rules

  • no-unused-class-property Prevent declaring unused methods of class component.

About

The missing rules for eslint-plugin-react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published