eslint-plugin-input-need-maxlength
v0.0.5
Published
if any input=text element dont have a maxlength attribute, throw error
Downloads
1
Maintainers
Readme
eslint-plugin-input-need-maxlength
if any input=text element dont have a maxlength attribute, throw error
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-input-need-maxlength
:
npm install eslint-plugin-input-need-maxlength --save-dev
Usage
Add input-need-maxlength
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"input-need-maxlength"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"input-need-maxlength/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.