You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I enabled this (and all other rules) and tested the plugin with jquery3.1.1. jquery-3.1.1.js.zip
for avoid-scope-typos i get: Cannot read property 'name' of undefined TypeError: Cannot read property 'name' of undefined at check (XXX\node_modules\eslint-plugin-angular\rules\avoid-scope-typos.js:24:75) at Linter.Identifier (XXX\linter\node_modules\eslint-plugin-angular\rules\avoid-scope-typos.js:31:17) at emitOne (events.js:82:20) at Linter.emit (events.js:169:7) at NodeEventGenerator.applySelector (XXX\node_modules\eslint\lib\util\node-event-generator.js:265:26) at NodeEventGenerator.applySelectors (XXX\node_modules\eslint\lib\util\node-event-generator.js:294:22) at NodeEventGenerator.enterNode (XXX\node_modules\eslint\lib\util\node-event-generator.js:308:14) at CodePathAnalyzer.enterNode (XXX\node_modules\eslint\lib\code-path-analysis\code-path-analyzer.js:60 2:23) at Traverser.enter (XXX\node_modules\eslint\lib\linter.js:925:36) at Traverser.__execute (XXX\node_modules\eslint\node_modules\estraverse\estraverse.js:397:31) at Traverser.traverse (XXX\node_modules\eslint\node_modules\estraverse\estraverse.js:501:28)
The other both rules i cannot check again at the moment due to the typos-rules-error, but i had similar problems with it.
The text was updated successfully, but these errors were encountered:
Cannot read property 'name' of undefined
TypeError: Cannot read property 'name' of undefined
at check (XXX/node_modules/eslint-plugin-angular/rules/avoid-scope-typos.js:24:75)
at EventEmitter.Identifier (XXX/node_modules/eslint-plugin-angular/rules/avoid-scope-typos.js:31:17)
at emitOne (events.js:120:20)
at EventEmitter.emit (events.js:210:7)
at NodeEventGenerator.applySelector (XXX/node_modules/eslint/lib/util/node-event-generator.js:265:26)
at NodeEventGenerator.applySelectors (XXX/node_modules/eslint/lib/util/node-event-generator.js:294:22)
at NodeEventGenerator.enterNode (XXX/node_modules/eslint/lib/util/node-event-generator.js:308:14)
at CodePathAnalyzer.enterNode (XXX/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:606:23)
at Traverser.enter (XXX/node_modules/eslint/lib/linter.js:1035:32)
at Traverser.__execute (XXX/node_modules/estraverse/estraverse.js:397:31)
at Traverser.traverse (XXX/node_modules/estraverse/estraverse.js:501:28)
I put a try/catch around the conditional block starting on line 24:
if (bad.indexOf(name) >= 0 && scope.indexOf(node.parent.object.name) >= 0)
And logged node to find the problematic node. I see node.name but no node.parent.object.name
I enabled this (and all other rules) and tested the plugin with jquery3.1.1.
jquery-3.1.1.js.zip
for avoid-scope-typos i get:
Cannot read property 'name' of undefined TypeError: Cannot read property 'name' of undefined at check (XXX\node_modules\eslint-plugin-angular\rules\avoid-scope-typos.js:24:75) at Linter.Identifier (XXX\linter\node_modules\eslint-plugin-angular\rules\avoid-scope-typos.js:31:17) at emitOne (events.js:82:20) at Linter.emit (events.js:169:7) at NodeEventGenerator.applySelector (XXX\node_modules\eslint\lib\util\node-event-generator.js:265:26) at NodeEventGenerator.applySelectors (XXX\node_modules\eslint\lib\util\node-event-generator.js:294:22) at NodeEventGenerator.enterNode (XXX\node_modules\eslint\lib\util\node-event-generator.js:308:14) at CodePathAnalyzer.enterNode (XXX\node_modules\eslint\lib\code-path-analysis\code-path-analyzer.js:60 2:23) at Traverser.enter (XXX\node_modules\eslint\lib\linter.js:925:36) at Traverser.__execute (XXX\node_modules\eslint\node_modules\estraverse\estraverse.js:397:31) at Traverser.traverse (XXX\node_modules\eslint\node_modules\estraverse\estraverse.js:501:28)
The other both rules i cannot check again at the moment due to the typos-rules-error, but i had similar problems with it.
The text was updated successfully, but these errors were encountered: