@@ -14,7 +14,7 @@ module.exports = Components.detect(function(context, components, utils) {
14
14
15
15
var sourceCode = context . getSourceCode ( ) ;
16
16
var config = context . options [ 0 ] || { } ;
17
- var acceptTranspilerName = config . acceptTranspilerName || false ;
17
+ var ignoreTranspilerName = config . ignoreTranspilerName || false ;
18
18
19
19
var MISSING_MESSAGE = 'Component definition is missing display name' ;
20
20
@@ -141,21 +141,21 @@ module.exports = Components.detect(function(context, components, utils) {
141
141
} ,
142
142
143
143
FunctionExpression : function ( node ) {
144
- if ( ! acceptTranspilerName || ! hasTranspilerName ( node ) ) {
144
+ if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
145
145
return ;
146
146
}
147
147
markDisplayNameAsDeclared ( node ) ;
148
148
} ,
149
149
150
150
FunctionDeclaration : function ( node ) {
151
- if ( ! acceptTranspilerName || ! hasTranspilerName ( node ) ) {
151
+ if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
152
152
return ;
153
153
}
154
154
markDisplayNameAsDeclared ( node ) ;
155
155
} ,
156
156
157
157
ArrowFunctionExpression : function ( node ) {
158
- if ( ! acceptTranspilerName || ! hasTranspilerName ( node ) ) {
158
+ if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
159
159
return ;
160
160
}
161
161
markDisplayNameAsDeclared ( node ) ;
@@ -169,14 +169,14 @@ module.exports = Components.detect(function(context, components, utils) {
169
169
} ,
170
170
171
171
ClassDeclaration : function ( node ) {
172
- if ( ! acceptTranspilerName || ! hasTranspilerName ( node ) ) {
172
+ if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
173
173
return ;
174
174
}
175
175
markDisplayNameAsDeclared ( node ) ;
176
176
} ,
177
177
178
178
ObjectExpression : function ( node ) {
179
- if ( ! acceptTranspilerName || ! hasTranspilerName ( node ) ) {
179
+ if ( ignoreTranspilerName || ! hasTranspilerName ( node ) ) {
180
180
// Search for the displayName declaration
181
181
node . properties . forEach ( function ( property ) {
182
182
if ( ! property . key || ! isDisplayNameDeclaration ( property . key ) ) {
@@ -205,7 +205,7 @@ module.exports = Components.detect(function(context, components, utils) {
205
205
module . exports . schema = [ {
206
206
type : 'object' ,
207
207
properties : {
208
- acceptTranspilerName : {
208
+ ignoreTranspilerName : {
209
209
type : 'boolean'
210
210
}
211
211
} ,
0 commit comments