You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add console logs validation with Next.js auto-removal detection
- Add new check-console-logs.js validation script
- Detects console.log, console.warn, console.error, etc. statements
- Smart Next.js integration: skips validation if removeConsole is enabled
- Supports allowed patterns: development conditions, ESLint disables, error logging
- Includes comprehensive test fixtures for both violations and allowed usage
- Integrates with existing test runner and CI/CD pipeline
- Provides helpful suggestions for console.log alternatives
This validation helps maintain clean production code by catching debug statements
that developers often forget to remove before deployment.
0 commit comments