feat(linter): add rule noRedundantDefaultExport#8931
Conversation
…ult export names in no_redundant_default_export lint rule
…dantDefaultExport
🦋 Changeset detectedLatest commit: b962a1e 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 |
WalkthroughAdds a new JavaScript lint rule Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Merging this PR will not alter performance
Comparing Footnotes
|
dyc3
left a comment
There was a problem hiding this comment.
Nicely done! Just needs a tweak to the changeset.
Co-authored-by: Carson McManus <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.changeset/light-crews-cough.md:
- Line 5: Replace the "<brief explanation>" placeholder with a concise
description of the new nursery rule noRedundantDefaultExport: state that the
rule detects and flags modules that export the same binding as both a named
export and a default export (redundant default exports), and give a short
example or purpose phrase such as "flags when a module exports the same
identifier as both a named export and the default to avoid redundancy." Ensure
the replacement sits inline with the existing sentence so the changelog line
reads naturally.
fixes #5885
Summary
This PR introduces a new lint rule:
noRedundantDefaultExport.Test Plan
crates/biome_js_analyze/tests/specs/nursery/noRedundantDefaultExport/**.snapsnapshot outputs.This is my first PR to Biome, so it may not include all necessary changes. If that's the case, I'd appreciate it if you could let me know.