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

Feature: sort-object-types add support for newlines-between #146

Open
2 tasks done
olegafx opened this issue May 9, 2024 · 0 comments
Open
2 tasks done

Feature: sort-object-types add support for newlines-between #146

olegafx opened this issue May 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@olegafx
Copy link

olegafx commented May 9, 2024

What rule do you want to change?

sort-object-types

Describe the problem

There is no support for newlines-berween, so it's not possible to automatically add newlines between custom groups.

Code example

For example, we have a type like this:

type Person = {
  onBirthday: () => void;
  name: string;
  onAgeChange: (age: number) => void;
  age?: number;
  surname: string;
  birthday?: Date;
}

I expect it to be sorted like this using custom groups:

type Person = {
  name: string;
  surname: string;
  
  age?: number;
  birthday?: Date;
  
  onAgeChange: (age: number) => void;
  onBirthday: () => void;
}

Additional comments

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@olegafx olegafx added the enhancement New feature or request label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant