Skip to content

Commit a189556

Browse files
committed
[Docs]: Recategorize rules in readme
1 parent e972bd7 commit a189556

File tree

97 files changed

+174
-149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+174
-149
lines changed

README.md

Lines changed: 46 additions & 37 deletions

lib/rules/boolean-prop-naming.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const messages = {
2222
module.exports = {
2323
meta: {
2424
docs: {
25-
category: 'Stylistic Issues',
25+
category: 'suggestion',
2626
description: 'Enforces consistent naming for boolean props',
2727
recommended: false,
2828
url: docsUrl('boolean-prop-naming'),

lib/rules/button-has-type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
meta: {
3333
docs: {
3434
description: 'Forbid "button" element without an explicit "type" attribute',
35-
category: 'Possible Errors',
35+
category: 'suggestion',
3636
recommended: false,
3737
url: docsUrl('button-has-type'),
3838
},

lib/rules/default-props-match-prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
meta: {
2424
docs: {
2525
description: 'Enforce all defaultProps are defined and not "required" in propTypes.',
26-
category: 'Best Practices',
26+
category: 'suggestion',
2727
url: docsUrl('default-props-match-prop-types'),
2828
},
2929

lib/rules/destructuring-assignment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = {
5656
meta: {
5757
docs: {
5858
description: 'Enforce consistent usage of destructuring assignment of props, state, and context',
59-
category: 'Stylistic Issues',
59+
category: 'suggestion',
6060
recommended: false,
6161
url: docsUrl('destructuring-assignment'),
6262
},

lib/rules/display-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525
meta: {
2626
docs: {
2727
description: 'Prevent missing displayName in a React component definition',
28-
category: 'Best Practices',
28+
category: 'suggestion',
2929
recommended: true,
3030
url: docsUrl('display-name'),
3131
},

lib/rules/forbid-component-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
meta: {
2727
docs: {
2828
description: 'Forbid certain props on components',
29-
category: 'Best Practices',
29+
category: 'suggestion',
3030
recommended: false,
3131
url: docsUrl('forbid-component-props'),
3232
},

lib/rules/forbid-dom-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
meta: {
2727
docs: {
2828
description: 'Forbid certain props on DOM Nodes',
29-
category: 'Best Practices',
29+
category: 'suggestion',
3030
recommended: false,
3131
url: docsUrl('forbid-dom-props'),
3232
},

lib/rules/forbid-elements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
meta: {
2424
docs: {
2525
description: 'Forbid certain elements',
26-
category: 'Best Practices',
26+
category: 'suggestion',
2727
recommended: false,
2828
url: docsUrl('forbid-elements'),
2929
},

lib/rules/forbid-foreign-prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
meta: {
1818
docs: {
1919
description: 'Forbid using another component\'s propTypes',
20-
category: 'Best Practices',
20+
category: 'suggestion',
2121
recommended: false,
2222
url: docsUrl('forbid-foreign-prop-types'),
2323
},

0 commit comments

Comments
 (0)