-
Notifications
You must be signed in to change notification settings - Fork 889
no-unused-variable interferes with other rules #3455
Comments
Repro: https://github.com/kevinphelps/no-unused-variable-bug git clone https://github.com/kevinphelps/no-unused-variable-bug.git
cd no-unused-variable-bug
yarn
yarn run lint |
(did not mean to close the issue) |
Sorry about that... |
Don't worry about that. The other issues were hard to find. |
I saw that. I thought I was an idiot until I saw the rename. |
I would love to just enable the proper TypeScript settings and just remove |
You mean the |
I'll give that a shot! Thanks! |
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
When the
no-unused-variable
variable is enabled, theno-void-expression
rule does not report anerror on line 15 and the
no-unbound-method
rule does not report an error on line 18. But if youdisable the
no-unused-variable
rule, theno-void-expression
andno-unbound-method
rulescorrectly reports all of the noted errors.
Expected behavior
The
no-unused-variable
rule should not interfere with other rules.The text was updated successfully, but these errors were encountered: