{"name":"eslint-plugin-eslint-plugin","version":"7.2.0","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Teddy Katz"},"license":"MIT","_id":"eslint-plugin-eslint-plugin@7.2.0","maintainers":[{"name":"michaeldeboey","email":"info@michaeldeboey.be"},{"name":"eslint-community-bot","email":"contact+eslintcbot@eslint.org"}],"homepage":"https://github.com/eslint-community/eslint-plugin-eslint-plugin#readme","bugs":{"url":"https://github.com/eslint-community/eslint-plugin-eslint-plugin/issues"},"dist":{"shasum":"08db4619c412fa6169bd521a3000449d47abfe3e","tarball":"http://registry-npm.ywwl.com/eslint-plugin-eslint-plugin/download/eslint-plugin-eslint-plugin-7.2.0.tgz","fileCount":78,"integrity":"sha512-3WOuoauBlxCItqpIdyajCOVQbCmAlqHNQq82QunpzuGkBNr6OqHRjdPZKpy2Z0rGb005mIO0HEP9aaDCzkApxQ==","signatures":[{"sig":"MEUCIETKLsz58kQAIBOUl6+gr3qHnmQFMLQi3yeaZAT8C9iMAiEAnxMrS6QrCFTv6qjlEevBQgXp0tE8ttoLA6MNANhiWk8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-plugin-eslint-plugin@7.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":217018,"size":43925,"noattachment":false,"key":"/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-7.2.0.tgz"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":"^20.19.0 || ^22.13.1 || >=24.0.0"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"gitHead":"fcd48c117ea4db8c5cc7522f2748bca3e52b15b8","scripts":{"e2e":"node ./e2e/run-all-tests.js","lint":"npm-run-all --continue-on-error --aggregate-output --parallel lint:*","test":"vitest run --coverage","build":"tsdown","format":"prettier --write .","lint:js":"eslint --cache --ignore-pattern \"**/*.md\" --flag unstable_native_nodejs_ts_config","prepare":"husky install","lint:docs":"markdownlint \"**/*.md\"","typecheck":"tsc","test:remote":"eslint-remote-tester","format:check":"prettier --check .","lint:js-docs":"eslint --no-inline-config \"**/*.md\" --flag unstable_native_nodejs_ts_config","lint:eslint-docs":"npm-run-all -s build \"update:eslint-docs -- --check\"","lint:package-json":"npmPkgJsonLint .","update:eslint-docs":"eslint-doc-generator"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ad6d56e4-4514-419b-b795-635de16e5856"}},"repository":{"url":"git+https://github.com/eslint-community/eslint-plugin-eslint-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"An ESLint plugin for linting ESLint plugins","directories":{},"lint-staged":{"*.{js,ts}":"eslint --cache --fix","*.{js,ts,md}":"prettier --write"},"_nodeVersion":"22.20.0","dependencies":{"estraverse":"^5.3.0","@eslint-community/eslint-utils":"^4.4.0"},"_hasShrinkwrap":false,"devDependencies":{"jiti":"^2.5.1","husky":"^9.1.7","eslint":"^9.31.0","espree":"^10.0.1","lodash":"^4.17.21","tsdown":"^0.13.3","vitest":"^3.2.4","prettier":"3.6.2","@eslint/js":"^9.31.0","release-it":"^17.2.0","typescript":"^5.9.2","@types/node":"^20.19.23","eslint-scope":"^8.0.1","npm-run-all2":"^7.0.1","@types/espree":"^10.1.0","@types/estree":"^1.0.8","@types/lodash":"^4.17.18","@commitlint/cli":"^19.8.1","eslint-plugin-n":"^17.21.0","@eslint/eslintrc":"^3.0.2","markdownlint-cli":"^0.43.0","@commitlint/types":"^19.8.1","@types/estraverse":"^5.1.7","typescript-eslint":"^8.39.0","@types/eslint-scope":"^8.3.0","eslint-doc-generator":"^2.2.2","eslint-remote-tester":"^4.0.3","eslint-plugin-unicorn":"^56.0.1","npm-package-json-lint":"^8.0.0","eslint-config-prettier":"^10.1.8","eslint-plugin-markdown":"^5.1.0","@typescript-eslint/utils":"^8.39.0","@typescript-eslint/parser":"^8.39.0","@vitest/coverage-istanbul":"^3.2.4","@types/eslint-plugin-markdown":"^2.0.2","eslint-config-not-an-aardvark":"^2.1.0","@commitlint/config-conventional":"^19.8.1","@release-it/conventional-changelog":"^9.0.3","@eslint-community/eslint-plugin-eslint-comments":"^4.3.0"},"peerDependencies":{"eslint":">=9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-eslint-plugin_7.2.0_1761396531807_0.44961421703761584","host":"s3://npm-registry-packages-npm-production"},"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) <!-- omit from toc -->\n\nAn ESLint plugin for linting ESLint plugins. Rules written in CJS, ESM, and TypeScript are all supported.\n\n<!-- vscode-markdown-toc -->\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<!-- vscode-markdown-toc-config\n\tnumbering=false\n\tautoSave=true\n\t/vscode-markdown-toc-config -->\n<!-- /vscode-markdown-toc -->\n\n## <a name='Installation'></a>Installation\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## <a name='Usage'></a>Usage\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## <a name='Rules'></a>Rules\n\n<!-- begin auto-generated rules list -->\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-incomplete-meta-schema](docs/rules/no-incomplete-meta-schema.md)                                 | require explicit policy choices in rule options schemas                                    |     |     |     |     |\n| [no-incorrect-meta-schema](docs/rules/no-incorrect-meta-schema.md)                                   | disallow rule options schema constructs that ESLint ignores                                |     |     |     |     |\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-languages](docs/rules/require-meta-languages.md)                                       | require rules to implement a `meta.languages` 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| [require-test-error-positions](docs/rules/require-test-error-positions.md) | requires the position of errors to be explicitly stated for all expected errors |     |     |     |     |\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<!-- end auto-generated rules list -->\n\n## <a name='Presets'></a>Presets\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### <a name='Semanticversioningpolicy'></a>Semantic 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### <a name='Presetusage'></a>Preset 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\n## <a name='Settings'></a>Settings\n\nYou may set the following settings in your `eslint.config.js`\n\n### <a name='ruleTesterConstructors'></a>`ruleTesterConstructors`\n\nThe different names allowed for the constructors of the RuleTester. Can\ncontain both `string` and `RegExp`. A string verifies a full match, while\na `RegExp` uses [`RegExp.prototype.test()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test).\n\nThis settings defaults to `['RuleTester']`.\n\n```js\n// eslint.config.js\nexport default [\n  {\n    settings: {\n      'eslint-plugin': {\n        ruleTesterConstructors: [/RuleTester$/, /^createRuleTester/],\n      },\n    },\n  },\n];\n```\n","publish_time":1761396532053,"_cnpm_publish_time":1761396532053,"dist-tags":{"latest":"7.6.2"}}