1.0.2 • Published 3 years ago
eslint-plugin-nsb-comments-key v1.0.2
eslint-plugin-nsb-comments-key
检查注释中是否包含指定关键词的插件
安装
安装eslint
$ npm i eslint --save-dev
安装eslint-plugin-nsb-comments-key
$ npm install eslint-plugin-nsb-comments-key --save-dev
使用
添加comments-key到.eslintrc
configuration file 中
package.json
demo
"eslintConfig": {
"plugins": [
"comments-key"
],
"rules": {
"comments-key/diy":[1,{
"wordKeys":["fixme","xxx"]
}]
}
}