1.0.1 • Published 2 years ago

eslint-plugin-function-comments v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

eslint-plugin-function-comments

检查 function 是否包含 JSDoc 注释的插件

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-function-comments:

$ npm install eslint-plugin-function-comments --save-dev

Note: 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