@@ -428,6 +428,7 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
428428 }
429429 }
430430
431+ let memberValue : undefined | string
431432 let modifiers : Modifier [ ] = [ ]
432433 let selectors : Selector [ ] = [ ]
433434 if (
@@ -568,6 +569,10 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
568569 selectors . push ( 'function-property' )
569570 }
570571
572+ if ( ! isFunctionProperty && member . value ) {
573+ memberValue = sourceCode . getText ( member . value )
574+ }
575+
571576 selectors . push ( 'property' )
572577
573578 if (
@@ -593,6 +598,7 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
593598 customGroupMatches ( {
594599 customGroup,
595600 elementName : name ,
601+ elementValue : memberValue ,
596602 modifiers,
597603 selectors,
598604 decorators,
@@ -619,7 +625,7 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
619625 . find ( overloadSignatures => overloadSignatures . includes ( member ) )
620626 ?. at ( - 1 )
621627
622- let value : SortingNodeWithDependencies = {
628+ let sortingNode : SortingNodeWithDependencies = {
623629 size : overloadSignatureGroupMember
624630 ? rangeToDiff ( overloadSignatureGroupMember . range )
625631 : rangeToDiff ( member . range ) ,
@@ -633,7 +639,7 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
633639 ) ,
634640 }
635641
636- accumulator . at ( - 1 ) ! . push ( value )
642+ accumulator . at ( - 1 ) ! . push ( sortingNode )
637643
638644 return accumulator
639645 } ,
0 commit comments