Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ ruleTester.run( 'use-recommended-components', rule, {

// Allowed @wordpress/ui components.
"import { Badge } from '@wordpress/ui';",
"import { Icon } from '@wordpress/ui';",
"import { Link } from '@wordpress/ui';",
"import { Stack } from '@wordpress/ui';",
"import { Text } from '@wordpress/ui';",
"import { Autocomplete, Badge, Field, Fieldset, Icon, Link, Stack, Tabs, Text, Tooltip } from '@wordpress/ui';",
"import { Spinner } from '@wordpress/ui';",
"import { KeyboardShortcutDescription, KeyboardShortcutDisplay, useKeyboardShortcutProps } from '@wordpress/ui';",
"import { ControlWithError } from '@wordpress/ui';",
"import { ValidatedInputControl, InputLayout } from '@wordpress/ui';",
"import { ValidatedTextareaControl } from '@wordpress/ui';",

// Unlocked private APIs are only checked for denied names.
"import { privateApis } from '@wordpress/components'; import { unlock } from '../../lock-unlock'; const { SomethingElse } = unlock( privateApis );",
Expand Down Expand Up @@ -95,17 +85,6 @@ ruleTester.run( 'use-recommended-components', rule, {
},
],
},
{
code: "import { Tabs, TabPanel } from '@wordpress/components';",
errors: [
{
message: 'Use `Tabs` from `@wordpress/ui` instead.',
},
{
message: 'Use `Tabs` from `@wordpress/ui` instead.',
},
],
},
{
code: "import { privateApis } from '@wordpress/components'; import { unlock } from '../../lock-unlock'; const { Tabs } = unlock( privateApis );",
errors: [
Expand All @@ -122,14 +101,6 @@ ruleTester.run( 'use-recommended-components', rule, {
},
],
},
{
code: "import { Tooltip } from '@wordpress/components';",
errors: [
{
message: 'Use `Tooltip` from `@wordpress/ui` instead.',
},
],
},
],
} );

Expand Down
Loading