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' ],
|
files: [ '**/*.js', '**/*.ts', '**/*.jsx', '**/*.tsx' ],
|
||||||
rules: {
|
rules: {
|
||||||
'react/react-in-jsx-scope': 'off',
|
'react/react-in-jsx-scope': 'off',
|
||||||
|
'@wordpress/no-unsafe-wp-apis': 'off',
|
||||||
'@wordpress/i18n-text-domain': [
|
'@wordpress/i18n-text-domain': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,6 @@ import { useSelect } from '@wordpress/data';
|
|||||||
import { useEffect, useState } from '@wordpress/element';
|
import { useEffect, useState } from '@wordpress/element';
|
||||||
import { store as editorStore } from '@wordpress/editor';
|
import { store as editorStore } from '@wordpress/editor';
|
||||||
import { __ } from '@wordpress/i18n';
|
import { __ } from '@wordpress/i18n';
|
||||||
// eslint-disable-next-line
|
|
||||||
import { __experimentalConfirmDialog as ConfirmDialog } from '@wordpress/components';
|
import { __experimentalConfirmDialog as ConfirmDialog } from '@wordpress/components';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,7 +10,7 @@ import {
|
|||||||
Button,
|
Button,
|
||||||
Dropdown,
|
Dropdown,
|
||||||
VisuallyHidden,
|
VisuallyHidden,
|
||||||
__experimentalText as Text, // eslint-disable-line
|
__experimentalText as Text,
|
||||||
TextControl,
|
TextControl,
|
||||||
} from '@wordpress/components';
|
} from '@wordpress/components';
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ import { ComplementaryArea } from '@wordpress/interface';
|
|||||||
import { ComponentProps } from 'react';
|
import { ComponentProps } from 'react';
|
||||||
import { styles } from '@wordpress/icons';
|
import { styles } from '@wordpress/icons';
|
||||||
import {
|
import {
|
||||||
__experimentalNavigatorProvider as NavigatorProvider, // eslint-disable-line
|
__experimentalNavigatorProvider as NavigatorProvider,
|
||||||
__experimentalNavigatorScreen as NavigatorScreen, // eslint-disable-line
|
__experimentalNavigatorScreen as NavigatorScreen,
|
||||||
} from '@wordpress/components';
|
} from '@wordpress/components';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -8,20 +8,19 @@ import { getBlockSupport, hasBlockSupport } from '@wordpress/blocks';
|
|||||||
import { Block } from '@wordpress/blocks/index';
|
import { Block } from '@wordpress/blocks/index';
|
||||||
import { __ } from '@wordpress/i18n';
|
import { __ } from '@wordpress/i18n';
|
||||||
import { justifyLeft, justifyCenter, justifyRight } from '@wordpress/icons';
|
import { justifyLeft, justifyCenter, justifyRight } from '@wordpress/icons';
|
||||||
|
import {
|
||||||
|
Flex,
|
||||||
|
FlexItem,
|
||||||
|
PanelBody,
|
||||||
|
__experimentalToggleGroupControl as ToggleGroupControl,
|
||||||
|
__experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon,
|
||||||
|
} from '@wordpress/components';
|
||||||
import {
|
import {
|
||||||
BlockControls,
|
BlockControls,
|
||||||
InspectorControls,
|
InspectorControls,
|
||||||
// @ts-expect-error No types for this exist yet.
|
// @ts-expect-error No types for this exist yet.
|
||||||
JustifyContentControl,
|
JustifyContentControl,
|
||||||
} from '@wordpress/block-editor';
|
} 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';
|
const layoutBlockSupportKey = '__experimentalEmailFlexLayout';
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@ import { addQueryArgs } from '@wordpress/url';
|
|||||||
import { decodeEntities } from '@wordpress/html-entities';
|
import { decodeEntities } from '@wordpress/html-entities';
|
||||||
import {
|
import {
|
||||||
// @ts-expect-error No types for __unstableSerializeAndClean
|
// @ts-expect-error No types for __unstableSerializeAndClean
|
||||||
// eslint-disable-next-line @wordpress/no-unsafe-wp-apis
|
|
||||||
__unstableSerializeAndClean,
|
__unstableSerializeAndClean,
|
||||||
parse,
|
parse,
|
||||||
} from '@wordpress/blocks';
|
} from '@wordpress/blocks';
|
||||||
|
Reference in New Issue
Block a user