diff --git a/packages/js/email-editor/.eslintrc.js b/packages/js/email-editor/.eslintrc.js index 93b6a7e4ef..ab685024db 100644 --- a/packages/js/email-editor/.eslintrc.js +++ b/packages/js/email-editor/.eslintrc.js @@ -5,6 +5,7 @@ module.exports = { files: [ '**/*.js', '**/*.ts', '**/*.jsx', '**/*.tsx' ], rules: { 'react/react-in-jsx-scope': 'off', + '@wordpress/no-unsafe-wp-apis': 'off', '@wordpress/i18n-text-domain': [ 'error', { diff --git a/packages/js/email-editor/src/components/block-editor/visual-editor/edit-template-blocks-notification.tsx b/packages/js/email-editor/src/components/block-editor/visual-editor/edit-template-blocks-notification.tsx index 64598566cf..cb453e2560 100644 --- a/packages/js/email-editor/src/components/block-editor/visual-editor/edit-template-blocks-notification.tsx +++ b/packages/js/email-editor/src/components/block-editor/visual-editor/edit-template-blocks-notification.tsx @@ -5,7 +5,6 @@ import { useSelect } from '@wordpress/data'; import { useEffect, useState } from '@wordpress/element'; import { store as editorStore } from '@wordpress/editor'; import { __ } from '@wordpress/i18n'; -// eslint-disable-next-line import { __experimentalConfirmDialog as ConfirmDialog } from '@wordpress/components'; /** diff --git a/packages/js/email-editor/src/components/header/campaign-name.tsx b/packages/js/email-editor/src/components/header/campaign-name.tsx index 71f99ac700..af63c59db6 100644 --- a/packages/js/email-editor/src/components/header/campaign-name.tsx +++ b/packages/js/email-editor/src/components/header/campaign-name.tsx @@ -10,7 +10,7 @@ import { Button, Dropdown, VisuallyHidden, - __experimentalText as Text, // eslint-disable-line + __experimentalText as Text, TextControl, } from '@wordpress/components'; diff --git a/packages/js/email-editor/src/components/styles-sidebar/styles-sidebar.tsx b/packages/js/email-editor/src/components/styles-sidebar/styles-sidebar.tsx index e6557c2679..216c7eed51 100644 --- a/packages/js/email-editor/src/components/styles-sidebar/styles-sidebar.tsx +++ b/packages/js/email-editor/src/components/styles-sidebar/styles-sidebar.tsx @@ -7,8 +7,8 @@ import { ComplementaryArea } from '@wordpress/interface'; import { ComponentProps } from 'react'; import { styles } from '@wordpress/icons'; import { - __experimentalNavigatorProvider as NavigatorProvider, // eslint-disable-line - __experimentalNavigatorScreen as NavigatorScreen, // eslint-disable-line + __experimentalNavigatorProvider as NavigatorProvider, + __experimentalNavigatorScreen as NavigatorScreen, } from '@wordpress/components'; /** diff --git a/packages/js/email-editor/src/layouts/flex-email.tsx b/packages/js/email-editor/src/layouts/flex-email.tsx index 9353ce46b1..d6af5d0ed7 100644 --- a/packages/js/email-editor/src/layouts/flex-email.tsx +++ b/packages/js/email-editor/src/layouts/flex-email.tsx @@ -8,20 +8,19 @@ import { getBlockSupport, hasBlockSupport } from '@wordpress/blocks'; import { Block } from '@wordpress/blocks/index'; import { __ } from '@wordpress/i18n'; import { justifyLeft, justifyCenter, justifyRight } from '@wordpress/icons'; +import { + Flex, + FlexItem, + PanelBody, + __experimentalToggleGroupControl as ToggleGroupControl, + __experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon, +} from '@wordpress/components'; import { BlockControls, InspectorControls, // @ts-expect-error No types for this exist yet. JustifyContentControl, } from '@wordpress/block-editor'; -// eslint-disable-next-line @woocommerce/dependency-group -import { - Flex, - FlexItem, - PanelBody, - __experimentalToggleGroupControl as ToggleGroupControl, // eslint-disable-line - __experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon, // eslint-disable-line -} from '@wordpress/components'; const layoutBlockSupportKey = '__experimentalEmailFlexLayout'; diff --git a/packages/js/email-editor/src/store/actions.ts b/packages/js/email-editor/src/store/actions.ts index 05c11b2844..7f5e5a8cc1 100644 --- a/packages/js/email-editor/src/store/actions.ts +++ b/packages/js/email-editor/src/store/actions.ts @@ -17,7 +17,6 @@ import { addQueryArgs } from '@wordpress/url'; import { decodeEntities } from '@wordpress/html-entities'; import { // @ts-expect-error No types for __unstableSerializeAndClean - // eslint-disable-next-line @wordpress/no-unsafe-wp-apis __unstableSerializeAndClean, parse, } from '@wordpress/blocks';