-
Notifications
You must be signed in to change notification settings - Fork 432
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
chore(eslint): add rules to enforce consistent type imports and deterministic import orders #5531
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
No changes to documentation |
Component Testing Report Updated Feb 9, 2024 1:15 PM (UTC)
|
7d06695
to
4b97f76
Compare
4b97f76
to
98b17d1
Compare
98b17d1
to
31b67d7
Compare
31b67d7
to
f1e404f
Compare
f1e404f
to
5d47343
Compare
5d47343
to
3cbc5c3
Compare
c270c5e
to
7df382a
Compare
7df382a
to
9873a39
Compare
…lveIntent tests to fail
9873a39
to
28200d7
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.
Hard to review the files, github just crashes and even typing this there is so much lag 😅 but all checks passes so trusting it works. Maybe we can do a canary bump and check in couple studios to be sure.
Also thanks a lot for getting it across the line!
Description
Enforcing consistent type imports and deterministic (ordered by type + alphabetical) import orders will help us reduce time spent on resolving diffs conflicts & performing code reviews
What to review
This PR consists of discrete commits that could be reviewed individually:
import React from 'react'
(thanks to @binoy14 for chore: removes React imports due to new jsx transform #5522), and enablesjsx: 'automatic'
with esbuild-register in dev serverNote: looks like the eslint CI workflow is being run with config from
next
, so it currently fails here, but it passes locally, and will likely pass once we merge this branch.I have tested quite extensively and not found any issues beyon the ones already fixed here.
Testing
Notes for release
n/a