Strict Configuration · Quick recall Q&A
1 min readRapid overview
Quick recall Q&A
1. How do you introduce strict linting to an existing codebase?
- Start with warnings, not errors
- Use
--max-warningsto prevent new issues - Fix incrementally by directory/feature
- Use git hooks to prevent new violations
- Track metrics (violation count over time)
2. Which rules have the highest impact on code quality?
@typescript-eslint/no-explicit-any- Forces proper typing@typescript-eslint/strict-boolean-expressions- Prevents truthy/falsy bugs@typescript-eslint/no-floating-promises- Catches unhandled asynccomplexity- Limits function complexityimport/no-cycle- Prevents circular dependencies
3. How do you handle rules that conflict with your codebase style?
- Customize rule options (many rules have configuration)
- Use overrides for specific file patterns
- Disable with inline comments sparingly (with justification)
- Create team consensus on which rules to modify