Skip to content

Commit 07b6b34

Browse files
committed
update rule message
1 parent 834ed31 commit 07b6b34

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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 from the stable entrypoint (@primer/react) if available, or check https://primer.style/product/components/ for alternative components.',
33+
'The experimental 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 from the stable entrypoint (@primer/react) if available, or check https://primer.style/product/components/ for alternative components.',
40+
'The experimental 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
@@ -52,7 +52,7 @@ module.exports = {
5252
}
5353

5454
if (experimental.length > 0) {
55-
const message = `${components.join(', ')} ${
55+
const message = `The experimental ${components.join(', ')} ${
5656
components.length > 1 ? 'are' : 'is'
5757
} deprecated. Please import from the stable entrypoint (@primer/react) if available, or check https://primer.style/product/components/ for alternative components.`
5858

0 commit comments

Comments
 (0)