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:
Sase Dev
2026-05-10 08:39:05 +00:00
parent 0774444259
commit 5ab868480d
2 changed files with 21 additions and 0 deletions

11
apps/api/biome.json Normal file
View File

@@ -0,0 +1,11 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["../../biome.json"],
"linter": {
"rules": {
"style": {
"useImportType": "off"
}
}
}
}