Check and fix code formatting using ESLint and Prettier.
Read AGENTS.md first. It is the canonical project guide for this repository.
Steps:
- Run
npm run format:checkto see if there are formatting violations - If violations are found, run
npm run formatto auto-fix them - Run
npm run lintto see if there are linting errors - If errors are found, run
npm run lint:fixto auto-fix them - After applying, run
git diff --statto show what files were reformatted - Summarize the changes (which files, what kind of formatting was fixed)
If no violations are found, say so and stop.
Do NOT commit the formatting changes — just apply and report.