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

[sort-type-union-intersection-members] Autofixed type not equivalent to original type #4581

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@iliubinskii

Description

@iliubinskii

Repro

{"rules": {"@typescript-eslint/sort-type-union-intersection-members":"warn"  }}
typeExpected=(new(x:string)=>object)&((x:number)=>boolean)&{readonlyx:number;readonlyy:string;};

Expected Result

Should be fixed to:

typeExpected=((x:number)=>boolean)&(new(x:string)=>object)&{readonlyx:number;readonlyy:string;};

Actual Result

Got:

typeExpected=((x:number)=>boolean)&new(x:string)=>object&{readonlyx:number;readonlyy:string;};

Additional Info

No

Versions

packageversion
@typescript-eslint/eslint-plugin5.12.1
@typescript-eslint/parser5.12.1
TypeScript4.5.5
ESLint8.9.0
node14.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    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