jsdoc/check-values
eslint-plugin-jsdoc
No autofixRecommended
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-values": "error",
},
},
];This rule checks the values for a handful of tags: @version, @since, @license and @author.
/**
* @version
*/
function quux (foo) {/**
* @version 3.4.1
*/
function quux (foo) {Examples from the ESLint documentation.
jsdoc/check-values
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/check-values": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Requires that all function parameters are documented with a @param tag.
Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
Reports invalid alignment of JSDoc block asterisks.
Ensures that if a @yields is present that a yield (or yield with a value) is present in the function body (or that if a @next is present that there is a yield with a return value present).