eslint-plugin-provide-inject-limit
v1.0.0
Published
限制特定目录下的 provide、inject
Downloads
2
Maintainers
Readme
eslint-plugin-provide-inject-limit
限制特定目录下的 provide、inject
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-provide-inject-limit
:
npm install eslint-plugin-provide-inject-limit --save-dev
Usage
Add provide-inject-limit
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"provide-inject-limit"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"provide-inject-limit/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.