Skip to content

Commit f69eb89

Browse files
committed
fix: lint:changes command to only lint changed files
Replace the broken --since flag with proper merge-base diff logic. The command now gets files changed since merge-base with master and passes them directly to oxlint instead of routing through the workspace runner which would lint the entire codebase.
1 parent e9c9aa0 commit f69eb89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"test:browser-watch": "pnpm run playwright:install && vitest --project browser",
2929
"test:browser-ui": "pnpm run playwright:install && vitest --project browser --browser.headless=false --ui",
3030
"lint": "pnpm -r --stream lint",
31-
"lint:changes": "pnpm run lint -- --since HEAD^",
31+
"lint:changes": "git diff --name-only $(git merge-base HEAD origin/master)..HEAD | xargs -r oxlint",
3232
"lint:fix": "pnpm -r --stream lint:fix",
3333
"lint:commits": "commitlint --from=HEAD^1",
3434
"bootstrap": "node scripts/bootstrap.mjs",

0 commit comments

Comments
 (0)