@@ -8,7 +8,6 @@ const variableUtil = require('../util/variable');
8
8
const propsUtil = require ( '../util/props' ) ;
9
9
const docsUrl = require ( '../util/docsUrl' ) ;
10
10
const propWrapperUtil = require ( '../util/propWrapper' ) ;
11
- const propTypesSortUtil = require ( '../util/propTypesSort' ) ;
12
11
13
12
// ------------------------------------------------------------------------------
14
13
// Rule Definition
@@ -96,18 +95,6 @@ module.exports = {
96
95
return ;
97
96
}
98
97
99
- function fix ( fixer ) {
100
- return propTypesSortUtil . fixPropTypesSort (
101
- fixer ,
102
- context ,
103
- declarations ,
104
- ignoreCase ,
105
- requiredFirst ,
106
- callbacksLast ,
107
- sortShapeProp
108
- ) ;
109
- }
110
-
111
98
declarations . reduce ( ( prev , curr , idx , decls ) => {
112
99
if ( curr . type === 'ExperimentalSpreadProperty' || curr . type === 'SpreadElement' ) {
113
100
return decls [ idx + 1 ] ;
@@ -134,8 +121,7 @@ module.exports = {
134
121
// Encountered a non-required prop after a required prop
135
122
context . report ( {
136
123
node : curr ,
137
- message : 'Required prop types must be listed before all other prop types' ,
138
- fix
124
+ message : 'Required prop types must be listed before all other prop types'
139
125
} ) ;
140
126
return curr ;
141
127
}
@@ -150,8 +136,7 @@ module.exports = {
150
136
// Encountered a non-callback prop after a callback prop
151
137
context . report ( {
152
138
node : prev ,
153
- message : 'Callback prop types must be listed after all other prop types' ,
154
- fix
139
+ message : 'Callback prop types must be listed after all other prop types'
155
140
} ) ;
156
141
return prev ;
157
142
}
@@ -160,8 +145,7 @@ module.exports = {
160
145
if ( ! noSortAlphabetically && currentPropName < prevPropName ) {
161
146
context . report ( {
162
147
node : curr ,
163
- message : 'Prop types declarations should be sorted alphabetically' ,
164
- fix
148
+ message : 'Prop types declarations should be sorted alphabetically'
165
149
} ) ;
166
150
return prev ;
167
151
}
0 commit comments