chore(lint): biome config + auto-fix sweep + translation hot-path quality fixes

- biome: enable unsafeParameterDecoratorsEnabled (NestJS @Body/@Query); ignore *.gen.ts; spec files override noExplicitAny
- translations: remove dictionary fallback DB write — was producing half-translated strings (e.g. "Body frame" → "Kaporta frame") that poisoned future lookups; now misses fall through to bootstrap script
- categories: add translateMany() to PCAT root/subgroup/parts insert paths (was only EMEX)
- auto-fix: organize imports, type-only imports, node: protocol on stdlib imports, and template-literal cleanups across 24 files

Drops lint count from 769 → 257; remaining are legacy noNonNullAssertion / noArrayIndexKey / useExhaustiveDependencies that need manual review.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sase Dev
2026-05-09 16:26:13 +00:00
parent 3184e4c619
commit 247efecca6
24 changed files with 219 additions and 138 deletions

View File

@@ -77,7 +77,9 @@ export const envSchema = z.object({
export type Env = z.infer<typeof envSchema>;
export function validateEnv(env: Record<string, unknown> = process.env as Record<string, unknown>): Env {
export function validateEnv(
env: Record<string, unknown> = process.env as Record<string, unknown>,
): Env {
const result = envSchema.safeParse(env);
if (!result.success) {
const formatted = result.error.format();