diff --git a/biome.jsonc b/biome.jsonc index 0e5469bd..08af240f 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -67,6 +67,9 @@ "rules": { "preset": "recommended", "a11y": "info", + "complexity": { + "useLiteralKeys": "off" + }, "correctness": { "useExhaustiveDependencies": { "level": "error", diff --git a/docs/development.md b/docs/development.md index 2b2bd8b2..a10c46a5 100644 --- a/docs/development.md +++ b/docs/development.md @@ -6,11 +6,11 @@ Use this document for day-to-day implementation mechanics: commands, generated f ```sh npm ci -npm run format +npm run fix npm run check ``` -Use this as the normal edit loop. `npm run format` applies Biome formatting and import organization without lint fixes; `npm run check` is the local preflight for type checking, tests, lint, format/assist checks, CSS checks, and the production bundle. +Use this as the normal edit loop. `npm run fix` applies Biome formatting, import organization, and safe lint fixes; `npm run check` is the local preflight for type checking, tests, lint, format/assist checks, CSS checks, and the production bundle. Use focused scripts for tight loops: `npm run typecheck`, `npm run test`, `npm run build`, or the targeted `npm run check:*` scripts. CI and release preflight run the same `npm run check` command as local development. diff --git a/package.json b/package.json index ddb254a1..5520f280 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "check:test": "node --run test", "check:typecheck": "node --run typecheck", "check:unused": "knip --no-progress", - "format": "biome check --write --linter-enabled=false", + "fix": "biome check --fix --diagnostic-level=warn --error-on-warnings", "generate:app-server-types": "node scripts/generate-app-server-types.mjs", "release:check": "node scripts/release/check.mjs", "release:preflight": "node scripts/release/preflight.mjs", diff --git a/src/app-server/connection/transport.ts b/src/app-server/connection/transport.ts index 2f9255bb..233a2eb5 100644 --- a/src/app-server/connection/transport.ts +++ b/src/app-server/connection/transport.ts @@ -1,5 +1,5 @@ -import { type ChildProcessWithoutNullStreams, spawn } from "child_process"; -import * as readline from "readline"; +import { type ChildProcessWithoutNullStreams, spawn } from "node:child_process"; +import * as readline from "node:readline"; import type { RpcOutboundMessage } from "./rpc-messages";