Problem
Style regressions are reaching PR stage instead of being caught before commit.
Proposal
Introduce local guardrails:
- Pre-commit hooks (e.g. Husky + lint-staged)
- Run fast checks on staged files only
- Auto-fix where safe (
prettier, phpcbf) before commit
Keep CI as strict backstop while local checks stay fast.
Acceptance criteria
Problem
Style regressions are reaching PR stage instead of being caught before commit.
Proposal
Introduce local guardrails:
prettier,phpcbf) before commitKeep CI as strict backstop while local checks stay fast.
Acceptance criteria