fix: remove unused imports and variables (Phase 1 lint cleanup)#20
fix: remove unused imports and variables (Phase 1 lint cleanup)#20
Conversation
Safe, no-behavior-change fixes across the monorepo: - Remove 75+ unused imports, variables, and type declarations - Fix no-undef errors by adding eslint-env node to Node.js scripts - Fix react/no-unescaped-entities by escaping apostrophes in JSX - Remove unused catch parameters - Add missing displayName to forwardRef components - Fix missing key props in iterators - Replace empty interfaces with type aliases Packages affected: - @wcpos/core: 82 → 36 problems - @wcpos/components: 43 → 25 problems - @wcpos/web-bundle: 2 → 2 problems (all fixed, remaining are no-undef) - @wcpos/main: 4 → 2 problems - @wcpos/utils: 4 → 3 problems Total reduction: 213 → 138 problems (~35% reduction)
📝 WalkthroughWalkthroughThis pull request performs extensive codebase cleanup across 40+ files, removing unused imports (React, UI components, utilities), eliminating unused type definitions and constants, simplifying error handling in catch clauses, and updating string escaping in TSX literals. The changes are predominantly refactoring-focused with minimal functional impact. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Safe, no-behavior-change fixes across the monorepo:
Packages affected:
Total reduction: 213 → 138 problems (~35% reduction)
Summary by CodeRabbit
Release Notes
Bug Fixes
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.