Commit Clean
Run linting and TypeScript checks before committing changes.
Steps
- •Lint: Run
pnpm lintto fix linting issues - •TypeScript Check: Run
pnpm exec tsc --noEmitto verify no type errors - •Commit: If both pass, follow the standard git commit workflow:
- •Check
git statusandgit diffto see changes - •Check
git logfor commit message style - •Stage relevant files with
git add - •Create a commit with a descriptive message
- •Check
Important
- •If lint fails with unfixable errors, stop and report them
- •If TypeScript check fails, stop and report the type errors
- •Only proceed to commit if both checks pass
- •Follow the repository's commit message conventions