jsdoc/check-tag-names
eslint-plugin-jsdoc
Safe autofixRecommended
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-tag-names": "error",
},
},
];/**
* @desc Does a thing.
*/
function quux () {}arg
argument
const
constructor
defaultvalue
desc
emits
exception
extends
fileoverview
func
host
method
overview
prop
return
var
virtual
yield"tagNamePreference": {
"return": "return",
}templateExamples from the ESLint documentation.
jsdoc/check-tag-names
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-tag-names": "error",
},
},
];jsdoc/check-tag-names
jsdoc plugin · correctness
{
"plugins": [
"jsdoc"
],
"rules": {
"jsdoc/check-tag-names": "error"
}
}Biome does not have this rule.
Requires that each @param tag has a description value.
Requires yields are documented with @yields tags.
This rule reports defaults being used on the relevant portion of @param or @default.
Prevents use of multiple asterisks at the beginning of lines.
Requires that the @returns tag has a description value (not including void/undefined type returns).
Requires that all @property tags have names.