jsdoc/match-name
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/match-name": "error",
},
},
];Reports the name portion of a JSDoc tag if matching or not matching a given regular expression.
/**
* @param opt_a
* @param opt_b
*//**
* @param opt_a
* @param opt_b
*/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/match-name
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/match-name": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Reports when certain comment structures are always expected.
Enforces minimum number of newlines before JSDoc comment blocks
Converts non-JSDoc comments preceding or following nodes into JSDoc ones
Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.