From b60b30a6d82295739340d7067cd03dc582e232d5 Mon Sep 17 00:00:00 2001 From: Peter Pal Hudak Date: Wed, 29 Jul 2026 13:18:52 +0200 Subject: [PATCH] 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. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8377a9546d..b793494f46 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "test:browser-watch": "pnpm run playwright:install && vitest --project browser", "test:browser-ui": "pnpm run playwright:install && vitest --project browser --browser.headless=false --ui", "lint": "pnpm -r --stream lint", - "lint:changes": "pnpm run lint -- --since HEAD^", + "lint:changes": "git diff --name-only $(git merge-base HEAD origin/master)..HEAD | xargs -r oxlint --format=unix", "lint:fix": "pnpm -r --stream lint:fix", "lint:commits": "commitlint --from=HEAD^1", "bootstrap": "node scripts/bootstrap.mjs",