eslint-plugin-react-conventions

0.0.0 • Public • Published

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

  • Fill in provided rules here

Package Sidebar

Install

npm i eslint-plugin-react-conventions

Weekly Downloads

2

Version

0.0.0

License

ISC

Unpacked Size

9.72 kB

Total Files

5

Last publish

Collaborators

  • lessenadam