This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 887
Rule trailing-comma: TypeError: Cannot read property 'end' of undefined #4151
Labels
Comments
@jiripospisil to be fair, this is not valid javascript: const params = {
{}
}; |
@giladgray I'm aware but it's easy to get into a state which is not valid TS/JS while in the middle of changing code. To be clear, I'm not running TSLint manually, I'm using VSCode and it runs it automatically via vscode-tslint. I'm fairly certain there are other ways to trigger this because I've encountered it multiple times but the provided snippet seems pretty reliable and should be enough to add some sort of a fail-safe. |
Same issue, any updates on this one?
|
Duplicate of #3808 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Expected behavior
It should not crash.
The text was updated successfully, but these errors were encountered: