jsdoc/require-throws-description
eslint-plugin-jsdoc
No autofix
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-throws-description": "error",
},
},
];/**
* @throws {SomeType}
*//**
* @throws {SomeType} Has a description
*/Examples from the ESLint documentation.
jsdoc/require-throws-description
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-throws-description": "error",
},
},
];jsdoc/require-throws-description
jsdoc plugin · style
{
"plugins": [
"jsdoc"
],
"rules": {
"jsdoc/require-throws-description": "error"
}
}Biome does not have this rule.
Requires a description for @yields tags
This rule reports types being used on @param or @returns (redundant with TypeScript).
Removes empty blocks with nothing but possibly line breaks
Reports invalid alignment of JSDoc block lines.
Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).