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 889
no-unused-expression gives lint error on expressions like o && o.foo()
#1413
Labels
Milestone
Comments
Something like @adidahiya, @jkillian is there any need for support of UPS. Seems like there already is issue #1169 related to support of |
It's a little tricky, because (Sidenote: what's the correct term for a function that is without side-effects but not necessarily pure?) |
IllusionMH
added a commit
to IllusionMH/tslint
that referenced
this issue
Oct 17, 2016
IllusionMH
added a commit
to IllusionMH/tslint
that referenced
this issue
Oct 17, 2016
IllusionMH
added a commit
to IllusionMH/tslint
that referenced
this issue
Nov 16, 2016
IllusionMH
added a commit
to IllusionMH/tslint
that referenced
this issue
Nov 16, 2016
IllusionMH
added a commit
to IllusionMH/tslint
that referenced
this issue
Jan 7, 2017
IllusionMH
added a commit
to IllusionMH/tslint
that referenced
this issue
Jan 7, 2017
Fixed with #1638 - |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
3.13.0
1.8.10
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
test.ts[67, 5]: expected an assignment or function call - on the line
el && el.remove();
Expected behavior
I expected this to not produce any errors. It seems like a valid usage and perfectly readable.
The text was updated successfully, but these errors were encountered: