Comments (10)
I just did, that doesn't fix it. Removing the ./**/*
for .
was the real fix for me. Then it respects my ignore.
from biome.
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.
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.
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.
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.
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.
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.
Have you tried node_modules/**
instead?
from biome.
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.
CLoding since it is now resolved :)
from biome.
Related Issues (20)
- 💅 useExhaustiveDependencies ignores functions defined outside of useEffect HOT 1
- 💅 useAltText reports missing alt despite alt being provided, if followed by props spread HOT 2
- 💅 useJsxKeyInIterable reports missing key even if JSX element is not returned in interable
- 💅 possible difference in scope between biome useliteralkeys and eslint dot-notation rules HOT 5
- 🐛 `biome ci` passes locally on macOS but fails on Linux on CI (GHA) HOT 1
- 🐛 Parser fails with "Expected a compound selector" due to @media query HOT 3
- 💅 noUnknownProperty throws warning for CSS custom properties HOT 2
- 📎 Migrate from `stylelint` HOT 2
- 🐛 Impossible to satisfy biome.json schema for rules with no options
- Css formatter doesn't inherit global formatter settings HOT 1
- 🐛 Migration quit on node warning. HOT 7
- 🐛 Trying to override `useConst` doesn't work. .svelte files HOT 2
- 🐛 "Unexpected value or character. biome(parse)" can i disable biome css parser?
- 💅 `noEmptyInterface` may break global augmentation HOT 1
- 🐛 Potential Bug...? HOT 2
- 📎 Implement `unicorn/prefer-array-index-of`
- 🐛 invalid char boundary in diagnostics
- 📎 Forbid `undefined` as type name
- 🐛 <WasmError> HOT 4
- 💅 [nursery/useDateNow] Incorrect applying to Date.now() to all Date.prototype.getTime
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biome.