This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
false positive for no-string-based-set-interval
rule only when type checking is enabled
#374
Labels
Difficulty: Medium
People with non-trivial experience in TSLint should be able to send a pull request for this issue.
💀 R.I.P. 💀
Requires Type Checker
Must be implemented with a "typed" rule that uses a TypeScript program.
Type: Bug
typescript
version 2.2.2ts-lint
version 5.2.0running via
gulp-tslint
8.0.0When type checlking is enabled the following code fails with
ERROR: 84:32 no-string-based-set-interval Forbidden setInterval string parameter: process
.This only fails when rule type checking is enabled though, even though this rule says it does not require type checking! No failures here are produced when type checking is not enabled.
However, writing it like this does not produce a failure:
I'm not sure why... I ended up keeping the re-written version since it's simpler, but this feels like a bug.
The text was updated successfully, but these errors were encountered: