diff --git a/packages/react-i18n/src/index.tsx b/packages/react-i18n/src/index.tsx index 980b11edc88b7a..3f96a4f217254c 100644 --- a/packages/react-i18n/src/index.tsx +++ b/packages/react-i18n/src/index.tsx @@ -1,3 +1,10 @@ +/** + * External dependencies + */ +// Disable reason: Type-only import, this is fine. See https://github.com/typescript-eslint/typescript-eslint/issues/2661 +// eslint-disable-next-line no-restricted-imports +import type { ComponentType, PropsWithChildren } from 'react'; + /** * WordPress dependencies */ @@ -8,9 +15,7 @@ import { useMemo, useReducer, } from '@wordpress/element'; -import { defaultI18n } from '@wordpress/i18n'; -import type { I18n } from '@wordpress/i18n'; -import type { ComponentType, PropsWithChildren } from 'react'; +import { defaultI18n, I18n } from '@wordpress/i18n'; import type { Subtract } from 'utility-types'; interface I18nContextProps {