eslint-plugin-perfectionist
eslint-plugin-perfectionist copied to clipboard
Bug: `sort-classes` Attributes with the same name but within different groups are not sorted
Describe the bug
Attributes with the same name but within different groups are not sorted. Changing the name of either of the attributes will re-enable sorting between them.
Code example
Configuration
"groups": [
"static-property",
"property"
]
Valid code:
class Class {
a
static a;
}
Invalid code:
class Class {
a
static b;
}
ESLint version
8.57.0
ESLint Plugin Perfectionist version
3.2.0
Additional comments
No response
Validations
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.