Skip to content

lessenadam/eslint-plugin-react-conventions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-react-conventions

Some recommended conventions to enforce in react projects.

This borrows heavily from the work of the original ESLint Complexity rule, as well as the component detection routines in eslint-plugin-react. This synthesizes their work.

Big thanks to them!

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-react-conventions:

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

Usage

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

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

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

{
    "rules": {
        "react-conventions/rule-name": 2
    }
}

Supported Rules

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published