Code Monkey home page Code Monkey logo

Comments (5)

fabiospampinato avatar fabiospampinato commented on May 25, 2024

If I'm understanding what you are asking for: ignore files are not optimized to remove kinda self-cancelling rules like that, but if you repeat those 2 lines 1 million times they won't slow down matching because they end up populating the same nodes internally, like they kinda overwrite each other, so I guess there is some kind of implicit merging.

from fast-ignore.

coderaiser avatar coderaiser commented on May 25, 2024

Iā€™m talking not about slowdown, but about overriding ignore. It useful when something was ignored by default and you want to stop ignoring it. How it will work right now for such case:

**/coverage
!**/coverage

coverage is ignored or not when it used by your library?

from fast-ignore.

fabiospampinato avatar fabiospampinato commented on May 25, 2024

Coverage would be not ignored in that scenario with this library. Unless the library is buggy we try to parse ignore files like git would.

from fast-ignore.

coderaiser avatar coderaiser commented on May 25, 2024

OK, I tried it, it works good:

**/coverage
!**/coverage

coverage ignored and:

!**/coverage
**/coverage

coverage not ignored. Is it possible to produce CommonJS? I need to use this library inside ESLint plugin which is sync CommonJS only.

from fast-ignore.

fabiospampinato avatar fabiospampinato commented on May 25, 2024

Sorry I've moved fully to ESM to avoid all the complications with supporting both at the same time. You can bundle it to CJS inside your package or something if you really need to import it synchronously šŸ¤”

from fast-ignore.

Related Issues (1)

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.