Code Monkey home page Code Monkey logo

Comments (5)

velvolue avatar velvolue commented on September 12, 2024 1

also can't target be combined with except already?

No, except applies only to from as the documentation states:

except may be defined for a zone, allowing exception paths that would otherwise violate the related from. Note that it does not alter the behaviour of target in any way.

It would be nice if target and from had similar configuration. Either through execpt/exceptTarget as suggested here, or by allowing negated paths.

from eslint-plugin-import.

ljharb avatar ljharb commented on September 12, 2024

Can't you already handle this by using eslint overrides?

from eslint-plugin-import.

velvolue avatar velvolue commented on September 12, 2024

Can't you already handle this by using eslint overrides?

Some use-cases can be solved with overrides, but sadly not all. If you have multiple zones for the same target with different exceptions, you can't represent that with overrides as they would cancel each other out.

from eslint-plugin-import.

velvolue avatar velvolue commented on September 12, 2024

For our use-case specifically, we managed to find a way using overrides in the end (though not as clean as I hoped), so this issue is not a blocker for us. I still think this would be a nice feature though 🙂

from eslint-plugin-import.

ljharb avatar ljharb commented on September 12, 2024

also can't target be combined with except already?

from eslint-plugin-import.

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.