-
Notifications
You must be signed in to change notification settings - Fork 13
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: use valid import/export syntax #2563
Conversation
Previously we were using the common syntax of importing/exporting files without the extension. However, this is not natively supported in browsers and also not in Node.js with ESM. This change adds a linting rule that automatically adds the .js extension to any relative import.
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2563 +/- ##
=======================================
Coverage ? 93.22%
=======================================
Files ? 308
Lines ? 25309
Branches ? 2047
=======================================
Hits ? 23594
Misses ? 1683
Partials ? 32 ☔ View full report in Codecov by Sentry. |
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 checked every single file to ensure that everything is correct to finally see at the end of the PR that there is a new linting rule :P
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 👍
I think you broke the record for most changed files in a pr
I'm torn between being proud and distraught 😅 |
Previously we were using the common syntax of importing/exporting files without the extension. However, this is not natively supported in browsers and also not in Node.js with ESM. This change adds a linting rule that automatically adds the .js extension
to any relative import.