Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix]: false positives for no-unused-... when using TS type assertions #2536

Merged
merged 1 commit into from Jan 15, 2020
Merged

[Fix]: false positives for no-unused-... when using TS type assertions #2536

merged 1 commit into from Jan 15, 2020

Commits on Dec 28, 2019

  1. [Fix] no-unused-prop-types, no-unused-state: fix false positives …

    …when using TS type assertions
    
    Fixes #2517
    
     - add `unwrapTSAsExpression` to `lib/util/ast`
     - change `as any` assertions in tests to `as unknown`
     - add failing test cases
    Konrad Madej authored and ljharb committed Dec 28, 2019
    Copy the full SHA
    d1dc277 View commit details
    Browse the repository at this point in the history