-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve ESLint migrations for v9 #2735
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 556a891 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
||
fixPackageName(source); | ||
}, | ||
[`CallExpression:has(Identifier[name=/(mock|requireActual|importActual)/]):has(Literal[value=/${escapedFrom}(?!-).*/])`]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sirineJ I modified the matcher to target specific test-related functions instead to be able to support Vitest in addition to Jest.
Size Change: 0 B Total Size: 640 kB ℹ️ View Unchanged
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2735 +/- ##
=======================================
Coverage 87.47% 87.47%
=======================================
Files 211 211
Lines 11906 11906
Branches 1550 1550
=======================================
Hits 10415 10415
Misses 1441 1441
Partials 50 50 |
Purpose
While testing the upgrade to Circuit UI v9 on a real application, we discovered a couple of shortcomings in the ESLint migration rules.
Approach and changes
no-renamed-props
ESLint rule to add theas="strong"
prop when migrating the Body's highlight variant to match the previous semanticsrenamed-package-scope
rule to cover additional occurrences of package names such as in Jest module mocks.Definition of done