Skip to content

Mention allowed type values in require-meta-type rule doc #121

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 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/rules/require-meta-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ Fixes in custom rules will not be applied when using `--fix-type` unless they in

## Rule Details

This rule aims to require ESLint rules to have a valid `meta.type` property.
This rule aims to require ESLint rules to have a valid `meta.type` property with one of the following values:

* `"problem"` means the rule is identifying code that either will cause an error or may cause a confusing behavior. Developers should consider this a high priority to resolve.
* `"suggestion"` means the rule is identifying something that could be done in a better way but no errors will occur if the code isn't changed.
* `"layout"` means the rule cares primarily about whitespace, semicolons, commas, and parentheses, all the parts of the program that determine how the code looks rather than how it executes. These rules work on parts of the code that aren't specified in the AST.

Examples of **incorrect** code for this rule:

Expand Down