0.0.13 • Published 2 years ago
eslint-plugin-img-url-no-empty v0.0.13
eslint-plugin-img-url-no-empty
prohibit image url from being empty
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-img-url-no-empty:
npm install eslint-plugin-img-url-no-empty --save-devUsage
Add img-url-no-empty to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"img-url-no-empty"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"img-url-no-empty/rule-name": 2
}
}Rules
TODO: Run eslint-doc-generator to generate the rules list.