eslint-plugin-beian
v0.0.1
Published
remind developers that the code needs to put on record
Downloads
2
Maintainers
Readme
eslint-plugin-beian
remind developers that the code needs to put on record
提醒开发者打印输出的结果记得备案!
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-beian
:
npm install eslint-plugin-beian --save-dev
Usage
Add beian
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"beian"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"beian/enforce-beian-console": "error"
}
}
or start with the recommended rule set:
{
"extends": ["plugin:beian/recommended"]
}
Rules
💼 Configurations enabled in.
✅ Set in the recommended
configuration.
🔧 Automatically fixable by the --fix
CLI option.
| Name | Description | 💼 | 🔧 | | :----------------------------------------------------------- | :------------------------------------------------ | :- | :- | | enforce-beian-console | Enforce developer to add [已备案] info in console.xx | ✅ | 🔧 |