[P2 CI] Prettier gate excludes the application source, E2E tests, workflows, and scripts #135
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-review
quasar
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/quasar-ui#135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
The CI workflow runs
npm run format:check, but the script checks only a narrow hard-coded list:It excludes most of the repository, including:
src/**application code and tests;e2e/**;scripts/**, including PR #124 benchmark scripts;.github/workflows/**;The green CI check therefore does not mean the changed code is formatted. The same narrow path list is duplicated in the write command and will drift as directories are added.
Required fix
Use repository-wide Prettier discovery with an explicit ignore file.
Add
.prettierignorefor generated/heavy artifacts only:Do not ignore checked source fixtures or benchmark scripts merely because they are large.
For faster local checks, an optional changed-files command can coexist, but CI should retain a complete repository gate:
Use a small Node script instead of shell substitution if cross-platform execution is required.
Acceptance criteria
npm run format:checkchecks all maintained source, tests, scripts, configs, workflows, and docs..prettierignore.npm run formatandformat:checkcover the same file set.src,e2e, andscripts.