eslint-plugin-comment-prompt
v1.0.4
Published
commit code for prompt comment
Downloads
89
Maintainers
Readme
eslint-plugin-comment-prompt
commit code for prompt comment
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-comment-prompt:
npm install eslint-plugin-comment-prompt --save-devUsage
Then configure the rules you want to use under the rules key.
import commentPrompt from "eslint-plugin-comment-prompt";
export default [
{
plugins: {
'comment-prompt': commentPrompt
},
rules: {
// 默认 每 20行 代码 需要加一行注释 (有效代码注释比 20)
"comment-prompt/rule-name": ["error", 20]
}
}
];