CLI:
Version: 1.6.4
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
BIOME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm"
JS_RUNTIME_VERSION: "v20.11.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "pnpm/8.15.6"
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: true
VCS disabled: true
Workspace:
Open Documents: 0
Having this file structure:
.
βββ biome.jsonc
βββ ...
βββ server.ts
βββ source
β βββ ...
β βββ Shared
β βββ Infrastructure
β βββ ...
β βββ Server.ts
βββ ...
and this configuration:
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"files": {
"ignoreUnknown": true,
"include": ["config/**/*.ts", "source/**/*.ts", "server.ts"]
},
"linter": {
"enabled": true,
"rules": {
"style": {
"useFilenamingConvention": {
"level": "error",
"options": {
"requireAscii": true,
"filenameCases": ["PascalCase", "export"]
}
}
},
}
},
"overrides": [
{
"include": ["./server.ts"],
"linter": {
"rules": {
"style": {
"useFilenamingConvention": {
"level": "error",
"options": {
"filenameCases": ["camelCase", "export"]
}
}
}
}
}
}
]
}
Running biome check --config-path ./ --apply ./
results in an error:
./source/Shared/Infrastructure/Server.ts lint/style/useFilenamingConvention ββββββββββββββββββββββββ
β The filename should be in camelCase or equal to the name of an export.
βΉ The filename could be renamed to one of the following names:
server.ts
Checked 18 files in 375ms. No fixes needed.
Found 1 error.
I expect the override
function to apply the configuration only in include
d files, server.ts
in the root in this particular case and matching the case too.
I suppose there is a match with the filename so ./server.ts
matches my ./Server.ts
regardless how deep is in another folder and its case.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too