Closed
Description
Expected behavior
No error.
Actual behavior
7:0 error The type 'T' is undefined jsdoc/no-undefined-types
ESLint Config
{
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["jsdoc"],
"root": true,
"rules": {
"jsdoc/no-undefined-types": "error"
},
"settings": {
"jsdoc": {
"mode": "typescript"
}
}
}
ESLint sample
/**
* @template T
* @param {T} arg
*/
function example(arg) {
/** @param {T} */
function inner(x) {
}
}
Environment
- Node version: v14.1.0
- ESLint version: v7.1.0
eslint-plugin-jsdoc
version: 27.0.0