azat-io / eslint-plugin-perfectionist

🦄 ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
https://eslint-plugin-perfectionist.azat.io
MIT License
1.62k stars 28 forks source link

Allow custom sorting for sort-array-includes #98

Open DB-Alex opened 4 months ago

DB-Alex commented 4 months ago

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