Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
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
version2.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} */functionxyz(){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 |