0.0.4 • Published 2 years ago
eslint-plugin-aupup-img-alt v0.0.4
eslint-plugin-aupup-img-alt
Custom img alt attribute validation
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-aupup-img-alt
:
npm install eslint-plugin-aupup-img-alt --save-dev
Usage
Add aupup-img-alt
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"aupup-img-alt"
]
}
You can use all of them by extends
{
"extends": [
"plugin:aupup-img-alt/recommended"
],
}
or you want to use under the rules section.
{
"rules": {
"aupup-img-alt/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.