Skip to content

fix(lint): pass file lists to lint scripts as separate arguments - #128363

Merged
JoshuaKGoldberg merged 1 commit into
masterfrom
joshgoldberg/fix-lint-root-argv
Oct 21, 2026
Merged

JoshuaKGoldberg merged 1 commit into
masterfrom
joshgoldberg/fix-lint-root-argv

Conversation

@JoshuaKGoldberg

Copy link
Copy Markdown
Member

scripts/lint.ts (#127203) runs root and package lint scripts through pnpm run, which joins every path into one shell string, so a change to a widely imported file makes the impacted-files oxlint step crash before linting starts. This brings back the fix from #126758 by running each script's command through pnpm exec so paths stay separate arguments.

scripts/lint.ts ran root and package lint scripts through pnpm run, which joins every path into one shell string. A change to a widely imported file makes CI lint thousands of impacted files, and pnpm crashes before linting starts. Running each script's command through pnpm exec keeps the paths as separate arguments.
@JoshuaKGoldberg
JoshuaKGoldberg requested a review from a team as a code owner October 21, 2026 15:42
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 21, 2026
@JoshuaKGoldberg
JoshuaKGoldberg merged commit bd261d6 into master Oct 21, 2026
78 checks passed
@JoshuaKGoldberg
JoshuaKGoldberg deleted the joshgoldberg/fix-lint-root-argv branch October 21, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants