eslint-plugin-custom-menu
v1.0.1
Published
用来扫描代码中菜单是否使用公共组件
Downloads
11
Maintainers
Readme
eslint-plugin-custom-menu
用来扫描代码中菜单是否使用公共组件
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-custom-menu
:
npm install eslint-plugin-custom-menu --save-dev
Usage
Add custom-menu
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"custom-menu"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"custom-menu/rule-name": 2
}
}
Configurations
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
Rules
TODO: Run eslint-doc-generator to generate the rules list.