Skip to content

Beware of TSLint's no-unused-variable rule #4

@cartant

Description

@cartant

I'm creating this issue as a reminder to myself and as a note that might be of use to others.

TSLint's no-unused-variable rule still seems to have problems - it has given me grief in the past. If it's enabled, the type information made available to rxjs-tslint-rules seems to change, resulting in the implementation sometimes being unable to determine whether or not an expression is an Observable. This can lead to false positives with the rxjs-no-unused-add rule, etc.

And it's not just rxjs-tslint-rules that's affected. With no-unused-variable enabled, I've seen false positives for TSLint's no-unnecessary-type-assertion rule, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions