Skip to content

Commit e7d2216

Browse files
make the rule suggestion
1 parent aaf8b59 commit e7d2216

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/rules/no-deprecated-props.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@
22
const {getJSXOpeningElementAttribute} = require('../utils/get-jsx-opening-element-attribute')
33
const {getJSXOpeningElementName} = require('../utils/get-jsx-opening-element-name')
44

5-
const url = require('../url')
6-
75
/**
86
* @type {import('eslint').Rule.RuleModule}
97
*/
108
module.exports = {
119
meta: {
12-
type: 'problem',
10+
type: 'suggestion',
1311
docs: {
14-
description: 'Avoid using deprecated props from @primer/react',
12+
description:
13+
'Avoid using deprecated `title` prop on `ActionList.Group` component. Use `ActionList.GroupHeading` instead.',
1514
recommended: true,
16-
url: url(module),
15+
url: 'https://primer.style/components/action-list/react/beta#actionlistgroupheading',
1716
},
18-
fixable: true,
17+
fixable: 'code',
1918
schema: [],
2019
messages: {
2120
titlePropDeprecated: 'The `title` prop is deprecated. Please use `ActionList.GroupHeading` instead.',

0 commit comments

Comments
 (0)