Giter VIP home page Giter VIP logo

Comments (2)

bradzacher avatar bradzacher commented on May 21, 2024

Digging into this, I don't know what we can do about this without significant work.

Right now our rule sits on top of the base rule, so I think we would have to clone the base rule's code in order to handle this case properly.

This would be a good candidate for using the TS parser services if it reports unused vars.

This should be caught by something like no-redeclare. Though it won't because we haven't added ts-specific handling to that rule.

from typescript-eslint.

armano2 avatar armano2 commented on May 21, 2024

@bradzacher right now there is no real solution for that. It's require some work on parser before we can start.
I started doing PR with support for additional data in scope for typescript "types" but its not near finish.
When it will be done, we can start thinking about solving this.

I made this issue for now just to inform ppl that we are aware about it and we will work on it.

no-redeclare is not possible now without scope analysis (unless we do it in bad way on our side)


type references and annotations are not in eslint scope for now.

from typescript-eslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.