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

feat(sort-objects): add custom-ignore to enable customizable ignore rule #131

Open KID-joker opened 3 weeks ago

KID-joker commented 3 weeks ago

Description

fixes #126

Additional context

Because json-schema does not support function type, it is converted through object.


What is the purpose of this pull request?

Before submitting the PR, please make sure you do the following

azat-io commented 3 weeks ago

The idea for such an option is a good one. But don't you think the customization is overly complicated? Perhaps it would be better to use just variable names instead of functions?

KID-joker commented 3 weeks ago

I don't quite understand what you mean. How do variable names solve the problem?

rtatarinov commented 3 weeks ago

@KID-joker does it allow to exclude the files with specific name? can u prodive an example for it?