Skip to content

fix: quote and broaden Prettier format script glob#206

Open
AleF83 wants to merge 2 commits into
mainfrom
fix/quote-and-broaden-prettier-format-script-glob
Open

fix: quote and broaden Prettier format script glob#206
AleF83 wants to merge 2 commits into
mainfrom
fix/quote-and-broaden-prettier-format-script-glob

Conversation

@AleF83

@AleF83 AleF83 commented May 17, 2026

Copy link
Copy Markdown
Collaborator

The pnpm format script used an unquoted **/*.ts glob that the shell expanded before Prettier saw it — in shells without globstar, this missed all files more than one directory deep. The fix quotes the glob so Prettier controls expansion and broadens the extension set to **/*.{js,ts,json,yaml,yml,md}, matching lint-staged coverage exactly. .prettierignore is extended with .worktrees, wwwroot, Pages, and pnpm-lock.yaml so the broader glob does not recurse into sibling worktrees or vendored assets.

Known follow-up: Three files are already out of Prettier sync (.vscode/launch.json, .vscode/tasks.json, e2e/config/server-options.json). A separate PR should run pnpm format and commit those changes to keep the scope of this fix reviewable in isolation.

Closes #188

@AleF83 AleF83 self-assigned this May 17, 2026
@AleF83 AleF83 marked this pull request as ready for review May 17, 2026 03:04
AleF83 and others added 2 commits May 16, 2026 22:20
Wrap the glob in double quotes and expand the extensions to cover
js, ts, json, yaml, yml, and md files. Extend .prettierignore with
.worktrees, wwwroot, Pages, and pnpm-lock.yaml to prevent Prettier
from touching generated or vendor assets.

Closes #188

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AleF83 AleF83 force-pushed the fix/quote-and-broaden-prettier-format-script-glob branch from 70eff15 to 269de1b Compare May 17, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: quote and broaden the Prettier format script glob

1 participant