diff --git a/README.md b/README.md index 3b6e5000..5f15127a 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,8 @@ 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-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-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` | ✅ | | | | | [no-missing-placeholders](docs/rules/no-missing-placeholders.md) | disallow missing placeholders in rule report messages | ✅ | | | | | [no-property-in-node](docs/rules/no-property-in-node.md) | disallow using `in` to narrow node types instead of looking at properties | | | | 💭 | @@ -87,14 +87,14 @@ export default [ | [prefer-placeholders](docs/rules/prefer-placeholders.md) | require using placeholders for dynamic report messages | | | | | | [prefer-replace-text](docs/rules/prefer-replace-text.md) | require using `replaceText()` instead of `replaceTextRange()` | | | | | | [report-message-format](docs/rules/report-message-format.md) | enforce a consistent format for rule report messages | | | | | -| [require-meta-default-options](docs/rules/require-meta-default-options.md) | require only rules with options to implement a `meta.defaultOptions` property | | 🔧 | | | +| [require-meta-default-options](docs/rules/require-meta-default-options.md) | require only rules with options to implement a `meta.defaultOptions` property | ✅ | 🔧 | | | | [require-meta-docs-description](docs/rules/require-meta-docs-description.md) | require rules to implement a `meta.docs.description` property with the correct format | | | | | | [require-meta-docs-recommended](docs/rules/require-meta-docs-recommended.md) | require rules to implement a `meta.docs.recommended` property | | | 💡 | | | [require-meta-docs-url](docs/rules/require-meta-docs-url.md) | require rules to implement a `meta.docs.url` property | | 🔧 | | | | [require-meta-fixable](docs/rules/require-meta-fixable.md) | require rules to implement a `meta.fixable` property | ✅ | | | | | [require-meta-has-suggestions](docs/rules/require-meta-has-suggestions.md) | require suggestable rules to implement a `meta.hasSuggestions` property | ✅ | 🔧 | | | | [require-meta-schema](docs/rules/require-meta-schema.md) | require rules to implement a `meta.schema` property | ✅ | | 💡 | | -| [require-meta-schema-description](docs/rules/require-meta-schema-description.md) | require rules `meta.schema` properties to include descriptions | | | | | +| [require-meta-schema-description](docs/rules/require-meta-schema-description.md) | require rules `meta.schema` properties to include descriptions | ✅ | | | | | [require-meta-type](docs/rules/require-meta-type.md) | require rules to implement a `meta.type` property | ✅ | | | | ### Tests diff --git a/docs/rules/no-meta-replaced-by.md b/docs/rules/no-meta-replaced-by.md index 070fa5ef..3caf840d 100644 --- a/docs/rules/no-meta-replaced-by.md +++ b/docs/rules/no-meta-replaced-by.md @@ -1,5 +1,7 @@ # Disallow using the `meta.replacedBy` rule property (`eslint-plugin/no-meta-replaced-by`) +💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets). + As of ESLint v9.21.0, the rule property `meta.deprecated` can be either a boolean or an object of type `DeprecatedInfo`. The `DeprecatedInfo` type includes an optional `replacedBy` array that replaces the now-deprecated `meta.replacedBy` property. diff --git a/docs/rules/no-meta-schema-default.md b/docs/rules/no-meta-schema-default.md index 7bd3726e..56bcc3b9 100644 --- a/docs/rules/no-meta-schema-default.md +++ b/docs/rules/no-meta-schema-default.md @@ -1,5 +1,7 @@ # Disallow rules `meta.schema` properties to include defaults (`eslint-plugin/no-meta-schema-default`) +💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets). + Since ESLint v9.15.0, rules' default options are supported using `meta.defaultOptions`. Additionally defining them using the `default` property in `meta.schema` is confusing, error-prone, and can be ambiguous for complex schemas. diff --git a/docs/rules/require-meta-default-options.md b/docs/rules/require-meta-default-options.md index 70dab8ef..7c0488d8 100644 --- a/docs/rules/require-meta-default-options.md +++ b/docs/rules/require-meta-default-options.md @@ -1,5 +1,7 @@ # Require only rules with options to implement a `meta.defaultOptions` property (`eslint-plugin/require-meta-default-options`) +💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets). + 🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix). diff --git a/docs/rules/require-meta-schema-description.md b/docs/rules/require-meta-schema-description.md index 00a84e39..78e70ee4 100644 --- a/docs/rules/require-meta-schema-description.md +++ b/docs/rules/require-meta-schema-description.md @@ -1,5 +1,7 @@ # Require rules `meta.schema` properties to include descriptions (`eslint-plugin/require-meta-schema-description`) +💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets). + Defining a description in the schema for each rule option helps explain that option to users. diff --git a/lib/rules/no-meta-replaced-by.js b/lib/rules/no-meta-replaced-by.js index e6f59523..0ac98a8e 100644 --- a/lib/rules/no-meta-replaced-by.js +++ b/lib/rules/no-meta-replaced-by.js @@ -15,7 +15,7 @@ const rule = { docs: { description: 'disallow using the `meta.replacedBy` rule property', category: 'Rules', - recommended: false, + recommended: true, url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-meta-replaced-by.md', }, schema: [], diff --git a/lib/rules/no-meta-schema-default.js b/lib/rules/no-meta-schema-default.js index 26190088..bb8691df 100644 --- a/lib/rules/no-meta-schema-default.js +++ b/lib/rules/no-meta-schema-default.js @@ -13,7 +13,7 @@ const rule = { description: 'disallow rules `meta.schema` properties to include defaults', category: 'Rules', - recommended: false, + recommended: true, url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-meta-schema-default.md', }, schema: [], diff --git a/lib/rules/require-meta-default-options.js b/lib/rules/require-meta-default-options.js index 1e5d0a9c..5c1c7d83 100644 --- a/lib/rules/require-meta-default-options.js +++ b/lib/rules/require-meta-default-options.js @@ -8,7 +8,7 @@ const rule = { description: 'require only rules with options to implement a `meta.defaultOptions` property', category: 'Rules', - recommended: false, + recommended: true, url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-default-options.md', }, fixable: 'code', diff --git a/lib/rules/require-meta-schema-description.js b/lib/rules/require-meta-schema-description.js index f9bfe7b0..dd76bef1 100644 --- a/lib/rules/require-meta-schema-description.js +++ b/lib/rules/require-meta-schema-description.js @@ -13,7 +13,7 @@ const rule = { description: 'require rules `meta.schema` properties to include descriptions', category: 'Rules', - recommended: false, + recommended: true, url: 'https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-schema-description.md', }, schema: [],