@@ -122,14 +122,14 @@ module.exports = {
122122
123123 return {
124124
125- ClassProperty : function ( node ) {
125+ ClassProperty ( node ) {
126126 if ( ! propsUtil . isDisplayNameDeclaration ( node ) ) {
127127 return ;
128128 }
129129 markDisplayNameAsDeclared ( node ) ;
130130 } ,
131131
132- MemberExpression : function ( node ) {
132+ MemberExpression ( node ) {
133133 if ( ! propsUtil . isDisplayNameDeclaration ( node . property ) ) {
134134 return ;
135135 }
@@ -140,7 +140,7 @@ module.exports = {
140140 markDisplayNameAsDeclared ( component . node ) ;
141141 } ,
142142
143- FunctionExpression : function ( node ) {
143+ FunctionExpression ( node ) {
144144 if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
145145 return ;
146146 }
@@ -149,7 +149,7 @@ module.exports = {
149149 }
150150 } ,
151151
152- FunctionDeclaration : function ( node ) {
152+ FunctionDeclaration ( node ) {
153153 if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
154154 return ;
155155 }
@@ -158,7 +158,7 @@ module.exports = {
158158 }
159159 } ,
160160
161- ArrowFunctionExpression : function ( node ) {
161+ ArrowFunctionExpression ( node ) {
162162 if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
163163 return ;
164164 }
@@ -167,28 +167,28 @@ module.exports = {
167167 }
168168 } ,
169169
170- MethodDefinition : function ( node ) {
170+ MethodDefinition ( node ) {
171171 if ( ! propsUtil . isDisplayNameDeclaration ( node . key ) ) {
172172 return ;
173173 }
174174 markDisplayNameAsDeclared ( node ) ;
175175 } ,
176176
177- ClassExpression : function ( node ) {
177+ ClassExpression ( node ) {
178178 if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
179179 return ;
180180 }
181181 markDisplayNameAsDeclared ( node ) ;
182182 } ,
183183
184- ClassDeclaration : function ( node ) {
184+ ClassDeclaration ( node ) {
185185 if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
186186 return ;
187187 }
188188 markDisplayNameAsDeclared ( node ) ;
189189 } ,
190190
191- ObjectExpression : function ( node ) {
191+ ObjectExpression ( node ) {
192192 if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
193193 // Search for the displayName declaration
194194 node . properties . forEach ( ( property ) => {
0 commit comments