@@ -428,6 +428,7 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
428
428
}
429
429
}
430
430
431
+ let memberValue : undefined | string
431
432
let modifiers : Modifier [ ] = [ ]
432
433
let selectors : Selector [ ] = [ ]
433
434
if (
@@ -568,6 +569,10 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
568
569
selectors . push ( 'function-property' )
569
570
}
570
571
572
+ if ( ! isFunctionProperty && member . value ) {
573
+ memberValue = sourceCode . getText ( member . value )
574
+ }
575
+
571
576
selectors . push ( 'property' )
572
577
573
578
if (
@@ -593,6 +598,7 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
593
598
customGroupMatches ( {
594
599
customGroup,
595
600
elementName : name ,
601
+ elementValue : memberValue ,
596
602
modifiers,
597
603
selectors,
598
604
decorators,
@@ -619,7 +625,7 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
619
625
. find ( overloadSignatures => overloadSignatures . includes ( member ) )
620
626
?. at ( - 1 )
621
627
622
- let value : SortingNodeWithDependencies = {
628
+ let sortingNode : SortingNodeWithDependencies = {
623
629
size : overloadSignatureGroupMember
624
630
? rangeToDiff ( overloadSignatureGroupMember . range )
625
631
: rangeToDiff ( member . range ) ,
@@ -633,7 +639,7 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
633
639
) ,
634
640
}
635
641
636
- accumulator . at ( - 1 ) ! . push ( value )
642
+ accumulator . at ( - 1 ) ! . push ( sortingNode )
637
643
638
644
return accumulator
639
645
} ,
0 commit comments