eslint-plugin-perfectionist icon indicating copy to clipboard operation
eslint-plugin-perfectionist copied to clipboard

Bug: `sort-classes` Attributes with the same name but within different groups are not sorted

Open hugop95 opened this issue 6 months ago • 0 comments

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.

hugop95 avatar Aug 14 '24 22:08 hugop95