@@ -42,7 +42,6 @@ import { isNodeEslintDisabled } from '../utils/is-node-eslint-disabled'
42
42
import { hasPartitionComment } from '../utils/has-partition-comment'
43
43
import { sortNodesByGroups } from '../utils/sort-nodes-by-groups'
44
44
import { getCommentsBefore } from '../utils/get-comments-before'
45
- import { makeNewlinesFixes } from '../utils/make-newlines-fixes'
46
45
import { getNewlinesErrors } from '../utils/get-newlines-errors'
47
46
import { createEslintRule } from '../utils/create-eslint-rule'
48
47
import { getLinesBetween } from '../utils/get-lines-between'
@@ -52,8 +51,8 @@ import { toSingleLine } from '../utils/to-single-line'
52
51
import { rangeToDiff } from '../utils/range-to-diff'
53
52
import { getSettings } from '../utils/get-settings'
54
53
import { isSortable } from '../utils/is-sortable'
55
- import { useGroups } from '../utils/use-groups'
56
54
import { makeFixes } from '../utils/make-fixes'
55
+ import { useGroups } from '../utils/use-groups'
57
56
import { complete } from '../utils/complete'
58
57
import { pairwise } from '../utils/pairwise'
59
58
import { matches } from '../utils/matches'
@@ -652,29 +651,21 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
652
651
653
652
for ( let messageId of messageIds ) {
654
653
context . report ( {
655
- fix : ( fixer : TSESLint . RuleFixer ) => [
656
- ...makeFixes ( {
657
- sortedNodes : sortedNodesExcludingEslintDisabled ,
658
- sourceCode,
659
- options,
660
- fixer,
661
- nodes,
662
- } ) ,
663
- ...makeNewlinesFixes ( {
664
- sortedNodes : sortedNodesExcludingEslintDisabled ,
665
- sourceCode,
666
- options,
667
- fixer,
668
- nodes,
669
- } ) ,
670
- ] ,
671
654
data : {
672
655
nodeDependentOnRight : firstUnorderedNodeDependentOnRight ?. name ,
673
656
right : toSingleLine ( right . name ) ,
674
657
left : toSingleLine ( left . name ) ,
675
658
rightGroup : right . group ,
676
659
leftGroup : left . group ,
677
660
} ,
661
+ fix : ( fixer : TSESLint . RuleFixer ) =>
662
+ makeFixes ( {
663
+ sortedNodes : sortedNodesExcludingEslintDisabled ,
664
+ sourceCode,
665
+ options,
666
+ fixer,
667
+ nodes,
668
+ } ) ,
678
669
node : right . node ,
679
670
messageId,
680
671
} )
0 commit comments