Skip to content

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

@hasban12138

Description

@hasban12138

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugintriageWaiting for team members to take a look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy