Skip to content

Commit da56d60

Browse files
fix(lint): run oxlint through effect-tsgo so the effecttsgo plugin never depends on a node_modules patch (#81)
## Root cause Lint scripts ran bare `oxlint`, which only recognises the `effecttsgo` plugin after `prepare` has patched the oxlint binding in `node_modules`. An install that skips or loses that patch fails with `Unknown plugin: 'effecttsgo'`. ## Fix Lint scripts call `effect-tsgo oxlint`, which has the plugin built in. `prepare` stays for bare-oxlint callers but drops `--skip-missing`, so a missing replacement fails the install. ## Evidence Fresh worktree on `origin/main`, installed with `--ignore-scripts`, any patched binding removed: - before: lint fails with `Unknown plugin: 'effecttsgo'`. - after: lint exits 0 on the same unpatched install. Grader change (lint wiring), authorized by the owner; no rule is weakened. Co-authored-by: systemfsoftware-bot <318394648+systemfsoftware-bot@users.noreply.github.com>
1 parent 92f3cd8 commit da56d60

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.lintstagedrc.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
}
3939
for (const [packageRoot, files] of byPackage) {
4040
commands.push(
41-
`cd ${packageRoot} && oxlint --fix ${TOLERATE_A_ZERO_FILE_SET} --type-aware --type-check --quiet ${
41+
`cd ${packageRoot} && effect-tsgo oxlint --fix ${TOLERATE_A_ZERO_FILE_SET} --type-aware --type-check --quiet ${
4242
files.join(' ')
4343
}`,
4444
)

‎apps/site-e2e/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"private": true,
2020
"scripts": {
2121
"journeys": "vitest run",
22-
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
22+
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}",
2323
"typecheck": "tsc --noEmit --incremental"
2424
},
2525
"type": "module",

‎apps/site/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"dev": "alchemy dev",
4646
"generate": "tsr generate",
4747
"preview": "vite preview",
48-
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
48+
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}",
4949
"mutation": "stryker run",
5050
"test": "vitest run",
5151
"typecheck": "tsr generate && tsc --noEmit --incremental && tsc -p tsconfig.node.json --noEmit"

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"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",
4141
"lint": "sandbox --allow-host plugins.dprint.dev -- turbo --concurrency=${TURBO_CONCURRENCY:-50%} lint lint:tsgo lint:suppressions",
4242
"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')",
43-
"prepare": "effect-tsgo patch --oxlint --no-typescript --skip-missing",
43+
"prepare": "effect-tsgo patch --oxlint --no-typescript",
4444
"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",
4545
"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/",
4646
"typecheck": "sandbox -- turbo --concurrency=${TURBO_CONCURRENCY:-50%} --continue typecheck typecheck:node test:types",

‎packages/atom/effect-atom-react/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"test": "vitest run --passWithNoTests",
3939
"mutation": "stryker run",
4040
"test:types": "TSTYCHE_TYPESCRIPT_MODULE=tstyche-typescript tstyche",
41-
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --config oxlint.config.ts --format=${f:-default}",
41+
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --config oxlint.config.ts --format=${f:-default}",
4242
"lint:tsgo": "effect-tsgo diagnostics --project tsconfig.app.json --format ${TSGO_FORMAT:-text} && effect-tsgo diagnostics --project tsconfig.test.json --format ${TSGO_FORMAT:-text}",
4343
"attw": "attw --pack .",
4444
"dts:check": "tsc --noEmit -p tsconfig.dts.json",

‎packages/atom/effect-atom/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test": "vitest run --passWithNoTests",
3838
"test:watch": "vitest",
3939
"test:types": "TSTYCHE_TYPESCRIPT_MODULE=tstyche-typescript tstyche",
40-
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --config oxlint.config.ts --format=${f:-default}",
40+
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --config oxlint.config.ts --format=${f:-default}",
4141
"lint:tsgo": "effect-tsgo diagnostics --project tsconfig.app.json --format ${TSGO_FORMAT:-text} && effect-tsgo diagnostics --project tsconfig.test.json --format ${TSGO_FORMAT:-text}",
4242
"attw": "attw --pack .",
4343
"mutation": "stryker run",

‎packages/gherkin/storybook-gherkin/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"clean": "rimraf dist",
4141
"build": "tsdown -l warn && pnpm dts:check && pnpm api:check",
4242
"typecheck": "tsc -b",
43-
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --config oxlint.config.ts --format=${f:-default}",
43+
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --config oxlint.config.ts --format=${f:-default}",
4444
"lint:tsgo": "effect-tsgo diagnostics --project tsconfig.app.json --format ${TSGO_FORMAT:-text} && effect-tsgo diagnostics --project tsconfig.test.json --format ${TSGO_FORMAT:-text}",
4545
"attw": "attw --pack .",
4646
"dts:check": "node scripts/check-dts.mjs",

‎packages/oxlint-presets/oxlint-config-frontend/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"clean": "rimraf dist",
3737
"build": "tsdown -l warn",
3838
"typecheck": "tsc -b",
39-
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
39+
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}",
4040
"attw": "attw --pack .",
4141
"test": "vitest run"
4242
},

0 commit comments

Comments
 (0)