8000 Rule proposal: Sort Enum And Interface Keys · Issue #4008 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content
Rule proposal: Sort Enum And Interface Keys #4008
Closed
@PodaruDragos

Description

@PodaruDragos

Description

It would be great it a rule existed where interfaces and enum keys can be sorted.
If this is not considered a thing that might be added, feel free to close this issue

Fail

  interface A {
    b: string;
    a: string;
  }
  
  // eg: Expected a to come before b
  

Pass

interface A {
  a: string;
  b: string;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0