0.0.5 • Published 9 months ago

eslint-plugin-input-need-maxlength v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

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.

0.0.5

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago