eslint-plugin-nsb-comments-key

1.0.2 • Public • Published

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"]
      }]
    }
}

Package Sidebar

Install

npm i eslint-plugin-nsb-comments-key

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.52 kB

Total Files

6

Last publish

Collaborators

  • jamesxpenn