From 4586bd9a5adce4ec6d77d06008ec0c49d6c36647 Mon Sep 17 00:00:00 2001 From: systemfsoftware-bot <318394648+systemfsoftware-bot@users.noreply.github.com> Date: Sun, 22 Nov 2026 21:51:44 -0500 Subject: [PATCH] fix(lint): run oxlint through effect-tsgo so the effecttsgo plugin never depends on a node_modules patch Lint scripts ran bare oxlint, which only knows the effecttsgo plugin after the prepare patch has run. A install that skips or loses the patch fails with 'Unknown plugin: effecttsgo'. effect-tsgo oxlint has the plugin built in, and the prepare patch drops --skip-missing so a missing replacement fails loudly. --- .lintstagedrc.js | 2 +- apps/site-e2e/package.json | 2 +- apps/site/package.json | 2 +- package.json | 2 +- packages/atom/effect-atom-react/package.json | 2 +- packages/atom/effect-atom/package.json | 2 +- packages/gherkin/storybook-gherkin/package.json | 2 +- packages/oxlint-presets/oxlint-config-frontend/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index eef4386..e0ceb31 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -38,7 +38,7 @@ export default { } for (const [packageRoot, files] of byPackage) { commands.push( - `cd ${packageRoot} && oxlint --fix ${TOLERATE_A_ZERO_FILE_SET} --type-aware --type-check --quiet ${ + `cd ${packageRoot} && effect-tsgo oxlint --fix ${TOLERATE_A_ZERO_FILE_SET} --type-aware --type-check --quiet ${ files.join(' ') }`, ) diff --git a/apps/site-e2e/package.json b/apps/site-e2e/package.json index 442bf71..7eecc3d 100644 --- a/apps/site-e2e/package.json +++ b/apps/site-e2e/package.json @@ -19,7 +19,7 @@ "private": true, "scripts": { "journeys": "vitest run", - "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}", + "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}", "typecheck": "tsc --noEmit --incremental" }, "type": "module", diff --git a/apps/site/package.json b/apps/site/package.json index 6f9572e..836a237 100644 --- a/apps/site/package.json +++ b/apps/site/package.json @@ -45,7 +45,7 @@ "dev": "alchemy dev", "generate": "tsr generate", "preview": "vite preview", - "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}", + "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}", "mutation": "stryker run", "test": "vitest run", "typecheck": "tsr generate && tsc --noEmit --incremental && tsc -p tsconfig.node.json --noEmit" diff --git a/package.json b/package.json index 41bcea9..5c12b09 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "gate:tasks": "sandbox --allow-host jsr.io --pass-env PLAYWRIGHT_BROWSERS_PATH --pass-env FONTCONFIG_FILE -- turbo --concurrency=${TURBO_CONCURRENCY:-50%} --continue lint lint:tsgo lint:suppressions typecheck typecheck:node test:types test test:browser test:scripts", "lint": "sandbox --allow-host plugins.dprint.dev -- turbo --concurrency=${TURBO_CONCURRENCY:-50%} lint lint:tsgo lint:suppressions", "lint:suppressions": "./bin/sandboxed -- no-inline-suppression $(git ls-files -- '*.ts' '*.tsx' '*.mts' '*.cts' '*.js' '*.jsx' '*.mjs' '*.cjs' ':!:packages/oxlint-presets/oxlint-config-frontend/ui-state-fixture/src/react-effect/' ':!:packages/gherkin/storybook-gherkin/test/browser/scenario-title.deny.ts')", - "prepare": "effect-tsgo patch --oxlint --no-typescript --skip-missing", + "prepare": "effect-tsgo patch --oxlint --no-typescript", "test": "sandbox --allow-host jsr.io --pass-env PLAYWRIGHT_BROWSERS_PATH --pass-env FONTCONFIG_FILE -- turbo --concurrency=${TURBO_CONCURRENCY:-50%} test test:browser test:scripts && pnpm test:sandbox", "test:sandbox": "nix run .#sandbox-proofs && deno test --config=scripts/deno.json --allow-run=git,sandbox,sh --allow-env --allow-read --allow-write sandbox-proofs/", "typecheck": "sandbox -- turbo --concurrency=${TURBO_CONCURRENCY:-50%} --continue typecheck typecheck:node test:types", diff --git a/packages/atom/effect-atom-react/package.json b/packages/atom/effect-atom-react/package.json index accca94..839d44e 100644 --- a/packages/atom/effect-atom-react/package.json +++ b/packages/atom/effect-atom-react/package.json @@ -38,7 +38,7 @@ "test": "vitest run --passWithNoTests", "mutation": "stryker run", "test:types": "TSTYCHE_TYPESCRIPT_MODULE=tstyche-typescript tstyche", - "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --config oxlint.config.ts --format=${f:-default}", + "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --config oxlint.config.ts --format=${f:-default}", "lint:tsgo": "effect-tsgo diagnostics --project tsconfig.app.json --format ${TSGO_FORMAT:-text} && effect-tsgo diagnostics --project tsconfig.test.json --format ${TSGO_FORMAT:-text}", "attw": "attw --pack .", "dts:check": "tsc --noEmit -p tsconfig.dts.json", diff --git a/packages/atom/effect-atom/package.json b/packages/atom/effect-atom/package.json index 6d5727f..72eb7fd 100644 --- a/packages/atom/effect-atom/package.json +++ b/packages/atom/effect-atom/package.json @@ -37,7 +37,7 @@ "test": "vitest run --passWithNoTests", "test:watch": "vitest", "test:types": "TSTYCHE_TYPESCRIPT_MODULE=tstyche-typescript tstyche", - "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --config oxlint.config.ts --format=${f:-default}", + "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --config oxlint.config.ts --format=${f:-default}", "lint:tsgo": "effect-tsgo diagnostics --project tsconfig.app.json --format ${TSGO_FORMAT:-text} && effect-tsgo diagnostics --project tsconfig.test.json --format ${TSGO_FORMAT:-text}", "attw": "attw --pack .", "mutation": "stryker run", diff --git a/packages/gherkin/storybook-gherkin/package.json b/packages/gherkin/storybook-gherkin/package.json index a25a0aa..f60bc0d 100644 --- a/packages/gherkin/storybook-gherkin/package.json +++ b/packages/gherkin/storybook-gherkin/package.json @@ -40,7 +40,7 @@ "clean": "rimraf dist", "build": "tsdown -l warn && pnpm dts:check && pnpm api:check", "typecheck": "tsc -b", - "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --config oxlint.config.ts --format=${f:-default}", + "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --config oxlint.config.ts --format=${f:-default}", "lint:tsgo": "effect-tsgo diagnostics --project tsconfig.app.json --format ${TSGO_FORMAT:-text} && effect-tsgo diagnostics --project tsconfig.test.json --format ${TSGO_FORMAT:-text}", "attw": "attw --pack .", "dts:check": "node scripts/check-dts.mjs", diff --git a/packages/oxlint-presets/oxlint-config-frontend/package.json b/packages/oxlint-presets/oxlint-config-frontend/package.json index a97fd44..a0b265d 100644 --- a/packages/oxlint-presets/oxlint-config-frontend/package.json +++ b/packages/oxlint-presets/oxlint-config-frontend/package.json @@ -36,7 +36,7 @@ "clean": "rimraf dist", "build": "tsdown -l warn", "typecheck": "tsc -b", - "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}", + "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}", "attw": "attw --pack .", "test": "vitest run" },