diff --git a/.eslint-doc-generatorrc.js b/.eslint-doc-generatorrc.js index 47100791..5c7da22e 100644 --- a/.eslint-doc-generatorrc.js +++ b/.eslint-doc-generatorrc.js @@ -11,6 +11,12 @@ module.exports = { 'rules-recommended', 'tests', 'tests-recommended', + 'flat/all', + 'flat/all-type-checked', + 'flat/rules', + 'flat/rules-recommended', + 'flat/tests', + 'flat/tests-recommended', ], postprocess: async (content, path) => prettier.format(content, { diff --git a/README.md b/README.md index 57edc427..d258b102 100644 --- a/README.md +++ b/README.md @@ -84,40 +84,40 @@ module.exports = [ ### Rules -| Name                          | Description | 💼 | 🔧 | 💡 | 💭 | -| :--------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------ | :-- | :-- | :-- | -| [fixer-return](docs/rules/fixer-return.md) | require fixer functions to return a fix | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | | | | -| [meta-property-ordering](docs/rules/meta-property-ordering.md) | enforce the order of meta properties | ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/rules][] | 🔧 | | | -| [no-deprecated-context-methods](docs/rules/no-deprecated-context-methods.md) | disallow usage of deprecated methods on rule context objects | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | 🔧 | | | -| [no-deprecated-report-api](docs/rules/no-deprecated-report-api.md) | disallow the version of `context.report()` with multiple arguments | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | 🔧 | | | -| [no-missing-message-ids](docs/rules/no-missing-message-ids.md) | disallow `messageId`s that are missing from `meta.messages` | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | | | | -| [no-missing-placeholders](docs/rules/no-missing-placeholders.md) | disallow missing placeholders in rule report messages | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | | | | -| [no-property-in-node](docs/rules/no-property-in-node.md) | disallow using `in` to narrow node types instead of looking at properties | ![badge-flat/all-type-checked][] ![badge-flat/rules][] | | | 💭 | -| [no-unused-message-ids](docs/rules/no-unused-message-ids.md) | disallow unused `messageId`s in `meta.messages` | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | | | | -| [no-unused-placeholders](docs/rules/no-unused-placeholders.md) | disallow unused placeholders in rule report messages | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | | | | -| [no-useless-token-range](docs/rules/no-useless-token-range.md) | disallow unnecessary calls to `sourceCode.getFirstToken()` and `sourceCode.getLastToken()` | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | 🔧 | | | -| [prefer-message-ids](docs/rules/prefer-message-ids.md) | require using `messageId` instead of `message` or `desc` to report rule violations | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | | | | -| [prefer-object-rule](docs/rules/prefer-object-rule.md) | disallow function-style rules | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | 🔧 | | | -| [prefer-placeholders](docs/rules/prefer-placeholders.md) | require using placeholders for dynamic report messages | ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/rules][] | | | | -| [prefer-replace-text](docs/rules/prefer-replace-text.md) | require using `replaceText()` instead of `replaceTextRange()` | ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/rules][] | | | | -| [report-message-format](docs/rules/report-message-format.md) | enforce a consistent format for rule report messages | ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/rules][] | | | | -| [require-meta-docs-description](docs/rules/require-meta-docs-description.md) | require rules to implement a `meta.docs.description` property with the correct format | ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/rules][] | | | | -| [require-meta-docs-url](docs/rules/require-meta-docs-url.md) | require rules to implement a `meta.docs.url` property | ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/rules][] | 🔧 | | | -| [require-meta-fixable](docs/rules/require-meta-fixable.md) | require rules to implement a `meta.fixable` property | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | | | | -| [require-meta-has-suggestions](docs/rules/require-meta-has-suggestions.md) | require suggestable rules to implement a `meta.hasSuggestions` property | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | 🔧 | | | -| [require-meta-schema](docs/rules/require-meta-schema.md) | require rules to implement a `meta.schema` property | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | | 💡 | | -| [require-meta-type](docs/rules/require-meta-type.md) | require rules to implement a `meta.type` property | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/rules][] ![badge-flat/rules-recommended][] | | | | +| Name                          | Description | 💼 | 🔧 | 💡 | 💭 | +| :--------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------- | :----------------------------- | :-- | :-- | :-- | +| [fixer-return](docs/rules/fixer-return.md) | require fixer functions to return a fix | ✅ ![badge-flat/recommended][] | | | | +| [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 | ✅ ![badge-flat/recommended][] | 🔧 | | | +| [no-deprecated-report-api](docs/rules/no-deprecated-report-api.md) | disallow the version of `context.report()` with multiple arguments | ✅ ![badge-flat/recommended][] | 🔧 | | | +| [no-missing-message-ids](docs/rules/no-missing-message-ids.md) | disallow `messageId`s that are missing from `meta.messages` | ✅ ![badge-flat/recommended][] | | | | +| [no-missing-placeholders](docs/rules/no-missing-placeholders.md) | disallow missing placeholders in rule report messages | ✅ ![badge-flat/recommended][] | | | | +| [no-property-in-node](docs/rules/no-property-in-node.md) | disallow using `in` to narrow node types instead of looking at properties | | | | 💭 | +| [no-unused-message-ids](docs/rules/no-unused-message-ids.md) | disallow unused `messageId`s in `meta.messages` | ✅ ![badge-flat/recommended][] | | | | +| [no-unused-placeholders](docs/rules/no-unused-placeholders.md) | disallow unused placeholders in rule report messages | ✅ ![badge-flat/recommended][] | | | | +| [no-useless-token-range](docs/rules/no-useless-token-range.md) | disallow unnecessary calls to `sourceCode.getFirstToken()` and `sourceCode.getLastToken()` | ✅ ![badge-flat/recommended][] | 🔧 | | | +| [prefer-message-ids](docs/rules/prefer-message-ids.md) | require using `messageId` instead of `message` or `desc` to report rule violations | ✅ ![badge-flat/recommended][] | | | | +| [prefer-object-rule](docs/rules/prefer-object-rule.md) | disallow function-style rules | ✅ ![badge-flat/recommended][] | 🔧 | | | +| [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-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-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 | ✅ ![badge-flat/recommended][] | | | | +| [require-meta-has-suggestions](docs/rules/require-meta-has-suggestions.md) | require suggestable rules to implement a `meta.hasSuggestions` property | ✅ ![badge-flat/recommended][] | 🔧 | | | +| [require-meta-schema](docs/rules/require-meta-schema.md) | require rules to implement a `meta.schema` property | ✅ ![badge-flat/recommended][] | | 💡 | | +| [require-meta-type](docs/rules/require-meta-type.md) | require rules to implement a `meta.type` property | ✅ ![badge-flat/recommended][] | | | | ### Tests -| Name                        | Description | 💼 | 🔧 | 💡 | 💭 | -| :----------------------------------------------------------------------- | :--------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------ | :-- | :-- | :-- | -| [consistent-output](docs/rules/consistent-output.md) | enforce consistent use of `output` assertions in rule tests | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/tests][] ![badge-flat/tests-recommended][] | | | | -| [no-identical-tests](docs/rules/no-identical-tests.md) | disallow identical tests | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/tests][] ![badge-flat/tests-recommended][] | 🔧 | | | -| [no-only-tests](docs/rules/no-only-tests.md) | disallow the test case property `only` | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/tests][] ![badge-flat/tests-recommended][] | | 💡 | | -| [prefer-output-null](docs/rules/prefer-output-null.md) | disallow invalid RuleTester test cases where the `output` matches the `code` | ✅ ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/recommended][] ![badge-flat/tests][] ![badge-flat/tests-recommended][] | 🔧 | | | -| [test-case-property-ordering](docs/rules/test-case-property-ordering.md) | require the properties of a test case to be placed in a consistent order | ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/tests][] | 🔧 | | | -| [test-case-shorthand-strings](docs/rules/test-case-shorthand-strings.md) | enforce consistent usage of shorthand strings for test cases with no options | ![badge-flat/all][] ![badge-flat/all-type-checked][] ![badge-flat/tests][] | 🔧 | | | +| Name                        | Description | 💼 | 🔧 | 💡 | 💭 | +| :----------------------------------------------------------------------- | :--------------------------------------------------------------------------- | :----------------------------- | :-- | :-- | :-- | +| [consistent-output](docs/rules/consistent-output.md) | enforce consistent use of `output` assertions in rule tests | ✅ ![badge-flat/recommended][] | | | | +| [no-identical-tests](docs/rules/no-identical-tests.md) | disallow identical tests | ✅ ![badge-flat/recommended][] | 🔧 | | | +| [no-only-tests](docs/rules/no-only-tests.md) | disallow the test case property `only` | ✅ ![badge-flat/recommended][] | | 💡 | | +| [prefer-output-null](docs/rules/prefer-output-null.md) | disallow invalid RuleTester test cases where the `output` matches the `code` | ✅ ![badge-flat/recommended][] | 🔧 | | | +| [test-case-property-ordering](docs/rules/test-case-property-ordering.md) | require the properties of a test case to be placed in a consistent order | | 🔧 | | | +| [test-case-shorthand-strings](docs/rules/test-case-shorthand-strings.md) | enforce consistent usage of shorthand strings for test cases with no options | | 🔧 | | | diff --git a/docs/rules/consistent-output.md b/docs/rules/consistent-output.md index 0b713751..6887b154 100644 --- a/docs/rules/consistent-output.md +++ b/docs/rules/consistent-output.md @@ -1,6 +1,6 @@ # Enforce consistent use of `output` assertions in rule tests (`eslint-plugin/consistent-output`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/tests`, `flat/tests-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. diff --git a/docs/rules/fixer-return.md b/docs/rules/fixer-return.md index 42384f9c..33327968 100644 --- a/docs/rules/fixer-return.md +++ b/docs/rules/fixer-return.md @@ -1,6 +1,6 @@ # Require fixer functions to return a fix (`eslint-plugin/fixer-return`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. diff --git a/docs/rules/meta-property-ordering.md b/docs/rules/meta-property-ordering.md index 4d3791b1..973138f5 100644 --- a/docs/rules/meta-property-ordering.md +++ b/docs/rules/meta-property-ordering.md @@ -1,7 +1,5 @@ # Enforce the order of meta properties (`eslint-plugin/meta-property-ordering`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/rules`. - 🔧 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/no-deprecated-context-methods.md b/docs/rules/no-deprecated-context-methods.md index f6f4c1ac..8082e312 100644 --- a/docs/rules/no-deprecated-context-methods.md +++ b/docs/rules/no-deprecated-context-methods.md @@ -1,6 +1,6 @@ # Disallow usage of deprecated methods on rule context objects (`eslint-plugin/no-deprecated-context-methods`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. 🔧 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/no-deprecated-report-api.md b/docs/rules/no-deprecated-report-api.md index c3b24faa..491bc39c 100644 --- a/docs/rules/no-deprecated-report-api.md +++ b/docs/rules/no-deprecated-report-api.md @@ -1,6 +1,6 @@ # Disallow the version of `context.report()` with multiple arguments (`eslint-plugin/no-deprecated-report-api`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. 🔧 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/no-identical-tests.md b/docs/rules/no-identical-tests.md index 2fa64eef..d25773a3 100644 --- a/docs/rules/no-identical-tests.md +++ b/docs/rules/no-identical-tests.md @@ -1,6 +1,6 @@ # Disallow identical tests (`eslint-plugin/no-identical-tests`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/tests`, `flat/tests-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. 🔧 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/no-missing-message-ids.md b/docs/rules/no-missing-message-ids.md index c77b82a4..c66be250 100644 --- a/docs/rules/no-missing-message-ids.md +++ b/docs/rules/no-missing-message-ids.md @@ -1,6 +1,6 @@ # Disallow `messageId`s that are missing from `meta.messages` (`eslint-plugin/no-missing-message-ids`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. diff --git a/docs/rules/no-missing-placeholders.md b/docs/rules/no-missing-placeholders.md index 6fd80ffa..c6361f8f 100644 --- a/docs/rules/no-missing-placeholders.md +++ b/docs/rules/no-missing-placeholders.md @@ -1,6 +1,6 @@ # Disallow missing placeholders in rule report messages (`eslint-plugin/no-missing-placeholders`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. diff --git a/docs/rules/no-only-tests.md b/docs/rules/no-only-tests.md index 2ebdfed2..b3f99574 100644 --- a/docs/rules/no-only-tests.md +++ b/docs/rules/no-only-tests.md @@ -1,6 +1,6 @@ # Disallow the test case property `only` (`eslint-plugin/no-only-tests`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/tests`, `flat/tests-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. 💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions). diff --git a/docs/rules/no-property-in-node.md b/docs/rules/no-property-in-node.md index 3c6ed6e1..1a44c31c 100644 --- a/docs/rules/no-property-in-node.md +++ b/docs/rules/no-property-in-node.md @@ -1,7 +1,5 @@ # Disallow using `in` to narrow node types instead of looking at properties (`eslint-plugin/no-property-in-node`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all-type-checked`, `flat/rules`. - 💭 This rule requires [type information](https://typescript-eslint.io/linting/typed-linting). diff --git a/docs/rules/no-unused-message-ids.md b/docs/rules/no-unused-message-ids.md index 590748c3..2b6a2d2e 100644 --- a/docs/rules/no-unused-message-ids.md +++ b/docs/rules/no-unused-message-ids.md @@ -1,6 +1,6 @@ # Disallow unused `messageId`s in `meta.messages` (`eslint-plugin/no-unused-message-ids`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. diff --git a/docs/rules/no-unused-placeholders.md b/docs/rules/no-unused-placeholders.md index 70f25259..79a46c93 100644 --- a/docs/rules/no-unused-placeholders.md +++ b/docs/rules/no-unused-placeholders.md @@ -1,6 +1,6 @@ # Disallow unused placeholders in rule report messages (`eslint-plugin/no-unused-placeholders`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. diff --git a/docs/rules/no-useless-token-range.md b/docs/rules/no-useless-token-range.md index 95cef98e..7a02a9b1 100644 --- a/docs/rules/no-useless-token-range.md +++ b/docs/rules/no-useless-token-range.md @@ -1,6 +1,6 @@ # Disallow unnecessary calls to `sourceCode.getFirstToken()` and `sourceCode.getLastToken()` (`eslint-plugin/no-useless-token-range`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. 🔧 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/prefer-message-ids.md b/docs/rules/prefer-message-ids.md index e751b2b4..ecc12e1e 100644 --- a/docs/rules/prefer-message-ids.md +++ b/docs/rules/prefer-message-ids.md @@ -1,6 +1,6 @@ # Require using `messageId` instead of `message` or `desc` to report rule violations (`eslint-plugin/prefer-message-ids`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. diff --git a/docs/rules/prefer-object-rule.md b/docs/rules/prefer-object-rule.md index 29cb8e7c..c0a722d4 100644 --- a/docs/rules/prefer-object-rule.md +++ b/docs/rules/prefer-object-rule.md @@ -1,6 +1,6 @@ # Disallow function-style rules (`eslint-plugin/prefer-object-rule`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. 🔧 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/prefer-output-null.md b/docs/rules/prefer-output-null.md index 138b901f..da9bc209 100644 --- a/docs/rules/prefer-output-null.md +++ b/docs/rules/prefer-output-null.md @@ -1,6 +1,6 @@ # Disallow invalid RuleTester test cases where the `output` matches the `code` (`eslint-plugin/prefer-output-null`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/tests`, `flat/tests-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. 🔧 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/prefer-placeholders.md b/docs/rules/prefer-placeholders.md index 3496d5ba..20e29822 100644 --- a/docs/rules/prefer-placeholders.md +++ b/docs/rules/prefer-placeholders.md @@ -1,7 +1,5 @@ # Require using placeholders for dynamic report messages (`eslint-plugin/prefer-placeholders`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/rules`. - Report messages in rules can have placeholders surrounded by curly brackets. diff --git a/docs/rules/prefer-replace-text.md b/docs/rules/prefer-replace-text.md index 2c19d976..7d233ae1 100644 --- a/docs/rules/prefer-replace-text.md +++ b/docs/rules/prefer-replace-text.md @@ -1,7 +1,5 @@ # Require using `replaceText()` instead of `replaceTextRange()` (`eslint-plugin/prefer-replace-text`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/rules`. - ## Rule Details diff --git a/docs/rules/report-message-format.md b/docs/rules/report-message-format.md index e224f3f9..aa324885 100644 --- a/docs/rules/report-message-format.md +++ b/docs/rules/report-message-format.md @@ -1,7 +1,5 @@ # Enforce a consistent format for rule report messages (`eslint-plugin/report-message-format`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/rules`. - It is sometimes desirable to maintain consistent formatting for all report messages. For example, you might want to mandate that all report messages begin with a capital letter and end with a period. diff --git a/docs/rules/require-meta-docs-description.md b/docs/rules/require-meta-docs-description.md index df743217..8de51bb9 100644 --- a/docs/rules/require-meta-docs-description.md +++ b/docs/rules/require-meta-docs-description.md @@ -1,7 +1,5 @@ # Require rules to implement a `meta.docs.description` property with the correct format (`eslint-plugin/require-meta-docs-description`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/rules`. - Defining a clear and consistent description for each rule helps developers understand what they're used for. diff --git a/docs/rules/require-meta-docs-url.md b/docs/rules/require-meta-docs-url.md index a4683612..4bb71a41 100644 --- a/docs/rules/require-meta-docs-url.md +++ b/docs/rules/require-meta-docs-url.md @@ -1,7 +1,5 @@ # Require rules to implement a `meta.docs.url` property (`eslint-plugin/require-meta-docs-url`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/rules`. - 🔧 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-fixable.md b/docs/rules/require-meta-fixable.md index ba84e955..81aeddb8 100644 --- a/docs/rules/require-meta-fixable.md +++ b/docs/rules/require-meta-fixable.md @@ -1,6 +1,6 @@ # Require rules to implement a `meta.fixable` property (`eslint-plugin/require-meta-fixable`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. diff --git a/docs/rules/require-meta-has-suggestions.md b/docs/rules/require-meta-has-suggestions.md index e909fbed..47218e70 100644 --- a/docs/rules/require-meta-has-suggestions.md +++ b/docs/rules/require-meta-has-suggestions.md @@ -1,6 +1,6 @@ # Require suggestable rules to implement a `meta.hasSuggestions` property (`eslint-plugin/require-meta-has-suggestions`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. 🔧 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.md b/docs/rules/require-meta-schema.md index 532bb607..5b6f759b 100644 --- a/docs/rules/require-meta-schema.md +++ b/docs/rules/require-meta-schema.md @@ -1,6 +1,6 @@ # Require rules to implement a `meta.schema` property (`eslint-plugin/require-meta-schema`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. 💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions). diff --git a/docs/rules/require-meta-type.md b/docs/rules/require-meta-type.md index 1d2e8fb0..91e7453c 100644 --- a/docs/rules/require-meta-type.md +++ b/docs/rules/require-meta-type.md @@ -1,6 +1,6 @@ # Require rules to implement a `meta.type` property (`eslint-plugin/require-meta-type`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/recommended`, `flat/rules`, `flat/rules-recommended`, ✅ `recommended`. +💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/recommended`, ✅ `recommended`. diff --git a/docs/rules/test-case-property-ordering.md b/docs/rules/test-case-property-ordering.md index 27c975f2..19b895ef 100644 --- a/docs/rules/test-case-property-ordering.md +++ b/docs/rules/test-case-property-ordering.md @@ -1,7 +1,5 @@ # Require the properties of a test case to be placed in a consistent order (`eslint-plugin/test-case-property-ordering`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/tests`. - 🔧 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/test-case-shorthand-strings.md b/docs/rules/test-case-shorthand-strings.md index 6099e1ce..0eb4acb8 100644 --- a/docs/rules/test-case-shorthand-strings.md +++ b/docs/rules/test-case-shorthand-strings.md @@ -1,7 +1,5 @@ # Enforce consistent usage of shorthand strings for test cases with no options (`eslint-plugin/test-case-shorthand-strings`) -💼 This rule is enabled in the following [configs](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets): `flat/all`, `flat/all-type-checked`, `flat/tests`. - 🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).