10000 fix: wrong rule category by yeonjuan · Pull Request #378 · yeonjuan/html-eslint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: wrong rule category #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged

fix: wrong rule category #378

merged 1 commit into from
Jun 18, 2025

Conversation

yeonjuan
Copy link
Owner

@yeonjuan yeonjuan requested a review from Copilot June 18, 2025 14:28
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the rule categories for two ESLint rules to correctly reflect their intended purposes.

  • Updates the category for "no-extra-spacing-text" from BEST_PRACTICE to STYLE.
  • Updates the category for "max-element-depth" from STYLE to BEST_PRACTICE.
  • Revises the documentation in docs/rules.md to match the corrected rule categories.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/eslint-plugin/lib/rules/no-extra-spacing-text.js Changed rule category from BEST_PRACTICE to STYLE.
packages/eslint-plugin/lib/rules/max-element-depth.js Changed rule category from STYLE to BEST_PRACTICE.
docs/rules.md Updated the documentation table to reflect the new categorization.
Comments suppressed due to low confidence (3)

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

  • Confirm that updating the rule category to STYLE accurately reflects its intended usage and behavior.
      category: RULE_CATEGORY.STYLE,

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

  • Ensure that changing the category to BEST_PRACTICE is consistent with the rule's behavior and affects rule grouping as intended.
      category: RULE_CATEGORY.BEST_PRACTICE,

docs/rules.md:73

  • Verify that the documentation table update aligns with the new rule categories to maintain consistent communication to users.
| [no-extra-spacing-text](rules/no-extra-spacing-text)     | Disallow unnecessary consecutive spaces                           | 🔧   |

@yeonjuan yeonjuan merged commit 7c0dc9d into main Jun 18, 2025
3 checks passed
@yeonjuan yeonjuan deleted the fix/354 branch June 18, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOCS] Fix incorrect category assignments for no-extra-spacing-text and max-element-depth rules
1 participant
0