0.1.1 • Published 5 years ago

eslint-plugin-jsx-form v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

eslint-plugin-jsx-form

Static AST checker for HTML form rules on JSX elements.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-jsx-form:

$ npm install eslint-plugin-jsx-form --save-dev

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

Usage

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

{
  "plugins": ["jsx-form"]
}

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

{
  "rules": {
    "jsx-form/rule-name": 2
  }
}

Supported Rules

  • email-disable-autocapitalize
  • email-disable-spellcheck
  • username-disable-autocapitalize
  • username-disable-autocorrect
  • username-disable-spellcheck