1.2.0 • Published 4 years ago
eslint-plugin-lint-magic-words v1.2.0
eslint-plugin-lint
eslint扩展规则
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-lint-magic-words:
$ npm install eslint-plugin-lint-magic-words --save-devUsage
Add lint to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"lint-magic-words"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"lint-magic-words/timer-without-magic-words": "error"
}
}Supported Rules
- Fill in provided rules here