Skip to content

Commit 7c0dc9d

Browse files
authored
fix: wrong rule category (#378)
1 parent d484ad3 commit 7c0dc9d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
| Rule | Description | |
1111
| ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- | ---- |
12+
| [max-element-depth](rules/max-element-depth) | Enforce element maximum depth | |
1213
| [no-duplicate-attrs](rules/no-duplicate-attrs) | Disallow to use duplicate attributes ||
1314
| [no-duplicate-class](rules/no-duplicate-class) | Disallow to use duplicate class | 🔧 |
1415
| [no-duplicate-id](rules/no-duplicate-id) | Disallow to use duplicate id ||
15-
| [no-extra-spacing-text](rules/no-extra-spacing-text) | Disallow unnecessary consecutive spaces | 🔧 |
1616
| [no-inline-styles](rules/no-inline-styles) | Disallow using inline style | |
1717
| [no-nested-interactive](rules/no-nested-interactive) | Disallows nested interactive elements | |
1818
| [no-obsolete-tags](rules/no-obsolete-tags) | Disallow to use obsolete elements in HTML5 ||
@@ -69,8 +69,8 @@
6969
| [id-naming-convention](rules/id-naming-convention) | Enforce consistent naming id attributes | |
7070
| [indent](rules/indent) | Enforce consistent indentation | ⭐🔧 |
7171
| [lowercase](rules/lowercase) | Enforce to use lowercase for tag and attribute names. | 🔧 |
72-
| [max-element-depth](rules/max-element-depth) | Enforce element maximum depth | |
7372
| [no-extra-spacing-attrs](rules/no-extra-spacing-attrs) | Disallow an extra spacing around attributes | ⭐🔧 |
73+
| [no-extra-spacing-text](rules/no-extra-spacing-text) | Disallow unnecessary consecutive spaces | 🔧 |
7474
| [no-multiple-empty-lines](rules/no-multiple-empty-lines) | Disallow multiple empty lines | 🔧 |
7575
| [no-trailing-spaces](rules/no-trailing-spaces) | Disallow trailing whitespace at the end of lines | 🔧 |
7676
| [quotes](rules/quotes) | Enforce consistent quoting attributes with double(") or single(') | ⭐🔧 |

packages/eslint-plugin/lib/rules/max-element-depth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525

2626
docs: {
2727
description: "Enforce element maximum depth",
28-
category: RULE_CATEGORY.STYLE,
28+
category: RULE_CATEGORY.BEST_PRACTICE,
2929
recommended: false,
3030
url: getRuleUrl("max-element-depth"),
3131
},

packages/eslint-plugin/lib/rules/no-extra-spacing-text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030

3131
docs: {
3232
description: "Disallow unnecessary consecutive spaces",
33-
category: RULE_CATEGORY.BEST_PRACTICE,
33+
category: RULE_CATEGORY.STYLE,
3434
recommended: false,
3535
url: getRuleUrl("no-extra-spacing-text"),
3636
},

0 commit comments

Comments
 (0)