{"id":14978266,"url":"https://github.com/eslint-community/eslint-plugin-eslint-plugin","last_synced_at":"2026-01-12T07:55:43.882Z","repository":{"id":37885434,"uuid":"76387033","full_name":"eslint-community/eslint-plugin-eslint-plugin","owner":"eslint-community","description":"An ESLint plugin for linting ESLint plugins","archived":false,"fork":false,"pushed_at":"2025-05-05T11:22:28.000Z","size":981,"stargazers_count":209,"open_issues_count":30,"forks_count":30,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-05T12:35:20.286Z","etag":null,"topics":["eslint","eslint-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eslint-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-13T18:30:56.000Z","updated_at":"2025-05-05T11:22:32.000Z","dependencies_parsed_at":"2024-01-02T23:43:08.000Z","dependency_job_id":"825fad28-5d2e-44ec-bf58-20260366ff1a","html_url":"https://github.com/eslint-community/eslint-plugin-eslint-plugin","commit_stats":{"total_commits":412,"total_committers":28,"mean_commits":"14.714285714285714","dds":0.6868932038834952,"last_synced_commit":"7b93c7a6adc175a123050d8196fbfb4309227b03"},"previous_names":["not-an-aardvark/eslint-plugin-eslint-plugin"],"tags_count":79,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eslint-community%2Feslint-plugin-eslint-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eslint-community%2Feslint-plugin-eslint-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eslint-community%2Feslint-plugin-eslint-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eslint-community%2Feslint-plugin-eslint-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eslint-community","download_url":"https://codeload.github.com/eslint-community/eslint-plugin-eslint-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252601876,"owners_count":21774663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","eslint-plugin"],"created_at":"2024-09-24T13:57:13.832Z","updated_at":"2026-01-12T07:55:43.876Z","avatar_url":"https://github.com/eslint-community.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# eslint-plugin-eslint-plugin ![CI](https://github.com/eslint-community/eslint-plugin-eslint-plugin/workflows/CI/badge.svg) [![NPM version](https://img.shields.io/npm/v/eslint-plugin-eslint-plugin.svg?style=flat)](https://npmjs.org/package/eslint-plugin-eslint-plugin) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) \u003c!-- omit from toc --\u003e\n\nAn ESLint plugin for linting ESLint plugins. Rules written in CJS, ESM, and TypeScript are all supported.\n\n\u003c!-- vscode-markdown-toc --\u003e\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Rules](#rules)\n  - [Rules](#rules-1)\n  - [Tests](#tests)\n- [Presets](#presets)\n  - [Semantic versioning policy](#semantic-versioning-policy)\n  - [Preset usage](#preset-usage)\n\n\u003c!-- vscode-markdown-toc-config\n\tnumbering=false\n\tautoSave=true\n\t/vscode-markdown-toc-config --\u003e\n\u003c!-- /vscode-markdown-toc --\u003e\n\n## \u003ca name='Installation'\u003e\u003c/a\u003eInstallation\n\nYou'll first need to install [ESLint](https://eslint.org):\n\n```sh\nnpm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-eslint-plugin`:\n\n```sh\nnpm install eslint-plugin-eslint-plugin --save-dev\n```\n\n## \u003ca name='Usage'\u003e\u003c/a\u003eUsage\n\nHere's an example ESLint configuration that:\n\n- Enables the `recommended` configuration\n- Enables an optional/non-recommended rule\n\nNote: you might need to set `sourceType` to `module` or `script` depending on your codebase.\n\n```js\n// eslint.config.js\nimport eslintPlugin from 'eslint-plugin-eslint-plugin';\n\nexport default [\n  eslintPlugin.configs.recommended,\n  {\n    rules: {\n      'eslint-plugin/require-meta-docs-description': 'error',\n    },\n  },\n];\n```\n\n## \u003ca name='Rules'\u003e\u003c/a\u003eRules\n\n\u003c!-- begin auto-generated rules list --\u003e\n\n💼 [Configurations](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets) enabled in.\\\n✅ Set in the `recommended` [configuration](https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets).\\\n🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\\\n💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).\\\n💭 Requires [type information](https://typescript-eslint.io/linting/typed-linting).\n\n### Rules\n\n| Name                                                                                                 | Description                                                                                | 💼  | 🔧  | 💡  | 💭  |\n| :--------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------- | :-- | :-- | :-- | :-- |\n| [fixer-return](docs/rules/fixer-return.md)                                                           | require fixer functions to return a fix                                                    | ✅  |     |     |     |\n| [meta-property-ordering](docs/rules/meta-property-ordering.md)                                       | enforce the order of meta properties                                                       |     | 🔧  |     |     |\n| [no-deprecated-context-methods](docs/rules/no-deprecated-context-methods.md)                         | disallow usage of deprecated methods on rule context objects                               | ✅  | 🔧  |     |     |\n| [no-deprecated-report-api](docs/rules/no-deprecated-report-api.md)                                   | disallow the version of `context.report()` with multiple arguments                         | ✅  | 🔧  |     |     |\n| [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                 |     |     |     |     |\n| [no-meta-replaced-by](docs/rules/no-meta-replaced-by.md)                                             | disallow using the `meta.replacedBy` rule property                                         | ✅  |     |     |     |\n| [no-meta-schema-default](docs/rules/no-meta-schema-default.md)                                       | disallow rules `meta.schema` properties to include defaults                                | ✅  |     |     |     |\n| [no-missing-message-ids](docs/rules/no-missing-message-ids.md)                                       | disallow `messageId`s that are missing from `meta.messages`                                | ✅  |     |     |     |\n| [no-missing-placeholders](docs/rules/no-missing-placeholders.md)                                     | disallow missing placeholders in rule report messages                                      | ✅  |     |     |     |\n| [no-property-in-node](docs/rules/no-property-in-node.md)                                             | disallow using `in` to narrow node types instead of looking at properties                  |     |     |     | 💭  |\n| [no-unused-message-ids](docs/rules/no-unused-message-ids.md)                                         | disallow unused `messageId`s in `meta.messages`                                            | ✅  |     |     |     |\n| [no-unused-placeholders](docs/rules/no-unused-placeholders.md)                                       | disallow unused placeholders in rule report messages                                       | ✅  |     |     |     |\n| [no-useless-token-range](docs/rules/no-useless-token-range.md)                                       | disallow unnecessary calls to `sourceCode.getFirstToken()` and `sourceCode.getLastToken()` | ✅  | 🔧  |     |     |\n| [prefer-message-ids](docs/rules/prefer-message-ids.md)                                               | require using `messageId` instead of `message` or `desc` to report rule violations         | ✅  |     |     |     |\n| [prefer-object-rule](docs/rules/prefer-object-rule.md)                                               | disallow function-style rules                                                              | ✅  | 🔧  |     |     |\n| [prefer-placeholders](docs/rules/prefer-placeholders.md)                                             | require using placeholders for dynamic report messages                                     |     |     |     |     |\n| [prefer-replace-text](docs/rules/prefer-replace-text.md)                                             | require using `replaceText()` instead of `replaceTextRange()`                              |     |     |     |     |\n| [report-message-format](docs/rules/report-message-format.md)                                         | enforce a consistent format for rule report messages                                       |     |     |     |     |\n| [require-meta-default-options](docs/rules/require-meta-default-options.md)                           | require only rules with options to implement a `meta.defaultOptions` property              | ✅  | 🔧  |     |     |\n| [require-meta-docs-description](docs/rules/require-meta-docs-description.md)                         | require rules to implement a `meta.docs.description` property with the correct format      |     |     |     |     |\n| [require-meta-docs-recommended](docs/rules/require-meta-docs-recommended.md)                         | require rules to implement a `meta.docs.recommended` property                              |     |     | 💡  |     |\n| [require-meta-docs-url](docs/rules/require-meta-docs-url.md)                                         | require rules to implement a `meta.docs.url` property                                      |     | 🔧  |     |     |\n| [require-meta-fixable](docs/rules/require-meta-fixable.md)                                           | require rules to implement a `meta.fixable` property                                       | ✅  |     |     |     |\n| [require-meta-has-suggestions](docs/rules/require-meta-has-suggestions.md)                           | require suggestable rules to implement a `meta.hasSuggestions` property                    | ✅  | 🔧  |     |     |\n| [require-meta-schema](docs/rules/require-meta-schema.md)                                             | require rules to implement a `meta.schema` property                                        | ✅  |     | 💡  |     |\n| [require-meta-schema-description](docs/rules/require-meta-schema-description.md)                     | require rules `meta.schema` properties to include descriptions                             | ✅  |     |     |     |\n| [require-meta-type](docs/rules/require-meta-type.md)                                                 | require rules to implement a `meta.type` property                                          | ✅  |     |     |     |\n\n### Tests\n\n| Name                                                                     | Description                                                                  | 💼  | 🔧  | 💡  | 💭  |\n| :----------------------------------------------------------------------- | :--------------------------------------------------------------------------- | :-- | :-- | :-- | :-- |\n| [consistent-output](docs/rules/consistent-output.md)                     | enforce consistent use of `output` assertions in rule tests                  |     |     |     |     |\n| [no-identical-tests](docs/rules/no-identical-tests.md)                   | disallow identical tests                                                     | ✅  | 🔧  |     |     |\n| [no-only-tests](docs/rules/no-only-tests.md)                             | disallow the test case property `only`                                       | ✅  |     | 💡  |     |\n| [prefer-output-null](docs/rules/prefer-output-null.md)                   | disallow invalid RuleTester test cases where the `output` matches the `code` | ✅  | 🔧  |     |     |\n| [require-test-case-name](docs/rules/require-test-case-name.md)           | require test cases to have a `name` property under certain conditions        |     |     |     |     |\n| [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     |     | 🔧  |     |     |\n| [test-case-shorthand-strings](docs/rules/test-case-shorthand-strings.md) | enforce consistent usage of shorthand strings for test cases with no options |     | 🔧  |     |     |\n| [unique-test-case-names](docs/rules/unique-test-case-names.md)           | enforce that all test cases with names have unique names                     |     |     |     |     |\n\n\u003c!-- end auto-generated rules list --\u003e\n\n## \u003ca name='Presets'\u003e\u003c/a\u003ePresets\n\n|     | Name                | Description                                                                  |\n| :-- | :------------------ | :--------------------------------------------------------------------------- |\n| ✅  | `recommended`       | enables all recommended rules in this plugin                                 |\n|     | `rules-recommended` | enables all recommended rules that are aimed at linting ESLint rule files    |\n|     | `tests-recommended` | enables all recommended rules that are aimed at linting ESLint test files    |\n|     | `all`               | enables all rules in this plugin, excluding those requiring type information |\n|     | `all-type-checked`  | enables all rules in this plugin, including those requiring type information |\n|     | `rules`             | enables all rules that are aimed at linting ESLint rule files                |\n|     | `tests`             | enables all rules that are aimed at linting ESLint test files                |\n\n### \u003ca name='Semanticversioningpolicy'\u003e\u003c/a\u003eSemantic versioning policy\n\nThe list of recommended rules will only change in a major release of this plugin. However, new non-recommended rules might be added in a minor release of this plugin. Therefore, using the `all`, `rules`, and `tests` presets is **not recommended for production use**, because the addition of new rules in a minor release could break your build.\n\n### \u003ca name='Presetusage'\u003e\u003c/a\u003ePreset usage\n\nExample of applying the `recommended` config to all files.\n\n```js\n// eslint.config.js\nimport eslintPlugin from 'eslint-plugin-eslint-plugin';\n\nexport default [eslintPlugin.configs.recommended];\n```\n\nOr to apply linting only to the appropriate rule or test files:\n\n```js\n// eslint.config.js\nimport eslintPlugin from 'eslint-plugin-eslint-plugin';\n\nexport default [\n  {\n    files: ['lib/rules/*.{js,ts}'],\n    ...eslintPlugin.configs['rules-recommended'],\n  },\n  {\n    files: ['tests/lib/rules/*.{js,ts}'],\n    ...eslintPlugin.configs['tests-recommended'],\n  },\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feslint-community%2Feslint-plugin-eslint-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feslint-community%2Feslint-plugin-eslint-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feslint-community%2Feslint-plugin-eslint-plugin/lists"}