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.
// using "semicolon": [true, "always"]// actually doesnt mean it requires semicolon in all// common positions (e.g. every field - just some fields).classA{a=0;// <- not reported}classB{b=()=>({b: 0});// <- not reported}classC{c=()=>({c: 0});// <- reported, WTH? It is same as a case B...}classD{d(){return0;}// <- not reported (which is fine IMO)}
with tslint.json configuration:
..."semicolon": [true, "always"],
...
Actual behavior
C case is reported (Unnecessary semicolon).
Expected behavior
C case should not be reported. Or both fields with arrow function should be reported (B and C), but it would be IMO inconsistent, since other fields (case A) are not being reported.
The text was updated successfully, but these errors were encountered:
Right now the "always" option mostly just enforces the existence of semicolons in certain positions and only disallows semicolons in one position. The semantics could use some cleaning up; perhaps the reporting of "unnecessary" semicolons belongs in another rule option?
Bug Report
4.3.1
2.1.4
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
C case is reported (
Unnecessary semicolon
).Expected behavior
C case should not be reported. Or both fields with arrow function should be reported (B and C), but it would be IMO inconsistent, since other fields (case A) are not being reported.
The text was updated successfully, but these errors were encountered: