0.0.2 • Published 3 years ago

eslint-plugin-require-comment v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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

Supported Rules

0.0.2

3 years ago

0.0.1

3 years ago