File tree 1 file changed +2
-28
lines changed
1 file changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ module.exports = {
198
198
markDisplayNameAsDeclared ( component . node . type === 'TSAsExpression' ? component . node . expression : component . node ) ;
199
199
} ,
200
200
201
- FunctionExpression ( node ) {
201
+ ' FunctionExpression, FunctionDeclaration, ArrowFunctionExpression' ( node ) {
202
202
if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
203
203
return ;
204
204
}
@@ -207,40 +207,14 @@ module.exports = {
207
207
}
208
208
} ,
209
209
210
- FunctionDeclaration ( node ) {
211
- if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
212
- return ;
213
- }
214
- if ( components . get ( node ) ) {
215
- markDisplayNameAsDeclared ( node ) ;
216
- }
217
- } ,
218
-
219
- ArrowFunctionExpression ( node ) {
220
- if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
221
- return ;
222
- }
223
-
224
- if ( components . get ( node ) ) {
225
- markDisplayNameAsDeclared ( node ) ;
226
- }
227
- } ,
228
-
229
210
MethodDefinition ( node ) {
230
211
if ( ! propsUtil . isDisplayNameDeclaration ( node . key ) ) {
231
212
return ;
232
213
}
233
214
markDisplayNameAsDeclared ( node ) ;
234
215
} ,
235
216
236
- ClassExpression ( node ) {
237
- if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
238
- return ;
239
- }
240
- markDisplayNameAsDeclared ( node ) ;
241
- } ,
242
-
243
- ClassDeclaration ( node ) {
217
+ 'ClassExpression, ClassDeclaration' ( node ) {
244
218
if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
245
219
return ;
246
220
}
You can’t perform that action at this time.
0 commit comments