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
{{ message }}
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
I'm using eslint 2.2 and this repo from master. It seems like several rules thow errors due to type casting.
For instance this code:
<any>sinon.stub()
results in this stack trace:
...some removed things.../node_modules/eslint/lib/rules/key-spacing.js:242
property.key.range[1], property.value.range[0]
^
TypeError: Cannot read property 'range' of null
at getPropertyWhitespace (...some removed things.../node_modules/eslint/lib/rules/key-spacing.js:242:50)
at verifySpacing (...some removed things.../node_modules/eslint/lib/rules/key-spacing.js:333:22)
at EventEmitter.Property (...some removed things.../node_modules/eslint/lib/rules/key-spacing.js:373:17)
at emitOne (events.js:95:20)
at EventEmitter.emit (events.js:182:7)
at NodeEventGenerator.enterNode (...some removed things.../node_modules/eslint/lib/util/node-event-generator.js:42:22)
at CodePathAnalyzer.enterNode (...some removed things.../node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:591:23)
at CommentEventGenerator.enterNode (...some removed things.../node_modules/eslint/lib/util/comment-event-generator.js:98:23)
at Controller.controller.traverse.enter (...some removed things.../node_modules/eslint/lib/eslint.js:839:36)
at Controller.__execute (...some removed things.../node_modules/eslint/node_modules/estraverse/estraverse.js:397:31)
at Controller.traverse (...some removed things.../node_modules/eslint/node_modules/estraverse/estraverse.js:495:28)
while removing the casting (and jumping through a few typescript hoops) allows the linter to execute and report normal errors. Can give more info if it'd be helpful. Thanks!
The text was updated successfully, but these errors were encountered:
I'm using eslint 2.2 and this repo from master. It seems like several rules thow errors due to type casting.
For instance this code:
results in this stack trace:
while removing the casting (and jumping through a few typescript hoops) allows the linter to execute and report normal errors. Can give more info if it'd be helpful. Thanks!
The text was updated successfully, but these errors were encountered: