Skip to content

Commit 481a89c

Browse files
committed
Edit to message
1 parent 0f96e8d commit 481a89c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rules/__tests__/no-deprecated-experimental-components.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ ruleTester.run('no-deprecated-experimental-components', rule, {
3030
{
3131
code: `import {SelectPanel} from '@primer/react/experimental'`,
3232
errors: [
33-
'SelectPanel is deprecated. Please import them from the stable entrypoint (@primer/react) if available, or check https://primer.style/product/components/ for alternative components.',
33+
'SelectPanel is deprecated. Please import from the stable entrypoint (@primer/react) if available, or check https://primer.style/product/components/ for alternative components.',
3434
],
3535
},
3636
// Multiple experimental import
3737
{
3838
code: `import {SelectPanel, DataTable, ActionBar} from '@primer/react/experimental'`,
3939
errors: [
40-
'SelectPanel is deprecated. Please import them from the stable entrypoint (@primer/react) if available, or check https://primer.style/product/components/ for alternative components.',
40+
'SelectPanel is deprecated. Please import from the stable entrypoint (@primer/react) if available, or check https://primer.style/product/components/ for alternative components.',
4141
],
4242
},
4343
],

src/rules/no-deprecated-experimental-components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
if (experimental.length > 0) {
5555
const message = `${components.join(', ')} ${
5656
components.length > 1 ? 'are' : 'is'
57-
} deprecated. Please import them from the stable entrypoint (@primer/react) if available, or check https://primer.style/product/components/ for alternative components.`
57+
} deprecated. Please import from the stable entrypoint (@primer/react) if available, or check https://primer.style/product/components/ for alternative components.`
5858

5959
context.report({
6060
node,

0 commit comments

Comments
 (0)