0.0.2 • Published 3 years ago
eslint-plugin-require-comment v0.0.2
eslint-plugin-require-comment
ESLint plugin to require comments at the top of functions depending on length
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-require-comment
:
npm install eslint-plugin-require-comment --save-dev
Usage
Add require-comment
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["require-comment"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"require-comment/function-description": 2
}
}