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 has been archived by the owner on Mar 25, 2021. It is now read-only.
[Warn - 12:31:41 PM] The 'trailing-comma' rule threw an error in '[...]/test.ts':
TypeError: Cannot read property 'end' of undefined
at cb ([...]\node_modules\tslint\lib\rules\trailingCommaRule.js:169:133)
at visitNodes ([...]\node_modules\typescript\lib\typescript.js:16144:30)
at Object.forEachChild ([...]\node_modules\typescript\lib\typescript.js:16372:24)
at TrailingCommaWalker.walk ([...]\node_modules\tslint\lib\rules\trailingCommaRule.js:178:19)
at Rule.AbstractRule.applyWithWalker ([...]\node_modules\tslint\lib\language\rule\abstractRule.js:31:16)
at Rule.apply ([...]\node_modules\tslint\lib\rules\trailingCommaRule.js:68:21)
at Linter.applyRule ([...]\node_modules\tslint\lib\linter.js:209:29)
at [...]\node_modules\tslint\lib\linter.js:150:85
at Object.flatMap ([...]\node_modules\tslint\lib\utils.js:160:29)
at Linter.getAllFailures ([...]\node_modules\tslint\lib\linter.js:150:32)
Expected behavior
The output log is not trashed every time I write function in VS Code.
The offending piece of code in trailingCommaRule.ts uses a non-null type assertion, would it be ok to just wrap that call in a conditional?
The text was updated successfully, but these errors were encountered:
Bug Report
TypeScript code being linted
function
with
tslint.json
configuration:Actual behavior
Throws an error:
Expected behavior
The output log is not trashed every time I write
function
in VS Code.The offending piece of code in trailingCommaRule.ts uses a non-null type assertion, would it be ok to just wrap that call in a conditional?
The text was updated successfully, but these errors were encountered: