-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginwontfixThis will not be worked onThis will not be worked on
Description
I'm using JSDoc annomations to tell TypeScript the type of arguments/return values/variables, which works just great. But with the update to @typescript-eslint/parser
version 2.0.0
I'm getting hundreds of "Missing return type on function" errors, which is wrong, because all my functions have a return type defined in the JSDoc comment (which is used by TypeScript).
What code were you trying to parse?
/**
* @returns {string}
*/
function xyz () {
return 'xyz';
}
console.log(xyz);
What did you expect to happen?
I expected that the JSDoc @returns
annotation is considered.
What actually happened?
The JSDoc @returns
annotation is not considered.
Versions
package | version |
---|---|
@typescript-eslint/parser |
2.0.0 |
TypeScript |
3.5.3 |
ESLint |
6.2.2 |
node |
10.5.0 |
npm |
6.4.1 |
Metadata
Metadata
Assignees
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginwontfixThis will not be worked onThis will not be worked on