Skip to content

adalbertoteixeira/eslint-plugin-react-custom-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-react-custom-rules

view on npm Build Status

A collection of rules specific to a custom workflow and pattern.

Installation

You'll first need to install ESLint:

  npm i eslint --save-dev

or

  yarn add -D eslint

Next, install eslint-plugin-react-custom-rules:

  npm install eslint-plugin-react-custom-rules --save-dev

or

  yarn add -D eslint-plugin-react-custom-rules

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

Usage

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

{
  "plugins": [
    "react-custom-rules"
  ]
}

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

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

Supported Rules

  • react-directive-no-value-prop
  • selectors-default-export-only

Notes

Built with yeoman eslint generator.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published