Skip to content

Commit

Permalink
[Docs] Recategorize rules in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
golopot authored and ljharb committed Feb 28, 2022
1 parent 01ab399 commit 1134494
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/rules/boolean-prop-naming.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const messages = {
module.exports = {
meta: {
docs: {
category: 'Stylistic Issues',
category: 'Best Practices',
description: 'Enforces consistent naming for boolean props',
recommended: false,
url: docsUrl('boolean-prop-naming'),
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/destructuring-assignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {
meta: {
docs: {
description: 'Enforce consistent usage of destructuring assignment of props, state, and context',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('destructuring-assignment'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/function-component-definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module.exports = {
meta: {
docs: {
description: 'Enforce a specific function type for function components',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('function-component-definition'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/jsx-boolean-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = {
meta: {
docs: {
description: 'Enforce boolean attributes notation in JSX',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('jsx-boolean-value'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/jsx-filename-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
meta: {
docs: {
description: 'Disallow file extensions that may contain JSX',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('jsx-filename-extension'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/jsx-fragments.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
meta: {
docs: {
description: 'Enforce shorthand or standard form for React fragments',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('jsx-fragments'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/jsx-pascal-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = {
meta: {
docs: {
description: 'Enforce PascalCase for user-defined JSX components',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('jsx-pascal-case'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-multi-comp.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
meta: {
docs: {
description: 'Disallow multiple component definition per file',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('no-multi-comp'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-set-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
meta: {
docs: {
description: 'Disallow usage of setState',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('no-set-state'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-typos.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
meta: {
docs: {
description: 'Disallow common typos',
category: 'Stylistic Issues',
category: 'Possible Errors',
recommended: false,
url: docsUrl('no-typos'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-es6-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
meta: {
docs: {
description: 'Enforce ES5 or ES6 class for React Components',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('prefer-es6-class'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-read-only-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
meta: {
docs: {
description: 'Enforce that props are read-only',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('prefer-read-only-props'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-stateless-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
meta: {
docs: {
description: 'Enforce stateless components to be written as a pure function',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('prefer-stateless-function'),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/state-in-constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
meta: {
docs: {
description: 'Enforce class component state initialization style',
category: 'Stylistic Issues',
category: 'Best Practices',
recommended: false,
url: docsUrl('state-in-constructor'),
},
Expand Down

0 comments on commit 1134494

Please sign in to comment.