jsdoc/no-multi-asterisks
eslint-plugin-jsdoc
Safe autofixRecommended
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/no-multi-asterisks": "error",
},
},
];Prevents use of multiple asterisks at the beginning of lines.
/**
*
**
*//**
*
* Desc. ***
*/Examples from the ESLint documentation.
jsdoc/no-multi-asterisks
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/no-multi-asterisks": "error",
},
},
];Oxlint does not have this rule.
correctness/useSingleJsDocAsterisk
correctness · since 2.0.0
{
"linter": {
"rules": {
"correctness": {
"useSingleJsDocAsterisk": "error"
}
}
}
}Requires that the @returns tag has a description value (not including void/undefined type returns).
Requires that all @property tags have names.
Requires that each @property tag has a description value.
This rule reports defaults being used on the relevant portion of @param or @default.
Requires that all @typedef and @namespace tags have @property when their type is a plain object, Object, or PlainObject.
Requires that all @param tags have names.