jsdoc/require-tags
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-tags": "error",
},
},
];/**
*
*/
function quux () {}/**
* @see
*/
function quux () {}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-tags
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-tags": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Requires that Promise rejections are documented with @rejects tags.
Requires @template tags be present when type parameters are used.
Requires that throw statements are documented with @throws tags.
Requires a hyphen before the @param description (and optionally before @property descriptions).
Sorts tags by a specified sequence according to tag name, optionally adding line breaks between tag groups.