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
Would you consider a ignore-prefix for the no-expression-statement.
My use case is logging, which pretty much per definition is a side effect, yet something that a server can't really live without. It would clean up my code a lot, since I now have a lot of this going on.
If the call is a method on an object, I guess then the prefix would apply to the method name and not the object name
...
Or should both object names and method name be considered?
Maybe both? I mean for console.log, would it perhaps be more natural to ignore the whole thing, not just log?
algesten
added a commit
to algesten/tslint-immutable
that referenced
this issue
Sep 9, 2017
Would you consider a ignore-prefix for the
no-expression-statement
.My use case is logging, which pretty much per definition is a side effect, yet something that a server can't really live without. It would clean up my code a lot, since I now have a lot of this going on.
Happy to put a PR together, if you would consider accepting it.
The text was updated successfully, but these errors were encountered: