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