diff --git a/README.md b/README.md index a189e245..b398b73a 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ export default [ | [meta-property-ordering](docs/rules/meta-property-ordering.md) | enforce the order of meta properties | | 🔧 | | | | [no-deprecated-context-methods](docs/rules/no-deprecated-context-methods.md) | disallow usage of deprecated methods on rule context objects | ✅ | 🔧 | | | | [no-deprecated-report-api](docs/rules/no-deprecated-report-api.md) | disallow the version of `context.report()` with multiple arguments | ✅ | 🔧 | | | -| [no-matching-violation-suggest-message-ids](docs/rules/no-matching-violation-suggest-message-ids.md) | require suggestions to have different `messageId` than their parent report | | | | | +| [no-matching-violation-suggest-message-ids](docs/rules/no-matching-violation-suggest-message-ids.md) | require suggestions to have different `messageId` than their parent report | ✅ | | | | | [no-meta-replaced-by](docs/rules/no-meta-replaced-by.md) | disallow using the `meta.replacedBy` rule property | ✅ | | | | | [no-meta-schema-default](docs/rules/no-meta-schema-default.md) | disallow rules `meta.schema` properties to include defaults | ✅ | | | | | [no-missing-message-ids](docs/rules/no-missing-message-ids.md) | disallow `messageId`s that are missing from `meta.messages` | ✅ | | | | diff --git a/docs/rules/no-matching-violation-suggest-message-ids.md b/docs/rules/no-matching-violation-suggest-message-ids.md index 68a1ce65..781e336b 100644 --- a/docs/rules/no-matching-violation-suggest-message-ids.md +++ b/docs/rules/no-matching-violation-suggest-message-ids.md @@ -1,5 +1,7 @@ # Require suggestions to have different `messageId` than their parent report (`eslint-plugin/no-matching-violation-suggest-message-ids`) +💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets). + When providing fix suggestions to a reported problem, it's important to have an actionable `messageId` for each suggestion rather than reusing the same `messageId` as the main report. diff --git a/lib/rules/no-matching-violation-suggest-message-ids.ts b/lib/rules/no-matching-violation-suggest-message-ids.ts index d1ddd319..efc89fa3 100644 --- a/lib/rules/no-matching-violation-suggest-message-ids.ts +++ b/lib/rules/no-matching-violation-suggest-message-ids.ts @@ -15,7 +15,7 @@ const rule: Rule.RuleModule = { meta: { type: 'suggestion', docs: { - recommended: false, + recommended: true, description: 'require suggestions to have different `messageId` than their parent report', category: 'Rules',