Code Monkey home page Code Monkey logo

Comments (3)

cartant avatar cartant commented on August 15, 2024 1

I'm going to be deleting the no-unused-declaration rule. Now that the official TypeScript ESLint plugin has a proper implementation of no-unused-vars, no-unused-declaration is pretty much redundant and I would prefer not to support it. If anyone needs to differentiate between vars and imports, the eslint-plugin-unused-imports plugin includes no-unused-vars-ts and no-unused-imports-ts rules - and the latter has a fixer.

from eslint-plugin-etc.

cartant avatar cartant commented on August 15, 2024

Version 4.0.0 of the parser reimplements the ESLint scope functionality. And it's done in a manner that effects problems for this rule. Furthermore, it's difficult to see how the changes that have been made can be used and the no-unused-vars rule that was added - to take advantage of the scope changes - has a large number of open issues for false positives.

I've updated the rules implementation to ignore TypeScript-specific portions of the scope, but that has the effect of disabling checking for a significant number of situations. It is what it is. Until the false positives with the no-unused-vars rule and any issues with the scope implementation are addressed, I won't be spending any time trying to restore the rule's pre-4.0.0 functionality.

from eslint-plugin-etc.

cartant avatar cartant commented on August 15, 2024

Basically, I won't be touching this until these have been investigated/addressed: https://github.com/typescript-eslint/typescript-eslint/milestone/7

from eslint-plugin-etc.

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.