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-intersection-types objects-last #143

Open
2 tasks done
christopher-buss opened this issue May 2, 2024 · 1 comment
Open
2 tasks done

Feature: sort-intersection-types objects-last #143

christopher-buss opened this issue May 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@christopher-buss
Copy link

What rule do you want to change?

Add option to sort objects after.

Describe the problem

I would like the option to sort "objects" last, rather than default them to the first part of the type.

Code example

// Current
interface X {
    SomeObject: {
        Test: number;
     } & OurOtherType
}

// Proposed
interface X {
    SomeObject: OurOtherType & {
        Test: number;
     } 
}

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.
@christopher-buss christopher-buss added the enhancement New feature or request label May 2, 2024
@azat-io
Copy link
Owner

azat-io commented May 2, 2024

Thank you for your issue! We plan to add more flexible support for creating custom groups in the next major version.

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

2 participants