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 = {
119119 MemberExpression : function ( node ) {
120120 const propertyName = node . property . name ;
121121
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+ // }
128128
129129 const relatedComponent = utils . getRelatedComponent ( node ) ;
130130
Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ function componentRule(rule, context) {
537537 continue ;
538538 }
539539 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 ] ) {
541541 componentNode = componentNode . properties [ k ] ;
542542 break ;
543543 }
You can’t perform that action at this time.
0 commit comments