lefthook pre-commit prettier gate fails on every file (no .prettierrc) #43
Labels
No labels
blocked:gate-lint
blocked:needs-decision
blocked:needs-human
blocked:verify-failed
bug
enhancement
feature-request
in-progress
needs-decompose
needs-triage
ops-task
quickfix
security/high
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/redlens#43
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?
lefthook.yml runs
npx prettier --check .on pre-commit, but the repo has no .prettierrc and the committed style (single quotes, no semicolons) does not match prettier defaults: 193 files fail the check at HEAD. The gate would block any commit or force a repo-wide reformat. Fix: add a .prettierrc matching the repo style (singleQuote, semi:false) and format once, or drop the format command from lefthook.