jsdoc/empty-tags
eslint-plugin-jsdoc
Safe autofixRecommended
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/empty-tags": "error",
},
},
];Checks tags that are expected to be empty (e.g., @abstract or @async), reporting if they have content
/**\r
* Desc.\r
* @abstract foo\r
*/\r
function quux () {}/**
* @abstract
*/
function quux () {Examples from the ESLint documentation.
jsdoc/empty-tags
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/empty-tags": "error",
},
},
];jsdoc/empty-tags
jsdoc plugin · restriction
{
"plugins": [
"jsdoc"
],
"rules": {
"jsdoc/empty-tags": "error"
}
}Biome does not have this rule.
Ensures that property names in JSDoc are not duplicated on the same block and that nested properties have defined roots.
Prohibits use of @implements on non-constructor functions (to enforce the tag only being used on classes/constructors).
Requires that all @param tags have names.
Requires that all @typedef and @namespace tags have @property when their type is a plain object, Object, or PlainObject.
Requires that each @property tag has a description value.