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>
12 lines
196 B
JSON
12 lines
196 B
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
"extends": ["../../biome.json"],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"useImportType": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|