jsdoc/require-template-description
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-template-description": "error",
},
},
];/**
* @template {SomeType}
*//**
* @template {SomeType} Has a description
*/Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
jsdoc/require-template-description
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-template-description": "error",
},
},
];jsdoc/require-template-description
jsdoc plugin · style
{
"plugins": [
"jsdoc"
],
"rules": {
"jsdoc/require-template-description": "error"
}
}Biome does not have this rule.
Prefers either function properties or method signatures
Requires that all functions (and potentially other contexts) have a description.
Requires that each JSDoc line starts with an *.
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.