-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
feat: useExportsLast #4172
base: main
Are you sure you want to change the base?
feat: useExportsLast #4172
Conversation
crates/biome_js_analyze/tests/specs/nursery/useExportsLast/valid_multiple_separate_exports.js
Outdated
Show resolved
Hide resolved
CodSpeed Performance ReportMerging #4172 will not alter performanceComparing Summary
|
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! I left some comments
@togami2864 Thank you so much for the feedback. I'm pretty new to rust and biome and I appreciate the guidance. I think I've addressed all your concerns and I also resolved the merge conflicts including re-running |
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! Could you rebase?
e832245
to
cd1b1c6
Compare
cd1b1c6
to
97178a1
Compare
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.
We're almost there. One thing to address regarding the diagnostics. cc @togami2864 for visibility
markup! { | ||
"Export statements should appear at the end of the file." | ||
}, | ||
) | ||
.note(markup! { | ||
"Move this export to the end of the file." | ||
}), |
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.
In our contribution guide, we explain how to explain a diagnostic to the user. In this case, we don't explain the error. Can you address that, please?
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.
I made an update that I hope is acceptable. I had previously read the contribution guide but I just missed the mark. Thank you for providing such detailed docs though. That and the PR help has really made making my first constribution approachable.
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.
I believe there's been a misunderstanding. The previous message was fine, even better than the new one. What was missing is explain why exports should be moved, because that's the error. So the diagnostic should provide three notes:
- Error
- Explain the error
- Provide an actionable solution
Co-authored-by: Emanuele Stoppa <[email protected]>
Summary
This implements similar functionality to eslint-plugin-import/exports-last
Test Plan
Added tests and snapshots