-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
I searched for duplicates and didn't find any, sorry if I missed one. The bug presented both in CLI and IDE.
Repro:
eslint.config.js
// ... default config ...
settings: {
jsdoc: {
tagNamePreference: {
template: 'typeParam',
}
}
},
rules: {
'jsdoc/check-tag-names': 'error',
'jsdoc/require-template': 'error',
}
// ... example.ts:
/**
* Test interface for type definitions.
*
* @typeParam Foo - dummy type param
*/
export interface Test<Foo extends string> {
/**
*
*/
bar: Foo;
}eslint example.tsExpected behavior
Success. No errors because typeParam is an alias for template (and check-tag-names checks and fixes this behavior if needed).
Actual behavior
ESLint fails. The following error printed:
error Missing @template Foo jsdoc/require-templateEnvironment
- Node version:
v22.21.1 - ESLint version
9.26.0 eslint-plugin-jsdocversion:50.6.17