-
-
Notifications
You must be signed in to change notification settings - Fork 791
fix(noUnusedImports): detect JSDoc tags on object properties #8303
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
🦋 Changeset detectedLatest commit: f79b5f9 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 |
WalkthroughThe PR updates the noUnusedImports linter to recognise JSDoc/TSDoc references attached to object properties by adding AnyJsObjectMember to the node union used when collecting JSDoc type references. Tests were added for JavaScript and TypeScript cases that place JSDoc/TSDoc references on object properties to verify those imports are treated as used. Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (6)
🚧 Files skipped from review as they are similar to previous changes (4)
🧰 Additional context used📓 Path-based instructions (1)**/*.ts📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-11-24T18:05:42.356ZApplied to files:
📚 Learning: 2025-11-27T23:04:02.022ZApplied to files:
📚 Learning: 2025-11-27T23:04:02.022ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
🔇 Additional comments (3)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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 |
48c0402 to
f79b5f9
Compare
CodSpeed Performance ReportMerging #8303 will not alter performanceComparing Summary
Footnotes
|
Summary
This PR fixes the
noUnusedImportsrule to detect JSDoc tags on object properties.Closes #8300.
Test Plan
Test cases were added to:
crates/biome_js_analyze/tests/specs/correctness/noUnusedImports/issue_4677_jsdoc.jscrates/biome_js_analyze/tests/specs/correctness/noUnusedImports/issue_4677_tsdoc.tscrates/biome_js_analyze/tests/specs/correctness/noUnusedImports/issue_7876_tsdoc_linkcode.tscrates/biome_js_analyze/tests/specs/correctness/noUnusedImports/issue_7876_tsdoc_linkplain.ts