jsdoc/require-description
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-description": "error",
},
},
];Requires that all functions (and potentially other contexts) have a description.
/**
*
*/
function quux () {/**
*
*/Examples from the ESLint documentation.
jsdoc/require-description
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-description": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Requires that each JSDoc line starts with an *.
Prefers either function properties or method signatures
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.
This rule checks for multi-line-style comments which fail to meet the criteria of a JSDoc block.
This rule reports doc comments that only restate their attached name.
Reports if JSDoc import() statements point to a package which is not listed in dependencies or devDependencies