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

Bug: [space-infix-ops] and [type-annotation-spacing] are in conflict #5115

Closed
4 tasks done
hasban12138 opened this issue May 31, 2022 · 2 comments
Closed
4 tasks done
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look

Comments

@hasban12138
Copy link

hasban12138 commented May 31, 2022

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Playground Link

null

Repro Code

private word: {[key: string]: any} = null;

ESLint Config

module.exports = {
  parser: "@typescript-eslint/parser",
  rules: {
    "space-infix-ops": "off",
    "@typescript-eslint/space-infix-ops": ["error"],
    "@typescript-eslint/type-annotation-spacing": ["error"]
  },
};

tsconfig

No response

Expected Result

it may like this:
private word: {[key: string]: any} = null;

Actual Result

space-infix-ops and type-annotation-spacing are in conflict
it maybe this one #5041 in 5.27.0

QQ截图20220531112505

QQ截图20220531112520

Additional Info

No response

Versions

package version
@typescript-eslint/eslint-plugin 5.27.0
@typescript-eslint/parser 5.27.0
TypeScript 4.5.5
ESLint 8.9.0
node 14.17.6
@hasban12138 hasban12138 added bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels May 31, 2022
@armano2
Copy link
Member

armano2 commented May 31, 2022

fixed by #5113, can you check canary 5.27.1-alpha.5

@hasban12138
Copy link
Author

@armano2 thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 2022
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 triage Waiting for maintainers to take a look
Projects
None yet
Development

No branches or pull requests

2 participants