-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
Expected behavior
A @returns declaration for class methods with type {this} used to work for a long time:
class Test {
/**
* @returns {this}
*/
method() { return this; }
}but fails after updating to v60.7. Is this a problem in this plugin, or in the underlying type parser?
Actual behavior
135:1 error Syntax error in type: this jsdoc/valid-typesESLint Config
rules: {
"jsdoc/valid-types": "error",
}settings.jsdoc.mode is the default (i.e. typescript).
Environment
- Node version: 22.18
- ESLint version 9.37
eslint-plugin-jsdocversion: 60.7