biome: π Some ignore pattern generate `ignored file` error
Environment information
CLI:
Version: 1.5.0
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
BIOME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v21.5.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "npm/10.2.5"
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: false
VCS disabled: false
Workspace:
Open Documents: 0
What happened?
Execute the following script and observe the error:
$ git clone https://github.com/bare-ts/bare.git
$ cd bare
$ npm ci
$ npx biome format --verbose --error-on-warnings --diagnostic-level=warn .
./tests-corpus/index.test.js format ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β The file ./tests-corpus/index.test.js was ignored.
Compared 20 file(s) in 7ms
Skipped 1 file(s)
The configuration is:
{
"files": {
"ignoreUnknown": true
},
"formatter": {
"indentStyle": "space",
"ignore": ["./tests-corpus/*"]
},
"vcs": {
"enabled": true,
"clientKind": "git",
"
}
}
If I change formatter.ignore from ./tests-corpus/* to ./tests-corpus the bug seems fixed.
Expected result
No error should be thrown.
Code of Conduct
- I agree to follow Biomeβs Code of Conduct
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 9
- Comments: 19 (6 by maintainers)
This should be fixed in the last patch release (v1.5.1). Could anyone confirm that they no longer get errors?
You can use
--no-errors-on-unmatched.Next time you can consult the CLI reference page: https://biomejs.dev/reference/cli/#biome-lint
"scr/common/**"->"src/common/**"Tested on 1 project, itβs fixed for our use case.