eslint-plugin-react-button-has-type

0.0.3 • Public • Published

eslint-plugin-react-button-has-type

Checks that all buttons have a set type attribute

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-react-button-has-type:

$ npm install eslint-plugin-react-button-has-type --save-dev

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

Usage

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

{
    "plugins": [
        "react-button-has-type"
    ]
}

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

{
    "rules": {
        "react-button-has-type/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here

Dependencies (2)

Dev Dependencies (3)

Package Sidebar

Install

npm i eslint-plugin-react-button-has-type

Weekly Downloads

5

Version

0.0.3

License

ISC

Unpacked Size

6.67 kB

Total Files

6

Last publish

Collaborators

  • robguy21