Run pre-commit checks including formatting, linting, and type-checking, and fix any errors.
Run pre-commit checks including formatting, linting, and type-checking, and fix any errors.
Run formatting check and fix:
npm run fmt
This will automatically fix any formatting issues.
Run linting with auto-fix:
npm run lint:fix
This will fix any auto-fixable lint errors.
Fix remaining lint errors manually:
If there are lint errors that could not be auto-fixed, read the affected files and fix the errors manually. Common issues include:
Run type-checking:
npm run ts
Fix any type errors:
If there are type errors, read the affected files and fix them. Common issues include:
Re-run all checks to verify:
After making manual fixes, re-run the checks to ensure everything passes:
npm run fmt && npm run lint && npm run ts
Summarize the results: