0.0.5 • Published 5 years ago
eslint-plugin-jsdoc-alignment v0.0.5
DEPRECATED eslint-plugin-jsdoc-alignment
JSDoc alignment rule for ESLint.
2020-09-14 This package was deprecated in favor of this rule, introduced in eslint-plugin-jsdoc through this PR.
This plugin was designed just to check the alignments for the tags param, arg, argument, property, and prop. It can be used along eslint-plugin-jsdoc.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-jsdoc-alignment:
$ npm install eslint-plugin-jsdoc-alignment --save-devUsage
Add jsdoc-alignment to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"jsdoc-alignment"
]
}Then configure the rule to use under the rules section.
{
"rules": {
"jsdoc-alignment/lines-alignment": 2
}
}Supported Rules
- The only rule in this plugin is the
lines-alignment. Check examples in thelines-alignmentrule documentation.