Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 | { grep -E '\\.(js|jsx|ts|tsx|mjs|cjs)$' || true; } | xargs -r oxlint --format=unix",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@balzss

  • git diff: list files changed since branching from master
  • grep (+ || true): keep only lintable extensions; don't fail if none match
  • xargs -r oxlint: only run oxlint if files remain, so no-match no longer exits 123

"lint:fix": "pnpm -r --stream lint:fix",
"lint:commits": "commitlint --from=HEAD^1",
"bootstrap": "node scripts/bootstrap.mjs",
Expand Down
Loading