Skip to content

Commit 35746a0

Browse files
fix(lint): run oxlint through effect-tsgo so the effecttsgo plugin never depends on a node_modules patch (#37)
## 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 d56fb6c commit 35746a0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"check:static": "s=0; ./bin/dprint check || s=1; turbo --concurrency=${TURBO_CONCURRENCY:-50%} --continue build lint typecheck test:types api:check attw || s=1; exit $s",
1717
"check:ci": "s=0; pnpm check:static || s=1; turbo --concurrency=${TURBO_CONCURRENCY:-50%} --continue test || s=1; exit $s",
1818
"check:local": "s=0; pnpm check:static || s=1; CONFORMANCE_PROFILE=local VITEST_MAX_WORKERS=${VITEST_MAX_WORKERS:-4} turbo --concurrency=${TURBO_CONCURRENCY:-50%} --continue test || s=1; exit $s",
19-
"prepare": "effect-tsgo patch --oxlint --no-typescript --skip-missing"
19+
"prepare": "effect-tsgo patch --oxlint --no-typescript"
2020
},
2121
"devDependencies": {
2222
"@commitlint/cli": "^21",

‎packages/rx-effect/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"build": "tsdown -l warn && pnpm api:check",
4141
"typecheck": "tsc -b",
4242
"test": "vitest run",
43-
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
43+
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}",
4444
"attw": "attw --pack .",
4545
"api:check": "api-extractor-quiet run",
4646
"api:update": "api-extractor run --local"

0 commit comments

Comments
 (0)