jsdoc/require-throws-type
eslint-plugin-jsdoc
No autofixRecommended
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-throws-type": "error",
},
},
];/**
* @throws
*//**
* @throws {SomeType}
*/Examples from the ESLint documentation.
jsdoc/require-throws-type
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-throws-type": "error",
},
},
];jsdoc/require-throws-type
jsdoc plugin · pedantic
{
"plugins": [
"jsdoc"
],
"rules": {
"jsdoc/require-throws-type": "error"
}
}Biome does not have this rule.
Requires that each @property tag has a type value (in curly brackets).
Requires yields are documented with @yields tags.
Requires that each @param tag has a description value.
This rule reports defaults being used on the relevant portion of @param or @default.