Giter VIP home page Giter VIP logo

Comments (10)

amoreaulemay avatar amoreaulemay commented on June 9, 2024 1

I just did, that doesn't fix it. Removing the ./**/* for . was the real fix for me. Then it respects my ignore.

from biome.

riya-amemiya avatar riya-amemiya commented on June 9, 2024

For example, the following is an example of the behavior when the 'module' directory is set in the 'ignore' configuration but is not being ignored:

❯ bun run biome check .
Checked 800 file(s) in 33ms

❯ bun run biome check . // Removed only the 'module' directory without changing the biome configuration
Checked 276 file(s) in 23ms

In this scenario, even though the 'module' directory is specified in the 'ignore' list, it is not excluded from processing, as demonstrated by the number of files checked in both cases.

from biome.

ematipico avatar ematipico commented on June 9, 2024

Hi @riya-amemiya

You gave us zero information to work with, so it's literally impossible for us to help you to triage the issue.

Please, share with us a minimal reproduction. You can use our codesandbox template too, you can find the link in the issue form

from biome.

riya-amemiya avatar riya-amemiya commented on June 9, 2024

@ematipico

I apologize for any inconvenience, and thank you for your polite response. I will share the minimum configuration.

https://github.com/riya-amemiya/biome-sandbox

from biome.

Conaclos avatar Conaclos commented on June 9, 2024

Hi @riya-amemiya.

I checked your reproduction.
Assuming that you mean src instead of module in your reproduction, Biome linter/formatter seems to correctly ignore fiels under src/ and .codesandbox/.
However, the reported number of processed files is indeed incorrect.

The bug is not present if the files/directories are ignored globally using files.ingnore.

from biome.

amoreaulemay avatar amoreaulemay commented on June 9, 2024

I had a similar issue upgrading to 1.5.2 (from 1.4.1). I have this section in my biome.js:

"files": {
    "ignoreUnknown": true,
    "ignore": ["node_modules/*", "./node_modules/*"]
  }

And biome still included node_modules and gave a bunch of symlink errors.

from biome.

amoreaulemay avatar amoreaulemay commented on June 9, 2024

I had a similar issue upgrading to 1.5.2 (from 1.4.1). I have this section in my biome.js:

"files": {
    "ignoreUnknown": true,
    "ignore": ["node_modules/*", "./node_modules/*"]
  }

And biome still included node_modules and gave a bunch of symlink errors.

I actually found a fix for my issue:

For biome 1.4.1 I had this pnpm script in my package.json:

biome check --error-on-warnings --formatter-enabled=true --linter-enabled=true --organize-imports-enabled=true ./**/*

And for 1.5.2 I had to modify it to this:

biome check --error-on-warnings --formatter-enabled=true --linter-enabled=true --organize-imports-enabled=true .

So the problem was the wildcard at the end.

from biome.

ematipico avatar ematipico commented on June 9, 2024

Have you tried node_modules/** instead?

from biome.

Conaclos avatar Conaclos commented on June 9, 2024

I just did, that doesn't fix it. Removing the ./**/* for . was the real fix for me. Then it respects my ignore.

./**/* is expanded by your shell to all files. Thus, this passed to Biome all files, including the one in node_modules forcing Biome to take a look at these paths.

from biome.

Conaclos avatar Conaclos commented on June 9, 2024

CLoding since it is now resolved :)

from biome.

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.