-
Notifications
You must be signed in to change notification settings - Fork 885
Semicolon rule should flag unnecessary semicolons on class member functions #1476
Comments
I'm not convinced this is need for 4.0, but wouldn't hurt to get it in either. It does seem like a little bit of a minute option though, I'm not entirely convinced it's worth the added complexity |
Just as a feedback item (not sure if this is the right venue?), we just stumbled across this, and were very surprised this. I probably don't quite understand the rationale behind this, but in particular that tslint flags semicolons as unnecessary in this position (i.e. doesn't just accept leaving them out) seems confusing. |
You can get the old behavior back with the |
Yeah, I figured so much. I'd have expected |
For people coming to this thread looking for the correct tslint config (as I did) - the correct syntax for this would be: |
@popstr Yes, that's what I'm using as well.
|
I've created #3216 because ignoring is a bad idea in terms of consistency, and the rule without the |
We changed the behavior of the semicolon rule to allow omission of the trailing semicolon after bound class member functions:
I propose that we actually ban semicolons at that location in TSLint 4.0. We can support the old functionality with a new option
allow-bound-class-methods
.The text was updated successfully, but these errors were encountered: