You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Style and lint errors (e.g. @stylistic/space-before-function-paren, unused vars) regularly slip into PRs because there is no automated check before commit. Reviewers spend time on mechanical issues that a tool should catch.
The project has ESLint, Prettier, and vue-tsc configured — but nothing enforces them before code reaches CI.
Proposed solution
Add husky + lint-staged so every git commit automatically runs:
ESLint --fix on staged .ts, .vue, .js files
Prettier on staged files (already configured via .prettierrc.yaml)
vue-tsc type-check (optional — may be too slow for pre-commit; could be pre-push instead)
Activity
chore: add pre-commit hooks (husky + lint-staged) for shift-left enfo…