Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[no-undef] doesn't work for return types #1904

Closed
mjackson opened this issue Apr 15, 2020 · 1 comment
Closed

[no-undef] doesn't work for return types #1904

mjackson opened this issue Apr 15, 2020 · 1 comment
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@mjackson
Copy link

I can't get no-undef to warn me about missing types. I didn't see a no-undef rule in the @typescript-eslint rules, so I'd assume I could use the same no-undef rule that is present in core ESLint.

Repro

{
  "rules": {
    "no-undef": "error"
  }
}
export function fun(): ReturnType {
  console.log('wooo!');
}

Expected Result

A warning about ReturnType being undefined.

Actual Result

Nothing.

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 2.19.0
@typescript-eslint/parser 2.19.0
TypeScript 3.8.3
ESLint 6.8.0
node 12.13.0
npm 6.14.2
@mjackson mjackson added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Apr 15, 2020
@bradzacher
Copy link
Member

See #1856

@bradzacher bradzacher added bug Something isn't working and removed triage Waiting for maintainers to take a look labels Apr 15, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

No branches or pull requests

2 participants