0.0.1 • Published 8 years ago
eslint-plugin-jsdoc-lazy v0.0.1
eslint-plugin-jsdoc-lazy
Apply the eslint rule require-jsdoc, but prevent reporting for special class methods and react lifecycle methods.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-jsdoc-lazy:
$ npm install eslint-plugin-jsdoc-lazy --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-jsdoc-lazy globally.
Usage
Add jsdoc-lazy to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"jsdoc-lazy"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"jsdoc-lazy/rule-name": 2
}
}Supported Rules
require-jsdoc - includes the original eslint rule, but ignores:
'constructor',
'render',
'componentWillMount',
'componentDidMount',
'componentWillUnmount',
'shouldComponentUpdate',
'componentWillUpdate',
'componentDidUpdate'