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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user