chore(eslint): enable @typescript-eslint/no-wrapper-object-types rule#1049
Draft
carlosthe19916 wants to merge 4 commits into
Draft
chore(eslint): enable @typescript-eslint/no-wrapper-object-types rule#1049carlosthe19916 wants to merge 4 commits into
carlosthe19916 wants to merge 4 commits into
Conversation
Replace Object with object in generic constraint. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideEnables the @typescript-eslint/no-wrapper-object-types rule by removing its override from the ESLint configuration and updating a generic constraint in a utility helper to use the primitive object type, ensuring the codebase complies with the rule. Flow diagram for ESLint rule enabling and utils updateflowchart LR
Dev["Developer updates PR"] --> ESLintConfig["eslint.config.mjs
(remove @typescript-eslint/no-wrapper-object-types override)"]
ESLintConfig --> ESLint["ESLint with @typescript-eslint/no-wrapper-object-types enabled"]
ESLint --> Utils["utils.ts
update objectKeys<T extends object>"]
Utils --> LintPass["npm run lint passes with 0 warnings"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1049 +/- ##
=======================================
Coverage 50.68% 50.68%
=======================================
Files 253 253
Lines 5499 5499
Branches 1660 1660
=======================================
Hits 2787 2787
Misses 2440 2440
Partials 272 272
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…apper-object-types
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@typescript-eslint/no-wrapper-object-typesoverride from ESLint configObjectwithobjectin generic constraint inutils.tsTest plan
npm run lintpasses with 0 warnings🤖 Generated with Claude Code
Summary by Sourcery
Enable the TypeScript ESLint no-wrapper-object-types rule and update utility types to comply with the linting rule.
Enhancements:
Build: