-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update to Typescript 5.1 #52621
Update to Typescript 5.1 #52621
Changes from all commits
1cda32f
deeb20e
b0c7327
72aeeed
281b81c
74c6c86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,10 @@ import type { ForwardedRef } from 'react'; | |
/** | ||
* Internal dependencies | ||
*/ | ||
import { contextConnect, WordPressComponentProps } from '../../ui/context'; | ||
import { Divider, DividerProps } from '../../divider'; | ||
import type { WordPressComponentProps } from '../../ui/context'; | ||
import { contextConnect } from '../../ui/context'; | ||
import type { DividerProps } from '../../divider'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor nit, but I've found it a little bit easier to read when There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like this idea, but since these were all (more or less) automatic fixes, I'm not keen on going through all the files and reordering them. Would you want to add this as a separate lint rule? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we don't enforce sorting by an ESLint rule in Gutenberg, I'd abstain from this unless we can automatically sort them. It's a pretty minor deal too, feel free to ignore 😉 |
||
import { Divider } from '../../divider'; | ||
import { useCardDivider } from './hook'; | ||
|
||
function UnconnectedCardDivider( | ||
|
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 frequently import type annotations via JSDoc in Gutenberg, so we need to keep this setting off :)