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