Skip to content
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

chore: update rule meta to satisfiy lint rules #621

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Mar 19, 2025

Updates a few things in rule meta so the linter is happy:

  • Some descriptions didn't follow the naming convention (enforce, require, etc)
  • Some rules had no type, so these were set to problem
  • Some rules had no recommended, so these were set to if they are in the recommended config or not
  • Message IDs have been used instead of messages

these didn't happen in CI but did error locally for whatever reason

edit:

so it turns out the eslint-plugin-eslint-plugin rules haven't been running against the rule files

for whatever reason, ast.sourceType ends up as "module" inside the plugin, so it tries to look for ESM exports and doesn't find any. so the rules never run

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Updates a few things in rule meta so the linter is happy:

- Some descriptions didn't follow the naming convention (`enforce`,
  `require`, etc)
- Some rules had no `type`, so these were set to `problem`
- Some rules had no `recommended`, so these were set to if they are in
  the recommended config or not
- Message IDs have been used instead of messages
@43081j 43081j requested a review from a team as a code owner March 19, 2025 12:42
@43081j 43081j requested a review from manuelpuyol March 19, 2025 12:42
@43081j 43081j mentioned this pull request Mar 19, 2025
Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

This looks like a great cleanup, thanks so much @43081j!

@keithamus keithamus merged commit 88ccca2 into github:main Mar 19, 2025
2 checks passed
@43081j 43081j deleted the meta-lints branch March 19, 2025 14:35
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.

None yet

2 participants