-
-
Notifications
You must be signed in to change notification settings - Fork 839
fix(lint): noUnusedVariables should ignore type parameters in ambient context #8561
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(lint): noUnusedVariables should ignore type parameters in ambient context #8561
Conversation
🦋 Changeset detectedLatest commit: 44261d5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
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 |
WalkthroughThis pull request refines the Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
CodSpeed Performance ReportMerging #8561 will not alter performanceComparing Summary
Footnotes
|
arendjr
left a comment
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.
Thank you!
Summary
.changeset/calm-ambient-type-params.md) since this is user-visible behavior.Test Plan
cargo test -p biome_js_analyze --test spec_tests -- specs::correctness::no_unused_variables::valid_ambient_type_param_tsDocs
Playground link
https://biomejs.dev/playground/?lintRules=noUnusedVariables&code=ZABlAGMAbABhAHIAZQAgAG0AbwBkAHUAbABlACAAIgByAGUAYQBjAHQAIgAgAHsACgAgACAAZQB4AHAAbwByAHQAIABpAG4AdABlAHIAZgBhAGMAZQAgAEMAbwBtAHAAbwBuAGUAbgB0AE0AZQB0AGEAPABUAD4AIAB7AAoAIAAgACAAIABkAGkAcwBwAGwAYQB5AE4AYQBtAGUAPwA6ACAAcwB0AHIAaQBuAGcAOwAKACAAIAAgACAAdgBlAHIAcwBpAG8AbgA%2FADoAIABzAHQAcgBpAG4AZwA7AAoAIAAgAH0ACgAKACAAIABlAHgAcABvAHIAdAAgAGkAbgB0AGUAcgBmAGEAYwBlACAASABvAG8AawBSAGUAcwB1AGwAdAA8AFQAPgAgAHsACgAgACAAIAAgAGUAcgByAG8AcgA%2FADoAIABFAHIAcgBvAHIAIAB8ACAAbgB1AGwAbAA7AAoAIAAgACAAIABpAHMATABvAGEAZABpAG4AZwA6ACAAYgBvAG8AbABlAGEAbgA7AAoAIAAgAH0ACgB9AA%3D%3D&language=ts