-
Notifications
You must be signed in to change notification settings - Fork 150
refactor: strengthen type safety #1015
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1015 +/- ##
=======================================
Coverage 96.27% 96.28%
=======================================
Files 46 47 +1
Lines 2472 2531 +59
Branches 1025 1047 +22
=======================================
+ Hits 2380 2437 +57
- Misses 92 94 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Thanks for taking care of this! Just added some comments.
🎉 This PR is included in version 7.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
It's a minor change, but I refactored a few parts that caught my attention. Please feel free to close this PR if it doesn't meet your expectations. I appreciate your review!
Checks
Changes
update test case types to use rule-tester types.
→ Due to deprecation of TSESLint's
InvalidTestCase
andValidTestCase
.apply
as const
for stricter type safety on query definitions.add explicit return type to
createTestingLibraryRule
for better type safety.→ Because a type error occurred in test files when passing the rule as the second argument to
ruleTester.run
.Context