jsdoc/informative-docs
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/informative-docs": "error",
},
},
];This rule reports doc comments that only restate their attached name.
/** the */
let myValue = 3;/** The user id. */
let userId;Examples from the ESLint documentation.
jsdoc/informative-docs
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/informative-docs": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Reports if JSDoc import() statements point to a package which is not listed in dependencies or devDependencies
This rule checks for multi-line-style comments which fail to meet the criteria of a JSDoc block.
Checks that any @template names are actually used in the connected @typedef or type alias.
If tags are present, this rule will prevent empty lines in the block description. If no tags are present, this rule will prevent extra empty lines in the block description.
Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
Requires that each JSDoc line starts with an *.