1.0.1 • Published 3 years ago
eslint-plugin-function-comments v1.0.1
eslint-plugin-function-comments
检查 function 是否包含 JSDoc 注释的插件
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-function-comments:
$ npm install eslint-plugin-function-comments --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-function-comments globally.
Usage
Add function-comments to the plugins section of your .eslintrc configuration file or package.json. You can omit the eslint-plugin- prefix:
package.json demo
"eslintConfig": {
"plugins": [
"function-comments"
]
}After the configuration is complete, you can see the prompts when coding and building