jsdoc/check-access
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-access": "error",
},
},
];/**
* @access foo
*/
function quux (foo) {/**
*
*/
function quux (foo) {Examples from the ESLint documentation.
jsdoc/check-access
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-access": "error",
},
},
];jsdoc/check-access
jsdoc plugin · restriction
{
"plugins": [
"jsdoc"
],
"rules": {
"jsdoc/check-access": "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.
Checks tags that are expected to be empty (e.g., @abstract or @async), reporting if they have content
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.