kaizen: remove redundant eslint-disable comments in defineMiddleware#178
kaizen: remove redundant eslint-disable comments in defineMiddleware#178gabrypavanello wants to merge 1 commit intomainfrom
Conversation
The @typescript-eslint/no-confusing-void-expression rule is globally set to 'off' in eslint.config.js (line 102). Three inline disable comments in defineMiddleware.ts were therefore redundant dead weight. No behaviour change — comment-only cleanup.
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughSummary by CodeRabbit
WalkthroughRemoval of three Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 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)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
Code ReviewSummary: Removes 3 redundant VerificationConfirmed that "@typescript-eslint/no-confusing-void-expression": "off", // Allow void returnsAll three removed comments suppressed the same rule that is already off globally, making them dead weight. The PR description's claim of "zero risk" holds — this is purely a comment-only cleanup with no behavioral or functional change. Findings
SuggestionsOne optional improvement to consider: the PR could also check whether similar redundant suppression comments exist elsewhere in the codebase for the same rule, and clean those up in the same pass. A quick search: grep -r "eslint-disable.*no-confusing-void-expression" packages/If there are other instances, folding them into this PR would make the cleanup complete. If there are none, this PR already covers everything. Verdict: LGTM. Clean, targeted, low-risk kaizen. Ready to merge once CI passes. |
What
Removed 3 redundant
// eslint-disable-next-line @typescript-eslint/no-confusing-void-expressioncomments frompackages/core/src/middleware/defineMiddleware.ts.Why
The rule
@typescript-eslint/no-confusing-void-expressionis set to"off"globally ineslint.config.js(line 102). The inline suppression comments were added before the global override was introduced and are now dead weight.Changes
packages/core/src/middleware/defineMiddleware.ts: -3 lines (comment-only)Risk
Zero — comment-only cleanup, no behaviour change.
Verification
pnpm run build— all 11 projects builtpnpm run test— 74/74 tests passed