-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix(rule-tester): fix a phantom dependency on the "semver" package #8260
Conversation
… DependencyConstraint.d.ts
Thanks for the PR, @octogonz! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. |
👷 Deploy Preview for typescript-eslint processing.
|
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.
LGTM, thanks for the issue & fix! I agree that two properties is a reasonably small enough size to just inline an interface like this.
Just the one style suggestion, then I think we're good to merge. WDYT?
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
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.
src/types/DependencyConstraint.ts(3,39): error TS2304: Cannot find name "Options".
I had some spare time today and was going through the PR backlog. Please forgive me for jumping in and applying the fix 😄. I was excited to get our open PRs number down... |
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.
🚢
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8260 +/- ##
==========================================
+ Coverage 87.70% 87.80% +0.09%
==========================================
Files 397 398 +1
Lines 13950 14052 +102
Branches 4055 4090 +35
==========================================
+ Hits 12235 12338 +103
Misses 1403 1403
+ Partials 312 311 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
47d25f4
into
typescript-eslint:main
…ypescript-eslint#8260) * fix(rule-tester): Fix a phantom dependency on the "semver" package in DependencyConstraint.d.ts * Update packages/rule-tester/src/types/DependencyConstraint.ts Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com> * Remove 'extends Options' --------- Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com> Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
PR Checklist
Overview
The obvious fix would be to declare
@types/semver
as a dependency or peer dependency of@typescript-eslint/rule-tester
.However the relied upon interface is tiny, so we can simply inline in the DependencyConstraint.ts source file.
Validation
I confirmed that with this change, my project compiles successfully.