Review the specified file for lint errors using the project's ESLint configuration. For each error found:
- Read the ESLint rule documentation to understand the intent
- Apply the minimal fix that satisfies the rule
- Verify the fix doesn't break surrounding code
- If a rule is controversial (e.g.
prefer-constvsno-const), match the style used in adjacent code rather than the rule's default
Run eslint --fix first for auto-fixable issues. For remaining errors, apply manual fixes one at a time and re-run the linter after each change to confirm the error count decreases.
If the file has no lint errors, report that and exit without changes.