{"name":"eslint-plugin-eslint-plugin","version":"6.3.0","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Teddy Katz"},"license":"MIT","_id":"eslint-plugin-eslint-plugin@6.3.0","maintainers":[{"name":"not-an-aardvark","email":"teddy.katz@gmail.com"},{"name":"michaeldeboey","email":"info@michaeldeboey.be"},{"name":"weiran.zsd","email":"weiran.zsd@outlook.com"},{"name":"bmishkin","email":"bm641024@gmail.com"},{"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"},"nyc":{"lines":99,"branches":94,"functions":99,"statements":99},"dist":{"shasum":"e6b799b350eec86314b70eb34de23a53b3410ce8","tarball":"http://registry-npm.ywwl.com/eslint-plugin-eslint-plugin/download/eslint-plugin-eslint-plugin-6.3.0.tgz","fileCount":41,"integrity":"sha512-R6Z/rPGY2Bl8Xf78/UikevEVVKve8L3b0We787U3GLH6f8RhmGWT6CcvlQkNsZDaHYoNfn/aIZKK438iF1A6iw==","signatures":[{"sig":"MEUCICKkVUjOCrpot1oB5UYS/iEBMnrz77kVbGUKX1en0hUXAiEAl8kEr7jBw/Zv/BIrZ5qmC1AggzQxaRFD8IB+ElolFM8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-plugin-eslint-plugin@6.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":163403,"size":30153,"noattachment":false,"key":"/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-6.3.0.tgz"},"main":"./lib/index.js","engines":{"node":"^18.18.0 || ^20.9.0 || >=21.1.0"},"exports":{".":"./lib/index.js","./configs/*":"./configs/*.js","./package.json":"./package.json"},"gitHead":"c047d73760f77fce0e0bb7a842276aec1c9a09b0","scripts":{"lint":"npm-run-all --continue-on-error --aggregate-output --parallel lint:*","test":"nyc --all --check-coverage --include lib mocha tests --recursive","lint:js":"eslint --cache --ignore-pattern \"**/*.md\" .","release":"release-it","lint:docs":"markdownlint \"**/*.md\"","test:remote":"eslint-remote-tester","lint:js-docs":"eslint --no-inline-config \"**/*.md\"","lint:eslint-docs":"npm-run-all \"update:eslint-docs -- --check\"","lint:package-json":"npmPkgJsonLint .","update:eslint-docs":"eslint-doc-generator"},"_npmUser":{"name":"eslint-community-bot","email":"contact+eslintcbot@eslint.org"},"release-it":{"git":{"commitMessage":"chore: release v${version}"},"npm":{"skipChecks":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":"conventionalcommits"}}},"repository":{"url":"git+https://github.com/eslint-community/eslint-plugin-eslint-plugin.git","type":"git"},"_npmVersion":"10.8.2","description":"An ESLint plugin for linting ESLint plugins","directories":{},"_nodeVersion":"20.18.0","dependencies":{"estraverse":"^5.3.0","@eslint-community/eslint-utils":"^4.4.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.4.1","husky":"^9.0.11","mocha":"^10.4.0","eslint":"^9.1.1","espree":"^10.0.1","lodash":"^4.17.21","globals":"^15.0.0","prettier":"^3.2.5","@eslint/js":"^9.0.0","dirty-chai":"^2.0.1","release-it":"^17.2.0","typescript":"^5.4.3","eslint-scope":"^8.0.1","npm-run-all2":"^6.1.2","@types/eslint":"^8.56.9","@types/estree":"^1.0.5","@commitlint/cli":"^19.2.2","eslint-plugin-n":"^17.2.1","@eslint/eslintrc":"^3.0.2","markdownlint-cli":"^0.41.0","eslint-doc-generator":"^1.7.0","eslint-remote-tester":"^3.0.1","eslint-plugin-unicorn":"^53.0.0","npm-package-json-lint":"^7.1.0","eslint-config-prettier":"^9.1.0","eslint-plugin-markdown":"^5.0.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/utils":"^7.7.0","@typescript-eslint/parser":"^7.7.0","eslint-plugin-eslint-plugin":"file:./","eslint-config-not-an-aardvark":"^2.1.0","@commitlint/config-conventional":"^19.2.2","@release-it/conventional-changelog":"^8.0.1","@eslint-community/eslint-plugin-eslint-comments":"^4.3.0"},"peerDependencies":{"eslint":">=8.23.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-eslint-plugin_6.3.0_1729734261932_0.5688204785294371","host":"s3://npm-registry-packages"},"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":1729734262198,"_cnpm_publish_time":1729734262198,"dist-tags":{"latest":"7.6.2"}}