0.1.1 • Published 7 years ago
eslint-plugin-jsx-form v0.1.1
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-devNext, install eslint-plugin-jsx-form:
$ npm install eslint-plugin-jsx-form --save-devNote: 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