Skip to content

Commit 1134494

Browse files
golopotljharb
authored andcommitted
[Docs] Recategorize rules in readme
1 parent 01ab399 commit 1134494

14 files changed

+14
-14
lines changed

lib/rules/boolean-prop-naming.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const messages = {
2424
module.exports = {
2525
meta: {
2626
docs: {
27-
category: 'Stylistic Issues',
27+
category: 'Best Practices',
2828
description: 'Enforces consistent naming for boolean props',
2929
recommended: false,
3030
url: docsUrl('boolean-prop-naming'),

lib/rules/destructuring-assignment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = {
5757
meta: {
5858
docs: {
5959
description: 'Enforce consistent usage of destructuring assignment of props, state, and context',
60-
category: 'Stylistic Issues',
60+
category: 'Best Practices',
6161
recommended: false,
6262
url: docsUrl('destructuring-assignment'),
6363
},

lib/rules/function-component-definition.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module.exports = {
119119
meta: {
120120
docs: {
121121
description: 'Enforce a specific function type for function components',
122-
category: 'Stylistic Issues',
122+
category: 'Best Practices',
123123
recommended: false,
124124
url: docsUrl('function-component-definition'),
125125
},

lib/rules/jsx-boolean-value.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module.exports = {
7272
meta: {
7373
docs: {
7474
description: 'Enforce boolean attributes notation in JSX',
75-
category: 'Stylistic Issues',
75+
category: 'Best Practices',
7676
recommended: false,
7777
url: docsUrl('jsx-boolean-value'),
7878
},

lib/rules/jsx-filename-extension.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
meta: {
3232
docs: {
3333
description: 'Disallow 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

+1-1
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-pascal-case.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = {
8080
meta: {
8181
docs: {
8282
description: 'Enforce PascalCase for user-defined JSX components',
83-
category: 'Stylistic Issues',
83+
category: 'Best Practices',
8484
recommended: false,
8585
url: docsUrl('jsx-pascal-case'),
8686
},

lib/rules/no-multi-comp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
meta: {
2424
docs: {
2525
description: 'Disallow multiple component definition per file',
26-
category: 'Stylistic Issues',
26+
category: 'Best Practices',
2727
recommended: false,
2828
url: docsUrl('no-multi-comp'),
2929
},

lib/rules/no-set-state.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
meta: {
2424
docs: {
2525
description: 'Disallow usage of setState',
26-
category: 'Stylistic Issues',
26+
category: 'Best Practices',
2727
recommended: false,
2828
url: docsUrl('no-set-state'),
2929
},

lib/rules/no-typos.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
meta: {
3333
docs: {
3434
description: 'Disallow common typos',
35-
category: 'Stylistic Issues',
35+
category: 'Possible Errors',
3636
recommended: false,
3737
url: docsUrl('no-typos'),
3838
},

lib/rules/prefer-es6-class.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = {
2222
meta: {
2323
docs: {
2424
description: 'Enforce ES5 or ES6 class for React Components',
25-
category: 'Stylistic Issues',
25+
category: 'Best Practices',
2626
recommended: false,
2727
url: docsUrl('prefer-es6-class'),
2828
},

lib/rules/prefer-read-only-props.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
meta: {
4040
docs: {
4141
description: 'Enforce that props are read-only',
42-
category: 'Stylistic Issues',
42+
category: 'Best Practices',
4343
recommended: false,
4444
url: docsUrl('prefer-read-only-props'),
4545
},

lib/rules/prefer-stateless-function.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828
meta: {
2929
docs: {
3030
description: 'Enforce stateless components to be written as a pure function',
31-
category: 'Stylistic Issues',
31+
category: 'Best Practices',
3232
recommended: false,
3333
url: docsUrl('prefer-stateless-function'),
3434
},

lib/rules/state-in-constructor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
meta: {
2424
docs: {
2525
description: 'Enforce class component state initialization style',
26-
category: 'Stylistic Issues',
26+
category: 'Best Practices',
2727
recommended: false,
2828
url: docsUrl('state-in-constructor'),
2929
},

0 commit comments

Comments
 (0)