Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Labels
bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugintriageWaiting for team members to take a look
@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 havesearched for related issues and found none that matched my issue.
  • I haveread the FAQ and my problem is not listed.

Playground Link

null

Repro Code

privateword:{[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 andtype-annotation-spacing are in conflict
it maybe this one#5041 in 5.27.0

QQ截图20220531112505

QQ截图20220531112520

Additional Info

No response

Versions

packageversion
@typescript-eslint/eslint-plugin5.27.0
@typescript-eslint/parser5.27.0
TypeScript4.5.5
ESLint8.9.0
node14.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


      [8]ページ先頭

      ©2009-2025 Movatter.jp