Disable @wordpress/no-unsafe-wp-apis
The unsafe APIs concept was replaced by private APIs. [MAILPOET-6438]
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
07629938cb
commit
3693abf0d4
@ -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',
|
||||
{
|
||||
|
@ -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';
|
||||
|
||||
/**
|
||||
|
@ -10,7 +10,7 @@ import {
|
||||
Button,
|
||||
Dropdown,
|
||||
VisuallyHidden,
|
||||
__experimentalText as Text, // eslint-disable-line
|
||||
__experimentalText as Text,
|
||||
TextControl,
|
||||
} from '@wordpress/components';
|
||||
|
||||
|
@ -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';
|
||||
|
||||
/**
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
Reference in New Issue
Block a user