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] Interprets arrow as colon #1687

Closed
jens-duttke opened this issue Mar 6, 2020 · 1 comment
Closed

[type-annotation-spacing] Interprets arrow as colon #1687

jens-duttke opened this issue Mar 6, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@jens-duttke
Copy link
Contributor

With version 2.22.0 a bug has been introduced which interprets => as colon, and tells me, that there is an unexpected space before the =>.

If i set an override for colon this specific error is gone, but then it expects a space before all colons.

Repro

type WebpackWorker = new () => Worker;
{
  "rules": {
    "@typescript-eslint/type-annotation-spacing": "error"
  }
}

Additional Info

Returns

Unexpected space before the '=>'. [Error/@typescript-eslint/type-annotation-spacing]

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 13.6.0
npm 6.13.7
@jens-duttke jens-duttke added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Mar 6, 2020
@bradzacher
Copy link
Member

Please use the issue search.
#1663 this has been fixed in master.

@bradzacher bradzacher added duplicate This issue or pull request already exists and removed triage Waiting for maintainers to take a look labels Mar 6, 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

2 participants