This repository was archived by the owner on Jan 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 490
Unnecessary semicolon issue #263
Comments
Following the discussion from #216, I've found the best setup for me was to set tslint.json to
after adding |
Thank you @AidanGG for your answer. I did that, but I still have the same problem. Running |
As it turns out, I misunderstood @AidanGG 's answer: the content there should be all the content of |
Alternatively, you can update this rule in your tslint file:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I'm having an issue with class-level arrow functions, e.g.:
I'm also using VSCode and prettier extension. When I run the Format Document command in VSCode, it seems that prettier is doing the formatting (or another extension), but this arrow function will end up having a semicolon at the end:
VSCode highlights this semicolon as an error, and when I run my application, it's complaining about
Unnecessary semicolon
.Looking at tslint repo, I tried to change the behavior by changing my
tslint.json
to this:After doing that, my VSCode editor no longer sees the semicolon as an error, but I still get the
Unnecessary semicolon
when running the applicationThe text was updated successfully, but these errors were encountered: