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

Allow custom sorting for sort-array-includes #98

Open
2 tasks done
DB-Alex opened this issue Dec 21, 2023 · 0 comments
Open
2 tasks done

Allow custom sorting for sort-array-includes #98

DB-Alex opened this issue Dec 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@DB-Alex
Copy link

DB-Alex commented Dec 21, 2023

What rule do you want to change?

sort-array-includes

Describe the problem

Would be great to have the same logic als sort-objects in array-includes.

Code example

Current behaviour:

['lg', 'md', 'xl'].includes(breakpoint)

Would be great if it could be:

['md', 'lg', ', 'xl'].includes(breakpoint)

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.
@DB-Alex DB-Alex added the enhancement New feature or request label Dec 21, 2023
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