jsdoc/reject-any-type
eslint-plugin-jsdoc
No autofixRecommended
eslint.config.js
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/reject-any-type": "error",
},
},
];/**
* @param {any} abc
*/
function quux () {}/**
* @param {SomeType} abc
*/
function quux () {}Examples from the ESLint documentation.
jsdoc/reject-any-type
eslint-plugin-jsdoc
import jsdoc from "eslint-plugin-jsdoc";
export default [
{
plugins: { jsdoc },
rules: {
"jsdoc/reject-any-type": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
This rule checks the values for a handful of tags: @version, @since, @license and @author.
Requires that all function parameters are documented with a @param tag.
Enforces lines (or no lines) before, after, or between tags.