File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -119,12 +119,12 @@ module.exports = {
119
119
MemberExpression : function ( node ) {
120
120
const propertyName = node . property . name ;
121
121
122
- if (
123
- ! propertyName ||
124
- STATIC_CLASS_PROPERTIES . map ( prop => prop . toLocaleLowerCase ( ) ) . indexOf ( propertyName . toLowerCase ( ) ) === - 1
125
- ) {
126
- return ;
127
- }
122
+ // if (
123
+ // !propertyName ||
124
+ // STATIC_CLASS_PROPERTIES.map(prop => prop.toLocaleLowerCase()).indexOf(propertyName.toLowerCase()) === -1
125
+ // ) {
126
+ // return;
127
+ // }
128
128
129
129
const relatedComponent = utils . getRelatedComponent ( node ) ;
130
130
Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ function componentRule(rule, context) {
537
537
continue ;
538
538
}
539
539
for ( k = 0 , l = componentNode . properties . length ; k < l ; k ++ ) {
540
- if ( componentNode . properties [ k ] . key . name === componentPath [ i ] ) {
540
+ if ( componentNode . properties [ k ] . key && componentNode . properties [ k ] . key . name === componentPath [ i ] ) {
541
541
componentNode = componentNode . properties [ k ] ;
542
542
break ;
543
543
}
You can’t perform that action at this time.
0 commit comments