chore(biome): disable useImportType for apps/api
Biome's useImportType rule rewrites runtime value imports to
type-only imports. NestJS DI relies on reflect-metadata reading
constructor parameter types at runtime, so type-only imports
break dependency resolution and crash the API at startup
(see fix in 0774444).
Disable the rule for apps/api/**:
- Root biome.json: apps/api/** override (root-cwd lint passes)
- apps/api/biome.json: extends root + override (workspace-cwd
lint, the path Turbo/CI takes)
Both paths are needed because Biome resolves the nearest config
to the cwd and the include globs are interpreted relative to it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
11
apps/api/biome.json
Normal file
11
apps/api/biome.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
||||
"extends": ["../../biome.json"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"useImportType": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user