Code Style Enforcer
When to Trigger
- •Before every commit
- •On file save
- •Code review
What to Do
- •ESLint: Fix auto-fixable rules; report remaining errors (no-unused-vars, prefer-const, etc.).
- •Prettier: Apply formatting (quotes, semicolons, line width).
- •Imports: Group and sort; remove unused.
- •Unused code: Remove dead code and unused variables.
- •TypeScript: Fix strict mode issues; avoid any; add types where missing.
Use project config (.eslintrc, .prettierrc, tsconfig). Do not change behavior—style and lint only. Run build/tests after bulk fixes.