GithubHelp home page GithubHelp logo

Comments (4)

abaran30 avatar abaran30 commented on June 1, 2024 2

There currently is not. Should one be created, perhaps it should also check declarations, exports, providers, etc.

I did not see any prior proposals in the issues. @JamesHenry has this idea been discussed before?

from angular-eslint.

JamesHenry avatar JamesHenry commented on June 1, 2024

I don't believe so, I think it would make sense to add

from angular-eslint.

abaran30 avatar abaran30 commented on June 1, 2024

I created a draft PR #1779, which currently handles the simplest case of a single duplicate in NgModule imports. I left TODO comments with questions around how we might want to configure the rule to handle different cases (maybe we want multiple rules).

Feel free to refer to and/or contribute to the PR. I'll contribute more when I can.

from angular-eslint.

air2 avatar air2 commented on June 1, 2024

Is it also possible to detect if the import is used in the HTML of the component? It currently pretty hard to find out if every import is actually used.

from angular-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.