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
🤖 Configure ESLint to only show errors, add manual dead code check (#352)
## Summary
Configures ESLint to treat warnings as errors and adds a manual dead
code checking command. Also removes 506 lines of actual dead code
identified by ts-prune.
## Changes
### ESLint Configuration
- Added `--max-warnings 0` flag to treat all warnings as errors
- Fixed outstanding warnings in `ChatInput.tsx` (missing deps) and
`telemetry/utils.ts` (unsafe any access)
### Dead Code Checking
- Added `make check-deadcode` target for manual dead code detection
using ts-prune
- **Not included in `static-check`** - advisory only, not a hard
requirement
- Filters out test/debug/storybook files and legitimate public API
exports
### Dead Code Removal (506 lines)
- `TypewriterText` component (unused)
- `ToolsTab` component (unused)
- Duplicate git functions in `git.ts` (implementations exist in
`gitService.ts`)
- Various unused utility functions and types across the codebase
## Why Manual-Only Dead Code Checking?
Automatic dead code checking in CI is too brittle:
- Line-number-based allowlists break on any code change
- Hard to distinguish legitimate public API exports from actual dead
code
- Some exports are intentionally unused (public API surface, type
definitions)
- Dead code is technical debt but not a correctness issue
Manual checking with `make check-deadcode` is still valuable for cleanup
efforts without blocking CI.
_Generated with `cmux`_
0 commit comments