jsdoc/require-asterisk-prefix
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-asterisk-prefix": "error",
},
},
];/**
@param {Number} foo
*/
function quux (foo) {
// with spaces
}/**
* Desc
*
* @param {Number} foo
* This is more comment.
*/
function quux (foo) {Examples from the ESLint documentation.
jsdoc/require-asterisk-prefix
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/require-asterisk-prefix": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
If tags are present, this rule will prevent empty lines in the block description. If no tags are present, this rule will prevent extra empty lines in the block description.
Requires that all functions (and potentially other contexts) have a description.
This rule checks for multi-line-style comments which fail to meet the criteria of a JSDoc block.
Prefers either function properties or method signatures
This rule reports doc comments that only restate their attached name.
Reports if JSDoc import() statements point to a package which is not listed in dependencies or devDependencies