jsdoc/require-template
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-template": "error",
},
},
];/**
*
*/
type Pairs<D, V> = [D, V | undefined];/**
* @template D
* @template V
*/
export type Pairs<D, V> = [D, V | undefined];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
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-template": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Requires that throw statements are documented with @throws tags.
Requires that Promise rejections are documented with @rejects tags.
Sorts tags by a specified sequence according to tag name, optionally adding line breaks between tag groups.
Auto-escape certain characters that are input within block and tag descriptions.