-
Notifications
You must be signed in to change notification settings - Fork 887
use-before-declare: false positive in destructuring assignment #2551
Comments
I just ran into this as well. |
I have a minimal reproduction:
|
Any aliasing of the destructured param seems to trigger the issue. |
Is |
This issue is still present, happened to me just now. Good stuff! |
Problem still occurs. |
Still exists |
Without typescript I have no errors: With typescript, I get the false positive: |
Error still occurs, the 'variables' used before declaration in |
Same problem ! |
This rule is essentially deprecated... check out the documentation https://palantir.github.io/tslint/rules/no-use-before-declare/ |
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Expected behavior
Clean.
The text was updated successfully, but these errors were encountered: