Refactor: code structure and dev environment standardization#38
Conversation
Align all packages to TypeScript ^5.9.3 (was mixed 5.5-5.8). Move Prettier config to root .prettierrc, remove per-package overrides. Add noUnusedLocals/noUnusedParameters to backend tsconfig. Remove unused @tanstack/react-query from backend dependencies. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Move pure computation functions from Sheet class into filter.ts, clipboard.ts, and style-mutation.ts following the existing module pattern (merging.ts, shifting.ts). Sheet class keeps state ownership and store access, delegates computation to extracted functions. No logic changes. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughBackend packages undergo cleanup including removing unused code, updating TypeScript to 5.9.3, and enabling stricter compiler checks. The sheet package expands significantly with comprehensive Excel-compatible formula implementations (12+ function categories covering database, date, engineering, financial, logical, lookup, math, text operations) and refactors worksheet operations into shared utility modules for clipboard, filtering, and style mutations. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
Verification: verify:selfResult: ✅ PASS in 94.2s
Verification: verify:integrationResult: ✅ PASS |
Summary
^5.9.3(was mixed 5.5–5.8).prettierrc, remove per-package overridesnoUnusedLocals,noUnusedParameters, clean up dead code@tanstack/react-query(never imported)Details
Dev Environment Standardization
^5.9.3unified.prettierrcnoUnusedLocals+noUnusedParameters@tanstack/react-queryCode Structure
functions.tssheet.tsNew modules created:
functions-{math,statistical,text,lookup,date,logical,financial,engineering,database,info}.tsmodel/worksheet/{filter,clipboard,style-mutation}.tsAll changes are pure refactoring with no logic modifications.
Test plan
pnpm verify:fastpasses (lint + architecture + all tests)🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
Chores