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

[type-annotation-spacing] Not recognizing the new keyword #1674

Closed
JimiC opened this issue Mar 4, 2020 · 3 comments
Closed

[type-annotation-spacing] Not recognizing the new keyword #1674

JimiC opened this issue Mar 4, 2020 · 3 comments
Labels
duplicate This issue or pull request already exists package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@JimiC
Copy link

JimiC commented Mar 4, 2020

Repro

{
  "rules": {
    "@typescript-eslint/type-annotation-spacing": "error"
  }
}
type Class = new (...args: any[]) => any;

Expected Result
Linting passes

Actual Result
Linting fails with error Unexpected space before the '=>' @typescript-eslint/type-annotation-spacing

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 2.22.0
@typescript-eslint/parser 2.22.0
TypeScript 3.8.3
ESLint 6.8.0
node 10.18.1
npm 6.13.4
@JimiC JimiC added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Mar 4, 2020
@splincode
Copy link

I have same problem

@jarretmoses
Copy link

jarretmoses commented Mar 4, 2020

My issue was just closed for this I must have missed it in my search but apparently it is resolved #1663.

Here is the resolving PR #1664

@JimiC
Copy link
Author

JimiC commented Mar 4, 2020

Thanks for letting us know.

@JimiC JimiC closed this as completed Mar 4, 2020
@bradzacher bradzacher added duplicate This issue or pull request already exists and removed triage Waiting for maintainers to take a look labels Mar 4, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

No branches or pull requests

4 participants