eslint-plugin-innerurl
v0.1.0
Published
检测img标签中的src属性是否为内网地址(以https://mdn.alipayobjects.com开头)
Downloads
9
Maintainers
Readme
eslint-plugin-innerurl
检测img标签中的src属性是否为内网地址(以https://mdn.alipayobjects.com开头)
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-innerurl
:
npm install eslint-plugin-innerurl --save-dev
Usage
Add innerurl
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"innerurl"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"innerurl/innerurl": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.