/lint-fix [check|fix]
Run ESLint and Prettier for code quality and formatting.
Arguments
- •
check(default) — Check for issues without modifying files - •
fix— Auto-fix all fixable issues
Instructions
For check (or no argument):
Run both checks and report results:
- •
ESLint check:
bashnpm run lint
- •
Prettier check:
bashnpx prettier --check .
- •
Report the combined results: how many files have issues, what kinds of issues
For fix:
Run auto-fix for both tools:
- •
ESLint fix:
bashnpx next lint --fix
- •
Prettier fix:
bashnpm run format
- •
After fixing, run the checks again to verify everything is clean
- •
Report what was fixed and if any issues remain that need manual attention
Notes
- •ESLint config extends
next/core-web-vitalsandprettier - •Prettier is configured in the project root
- •
npm run formatrunsprettier --write . - •
npm run lintrunsnext lint