Skip to content

Commit 793d537

Browse files
committed
[Docs]: Recategorize rules in readme
1 parent 24bf594 commit 793d537

23 files changed

+99
-74
lines changed

README.md

Lines changed: 46 additions & 37 deletions
Large diffs are not rendered by default.

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: 'Best Practices',
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: 'Best Practices',
3636
recommended: false,
3737
url: docsUrl('button-has-type'),
3838
},

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: 'Best Practices',
6060
recommended: false,
6161
url: docsUrl('destructuring-assignment'),
6262
},

lib/rules/function-component-definition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ module.exports = {
102102
meta: {
103103
docs: {
104104
description: 'Standardize the way function component get defined',
105-
category: 'Stylistic Issues',
105+
category: 'Best Practices',
106106
recommended: false,
107107
url: docsUrl('function-component-definition'),
108108
},

lib/rules/jsx-boolean-value.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = {
5858
meta: {
5959
docs: {
6060
description: 'Enforce boolean attributes notation in JSX',
61-
category: 'Stylistic Issues',
61+
category: 'Best Practices',
6262
recommended: false,
6363
url: docsUrl('jsx-boolean-value'),
6464
},

lib/rules/jsx-filename-extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
meta: {
3232
docs: {
3333
description: 'Restrict file extensions that may contain JSX',
34-
category: 'Stylistic Issues',
34+
category: 'Best Practices',
3535
recommended: false,
3636
url: docsUrl('jsx-filename-extension'),
3737
},

lib/rules/jsx-fragments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
meta: {
3232
docs: {
3333
description: 'Enforce shorthand or standard form for React fragments',
34-
category: 'Stylistic Issues',
34+
category: 'Best Practices',
3535
recommended: false,
3636
url: docsUrl('jsx-fragments'),
3737
},

lib/rules/jsx-handler-names.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
meta: {
2222
docs: {
2323
description: 'Enforce event handler naming conventions in JSX',
24-
category: 'Stylistic Issues',
24+
category: 'Best Practices',
2525
recommended: false,
2626
url: docsUrl('jsx-handler-names'),
2727
},

lib/rules/jsx-max-depth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
meta: {
2525
docs: {
2626
description: 'Validate JSX maximum depth',
27-
category: 'Stylistic Issues',
27+
category: 'Best Practices',
2828
recommended: false,
2929
url: docsUrl('jsx-max-depth'),
3030
},

0 commit comments

Comments
 (0)