Skip to content

Commit d3cd8e5

Browse files
committed
feat: move ButtonBase to experimental
1 parent 60d8088 commit d3cd8e5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/rules/__tests__/no-wildcard-imports.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ import type {BetterSystemStyleObject} from '@primer/react/lib-esm/sx'`,
169169
{
170170
code: `import {ButtonBase} from '@primer/react/lib-esm/Button/ButtonBase';
171171
import type {ButtonBaseProps} from '@primer/react/lib-esm/Button/ButtonBase'`,
172-
output: `import {ButtonBase} from '@primer/react'
173-
import {type ButtonBaseProps} from '@primer/react'`,
172+
output: `import {ButtonBase} from '@primer/react/experimental'
173+
import {type ButtonBaseProps} from '@primer/react/experimental'`,
174174
errors: [
175175
{
176176
messageId: 'wildcardMigration',
@@ -188,7 +188,7 @@ import {type ButtonBaseProps} from '@primer/react'`,
188188
},
189189
{
190190
code: `import type {ButtonBaseProps} from '@primer/react/lib-esm/Button/types'`,
191-
output: `import {type ButtonBaseProps} from '@primer/react'`,
191+
output: `import {type ButtonBaseProps} from '@primer/react/experimental'`,
192192
errors: [
193193
{
194194
messageId: 'wildcardMigration',

src/rules/no-wildcard-imports.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const wildcardImports = new Map([
1010
{
1111
type: 'type',
1212
name: 'ButtonBaseProps',
13-
from: '@primer/react',
13+
from: '@primer/react/experimental',
1414
},
1515
{
1616
name: 'ButtonBase',
17-
from: '@primer/react',
17+
from: '@primer/react/experimental',
1818
},
1919
],
2020
],
@@ -24,7 +24,7 @@ const wildcardImports = new Map([
2424
{
2525
type: 'type',
2626
name: 'ButtonBaseProps',
27-
from: '@primer/react',
27+
from: '@primer/react/experimental',
2828
},
2929
],
3030
],

0 commit comments

Comments
 (0)