{"name":"eslint-plugin-regexp","version":"3.2.0","keywords":["eslint","eslintplugin","eslint-plugin","regexp","regex"],"author":{"url":"https://github.com/ota-meshi","name":"Yosuke Ota"},"license":"MIT","_id":"eslint-plugin-regexp@3.2.0","maintainers":[{"name":"ota-meshi","email":"otameshiyo23@gmail.com"},{"name":"rundevelopment","email":"mitchi5000.ms@googlemail.com"}],"contributors":[{"url":"https://github.com/RunDevelopment","name":"Michael Schmidt"}],"homepage":"https://github.com/ota-meshi/eslint-plugin-regexp#readme","bugs":{"url":"https://github.com/ota-meshi/eslint-plugin-regexp/issues"},"dist":{"shasum":"c1e7f8479623c347e79bbbede2456a653d3230b4","tarball":"http://registry-npm.ywwl.com/eslint-plugin-regexp/download/eslint-plugin-regexp-3.2.0.tgz","fileCount":6,"integrity":"sha512-4yq47CnLxyfHFKJEo5kvNaiJ0aDtBxSJWk4M2LiamplUXdWxdlzDYqImb/ZVCp+2BqkQjBAmw4Xc07Q8SXVDZg==","signatures":[{"sig":"MEYCIQCW8VHFvAop28WPqFZ7JCQdl5u+UexdqtN6qD3N83qFTwIhAKMc3OVv5kGOcHLaknBeTjADouQ4BPJmKH2Owla2X8iw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDTSrgmcNHPLcdjk8CoxzW+jAgGTPyoG12JlRC0E+701AIgebnzDJSNUHtAFp4GZYQ8jJJbjbG1l7MBV/1BXaiSPyc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-plugin-regexp@3.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":544831,"size":114240,"noattachment":false,"key":"/eslint-plugin-regexp/-/eslint-plugin-regexp-3.2.0.tgz"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":"^20.19.0 || ^22.13.0 || >=24"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"0055260cbcf50f044ebf729b4ebb4bb6f63cecd6","scripts":{"ts":"node --import @oxc-node/core/register","new":"npm run ts -- ./tools/new-rule.ts","lint":"npm-run-all \"lint:*\"","test":"npm run test:c8","build":"tsdown","clean":"rimraf .nyc_output dist coverage","mocha":"npm run ts -- ./node_modules/mocha/bin/mocha.js","update":"npm run ts -- ./tools/update.ts && npm run eslint-fix && npm run update:eslint-docs","lint:js":"eslint . --config=./eslint.config.mjs --no-config-lookup","pretest":"npm run build","release":"changeset publish","test:c8":"c8 --reporter=lcov npm run test:base","version":"env-cmd -e version -- npm run update && git add .","prebuild":"npm run -s clean","lint:docs":"markdownlint \"**/*.md\"","test:base":"npm run mocha -- \"tests/**/*.ts\" --reporter dot --timeout 60000","typecheck":"tsc -p ./tsconfig.build.json --noEmit","docs:build":"vitepress build docs","docs:watch":"vitepress dev docs","eslint-fix":"eslint . --config=./eslint.config.mjs --no-config-lookup --fix","prerelease":"npm run clean && npm run build","preversion":"npm test && git add .","test:watch":"npm run test:base -- --watch","version:ci":"env-cmd -e version-ci -- npm run update && changeset version","test:update":"npm run test:base -- --update","preversion:ci":"npm test","update:eslint-docs":"npm run build && eslint-doc-generator","update:unicode-alias":"npm run ts -- ./tools/update-unicode-alias.ts","docs:build-and-preview":"npm run docs:build && npx http-server docs/.vitepress/dist"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e2bdef15-0f19-4444-816d-2838f7bfa60b"}},"repository":{"url":"git+https://github.com/ota-meshi/eslint-plugin-regexp.git","type":"git"},"_npmVersion":"11.16.0","description":"ESLint plugin for finding RegExp mistakes and RegExp style guide violations.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"refa":"^0.12.1","scslre":"^0.3.0","comment-parser":"^1.4.0","regexp-ast-analysis":"^0.7.1","jsdoc-type-pratt-parser":"^9.0.0","@eslint-community/regexpp":"^4.11.0","@eslint-community/eslint-utils":"^4.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^12.0.0","chai":"^6.0.0","pako":"^3.0.0","mocha":"^11.0.0","unrun":"^0.3.1","assert":"^2.0.0","eslint":"^10.0.0","espree":"^11.2.0","rimraf":"^6.0.1","semver":"^7.5.4","tsdown":"^0.22.0","env-cmd":"^11.0.0","prettier":"~3.9.6","stylelint":"^17.0.0","vitepress":"^1.0.0","@eslint/js":"^10.0.0","typescript":"~5.9.0","@types/chai":"^5.0.0","@types/node":"^24.0.0","@types/pako":"^3.0.0","@types/mocha":"^10.0.0","magic-string":"^1.0.0","npm-run-all2":"^9.0.0","@types/eslint":"^9.0.0","@types/estree":"^1.0.6","@oxc-node/core":"^0.1.0","@changesets/cli":"^3.0.0","eslint-plugin-n":"^18.0.0","@eslint/eslintrc":"^3.1.0","markdownlint-cli":"^0.49.0","eslint-plugin-vue":"^10.8.0","eslint-plugin-yml":"^3.0.0","typescript-eslint":"~8.67.0","vue-eslint-parser":"^10.4.0","eslint-plugin-pere":"^0.0.1","eslint-plugin-jsdoc":"^64.0.0","eslint-plugin-jsonc":"^3.0.0","eslint-visitor-keys":"^5.0.1","eslint-doc-generator":"^3.0.0","eslint-plugin-import":"^2.32.0","eslint-plugin-regexp":"~3.1.0","vite-plugin-eslint4b":"^0.9.0","eslint-plugin-unicorn":"^73.0.0","eslint-config-prettier":"^10.0.0","eslint-plugin-markdown":"^5.0.0","eslint-plugin-prettier":"^5.1.3","@ota-meshi/eslint-plugin":"^0.20.0","@typescript-eslint/parser":"~8.67.0","eslint-plugin-eslint-plugin":"^7.0.0","eslint-snapshot-rule-tester":"^0.1.0","@changesets/get-release-plan":"^5.0.0","stylelint-config-recommended":"^18.0.0","@typescript-eslint/eslint-plugin":"~8.67.0","stylelint-config-recommended-vue":"^2.0.0","eslint-import-resolver-typescript":"^4.0.0","eslint-plugin-json-schema-validator":"^6.0.0","@ota-meshi/site-kit-eslint-editor-vue":"^0.2.4","@svitejs/changesets-changelog-github-compact":"^1.1.0","@eslint-community/eslint-plugin-eslint-comments":"^4.7.1"},"peerDependencies":{"eslint":">=9.38.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-regexp_3.2.0_1786590068892_0.7167127430174398","host":"s3://npm-registry-packages-npm-production"},"readme":"# Introduction\n\n[eslint-plugin-regexp](https://www.npmjs.com/package/eslint-plugin-regexp) is ESLint plugin for finding RegExp mistakes and RegExp style guide violations.\n\n<!--PACKAGE_STATUS_START-->\n\n[![NPM license](https://img.shields.io/npm/l/eslint-plugin-regexp.svg)](https://www.npmjs.com/package/eslint-plugin-regexp)\n[![NPM version](https://img.shields.io/npm/v/eslint-plugin-regexp.svg)](https://www.npmjs.com/package/eslint-plugin-regexp)\n[![NPM downloads](https://img.shields.io/badge/dynamic/json.svg?label=downloads&colorB=green&suffix=/day&query=$.downloads&uri=https://api.npmjs.org//downloads/point/last-day/eslint-plugin-regexp&maxAge=3600)](http://www.npmtrends.com/eslint-plugin-regexp)\n[![NPM downloads](https://img.shields.io/npm/dw/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)\n[![NPM downloads](https://img.shields.io/npm/dm/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)\n[![NPM downloads](https://img.shields.io/npm/dy/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)\n[![NPM downloads](https://img.shields.io/npm/dt/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)\n[![Build Status](https://github.com/ota-meshi/eslint-plugin-regexp/actions/workflows/NodeCI.yml/badge.svg?branch=master)](https://github.com/ota-meshi/eslint-plugin-regexp/actions/workflows/NodeCI.yml)\n[![Coverage Status](https://coveralls.io/repos/github/ota-meshi/eslint-plugin-regexp/badge.svg?branch=master)](https://coveralls.io/github/ota-meshi/eslint-plugin-regexp?branch=master)\n\n<!--PACKAGE_STATUS_END-->\n\n## :name_badge: Features\n\nThis ESLint plugin provides linting rules relate to better ways to help you avoid problems when using RegExp.\n\n- Find the wrong usage of regular expressions, and their hints.\n- Enforces a consistent style of regular expressions.\n- Find hints for writing optimized regular expressions.\n- 80 plugin rules for regular expression syntax and features.\n\nYou can check on the [Online DEMO](https://ota-meshi.github.io/eslint-plugin-regexp/playground/).\n\n<!--DOCS_IGNORE_START-->\n\n## :book: Documentation\n\nSee [documents](https://ota-meshi.github.io/eslint-plugin-regexp/).\n\n## :cd: Installation\n\n```bash\nnpm install --save-dev eslint eslint-plugin-regexp\n```\n\n> **Requirements**\n>\n> - ESLint v9.38.0 and above\n> - Node.js v20.19.0, v22.13.0, v24 and above\n\n<!--DOCS_IGNORE_END-->\n\n## :book: Usage\n\n<!--USAGE_SECTION_START-->\n\nAdd `regexp` to the plugins section of your `eslint.config.js` configuration file (you can omit the `eslint-plugin-` prefix)\nand either use one of the two configurations available (`recommended` or `all`) or configure the rules you want:\n\n### The recommended configuration\n\nThe `plugin.configs.recommended` config enables a subset of [the rules](#white_check_mark-rules) that should be most useful to most users.\n*See [lib/configs/rules/recommended.ts](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/configs/rules/recommended.ts) for more details.*\n\n```js\n// eslint.config.js\nimport regexpPlugin from \"eslint-plugin-regexp\"\n\nexport default [\n    regexpPlugin.configs.recommended,\n];\n```\n\n### Advanced Configuration\n\nOverride/add specific rules configurations. *See also: [http://eslint.org/docs/user-guide/configuring](http://eslint.org/docs/user-guide/configuring)*.\n\n```js\n// eslint.config.js\nimport regexpPlugin from \"eslint-plugin-regexp\"\n\nexport default [\n    {\n        plugins: { regexp: regexpPlugin },\n        rules: {\n            // Override/add rules settings here, such as:\n            \"regexp/rule-name\": \"error\"\n        }\n    }\n];\n```\n\n### Using the all configuration\n\nThe `plugin.configs.all` config enables all rules. It's meant for testing, not for production use because it changes with every minor and major version of the plugin. Use it at your own risk.\n*See [lib/configs/rules/all.ts](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/configs/rules/all.ts) for more details.*\n\n<!--USAGE_SECTION_END-->\n\n## :white_check_mark: Rules\n\n<!-- begin auto-generated rules list -->\n\n💼 Configurations enabled in.\\\n⚠️ Configurations set to warn in.\\\n🟢 Set in the `flat/recommended` configuration.\\\n🔵 Set in the `recommended` configuration.\\\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\n### Possible Errors\n\n| Name                                                                                                                                     | Description                                                                             | 💼    | ⚠️    | 🔧 | 💡 |\n| :--------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------- | :---- | :---- | :- | :- |\n| [no-contradiction-with-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html)           | disallow elements that contradict assertions                                            | 🟢 🔵 |       |    | 💡 |\n| [no-control-character](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html)                                 | disallow control characters                                                             |       |       |    | 💡 |\n| [no-dupe-disjunctions](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html)                                 | disallow duplicate disjunctions                                                         | 🟢 🔵 |       |    | 💡 |\n| [no-empty-alternative](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html)                                 | disallow alternatives without elements                                                  |       | 🟢 🔵 |    | 💡 |\n| [no-empty-capturing-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html)                         | disallow capturing group that captures empty.                                           | 🟢 🔵 |       |    |    |\n| [no-empty-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html)                         | disallow character classes that match no characters                                     | 🟢 🔵 |       |    |    |\n| [no-empty-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html)                                             | disallow empty group                                                                    | 🟢 🔵 |       |    |    |\n| [no-empty-lookarounds-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html)             | disallow empty lookahead assertion or empty lookbehind assertion                        | 🟢 🔵 |       |    |    |\n| [no-escape-backspace](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html)                                   | disallow escape backspace (`[\\b]`)                                                      | 🟢 🔵 |       |    | 💡 |\n| [no-invalid-regexp](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html)                                       | disallow invalid regular expression strings in `RegExp` constructors                    | 🟢 🔵 |       |    |    |\n| [no-lazy-ends](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html)                                                 | disallow lazy quantifiers at the end of an expression                                   |       | 🟢 🔵 |    | 💡 |\n| [no-misleading-capturing-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html)               | disallow capturing groups that do not behave as one would expect                        | 🟢 🔵 |       |    | 💡 |\n| [no-misleading-unicode-character](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html)           | disallow multi-code-point characters in character classes and quantifiers               | 🟢 🔵 |       | 🔧 | 💡 |\n| [no-missing-g-flag](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html)                                       | disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll` | 🟢 🔵 |       | 🔧 |    |\n| [no-optional-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html)                               | disallow optional assertions                                                            | 🟢 🔵 |       |    |    |\n| [no-potentially-useless-backreference](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html) | disallow backreferences that reference a group that might not be matched                |       | 🟢 🔵 |    |    |\n| [no-super-linear-backtracking](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html)                 | disallow exponential and polynomial backtracking                                        | 🟢 🔵 |       | 🔧 |    |\n| [no-super-linear-move](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-move.html)                                 | disallow quantifiers that cause quadratic moves                                         |       |       |    |    |\n| [no-useless-assertions](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-assertions.html)                               | disallow assertions that are known to always accept (or reject)                         | 🟢 🔵 |       |    | 💡 |\n| [no-useless-backreference](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-backreference.html)                         | disallow useless backreferences in regular expressions                                  | 🟢 🔵 |       |    |    |\n| [no-useless-dollar-replacements](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-dollar-replacements.html)             | disallow useless `$` replacements in replacement string                                 | 🟢 🔵 |       |    |    |\n| [strict](https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html)                                                             | disallow not strictly valid regular expressions                                         | 🟢 🔵 |       | 🔧 | 💡 |\n\n### Best Practices\n\n| Name                                                                                                                                       | Description                                                                                | 💼    | ⚠️    | 🔧 | 💡 |\n| :----------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------- | :---- | :---- | :- | :- |\n| [confusing-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html)                                   | disallow confusing quantifiers                                                             |       | 🟢 🔵 |    |    |\n| [control-character-escape](https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html)                           | enforce consistent escaping of control characters                                          | 🟢 🔵 |       | 🔧 |    |\n| [negation](https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html)                                                           | enforce use of escapes on negation                                                         | 🟢 🔵 |       | 🔧 |    |\n| [no-dupe-characters-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html)       | disallow duplicate characters in the RegExp character class                                | 🟢 🔵 |       | 🔧 |    |\n| [no-empty-string-literal](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html)                             | disallow empty string literals in character classes                                        | 🟢 🔵 |       |    |    |\n| [no-extra-lookaround-assertions](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html)               | disallow unnecessary nested lookaround assertions                                          | 🟢 🔵 |       | 🔧 |    |\n| [no-invisible-character](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html)                               | disallow invisible raw character                                                           | 🟢 🔵 |       | 🔧 |    |\n| [no-legacy-features](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html)                                       | disallow legacy RegExp features                                                            | 🟢 🔵 |       |    |    |\n| [no-non-standard-flag](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html)                                   | disallow non-standard flags                                                                | 🟢 🔵 |       |    |    |\n| [no-obscure-range](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-obscure-range.html)                                           | disallow obscure character ranges                                                          | 🟢 🔵 |       |    |    |\n| [no-octal](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-octal.html)                                                           | disallow octal escape sequence                                                             |       |       |    | 💡 |\n| [no-standalone-backslash](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-standalone-backslash.html)                             | disallow standalone backslashes (`\\`)                                                      |       |       |    |    |\n| [no-trivially-nested-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-assertion.html)                 | disallow trivially nested assertions                                                       | 🟢 🔵 |       | 🔧 |    |\n| [no-trivially-nested-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-quantifier.html)               | disallow nested quantifiers that can be rewritten as one quantifier                        | 🟢 🔵 |       | 🔧 |    |\n| [no-unused-capturing-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-unused-capturing-group.html)                         | disallow unused capturing group                                                            | 🟢 🔵 |       | 🔧 | 💡 |\n| [no-useless-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-character-class.html)                       | disallow character class with one character                                                | 🟢 🔵 |       | 🔧 |    |\n| [no-useless-flag](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-flag.html)                                             | disallow unnecessary regex flags                                                           |       | 🟢 🔵 | 🔧 |    |\n| [no-useless-lazy](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html)                                             | disallow unnecessarily non-greedy quantifiers                                              | 🟢 🔵 |       | 🔧 |    |\n| [no-useless-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html)                                 | disallow quantifiers that can be removed                                                   | 🟢 🔵 |       | 🔧 | 💡 |\n| [no-useless-range](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html)                                           | disallow unnecessary character ranges                                                      | 🟢 🔵 |       | 🔧 |    |\n| [no-useless-set-operand](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html)                               | disallow unnecessary elements in expression character classes                              | 🟢 🔵 |       | 🔧 |    |\n| [no-useless-string-literal](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-string-literal.html)                         | disallow string disjunction of single characters in `\\q{...}`                              | 🟢 🔵 |       | 🔧 |    |\n| [no-useless-two-nums-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html)               | disallow unnecessary `{n,m}` quantifier                                                    | 🟢 🔵 |       | 🔧 |    |\n| [no-zero-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html)                                       | disallow quantifiers with a maximum of zero                                                | 🟢 🔵 |       |    | 💡 |\n| [optimal-lookaround-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html)                 | disallow the alternatives of lookarounds that end with a non-constant quantifier           |       | 🟢 🔵 |    | 💡 |\n| [optimal-quantifier-concatenation](https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-quantifier-concatenation.html)           | require optimal quantifiers for concatenated quantifiers                                   | 🟢 🔵 |       | 🔧 |    |\n| [prefer-escape-replacement-dollar-char](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html) | enforces escape of replacement `$` character (`$$`).                                       |       |       |    |    |\n| [prefer-predefined-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html)                     | prefer predefined assertion over equivalent lookarounds                                    | 🟢 🔵 |       | 🔧 |    |\n| [prefer-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html)                                         | enforce using quantifier                                                                   |       |       | 🔧 |    |\n| [prefer-range](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html)                                                   | enforce using character class range                                                        | 🟢 🔵 |       | 🔧 |    |\n| [prefer-regexp-exec](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html)                                       | enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided |       |       |    |    |\n| [prefer-regexp-test](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html)                                       | enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`             |       |       | 🔧 |    |\n| [prefer-set-operation](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html)                                   | prefer character class set operations instead of lookarounds                               | 🟢 🔵 |       | 🔧 |    |\n| [require-unicode-regexp](https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html)                               | enforce the use of the `u` flag                                                            |       |       | 🔧 |    |\n| [require-unicode-sets-regexp](https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html)                     | enforce the use of the `v` flag                                                            |       |       | 🔧 |    |\n| [simplify-set-operations](https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html)                             | require simplify set operations                                                            | 🟢 🔵 |       | 🔧 |    |\n| [sort-alternatives](https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html)                                         | sort alternatives if order doesn't matter                                                  |       |       | 🔧 |    |\n| [use-ignore-case](https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html)                                             | use the `i` flag if it simplifies the pattern                                              | 🟢 🔵 |       | 🔧 |    |\n\n### Stylistic Issues\n\n| Name                                                                                                                             | Description                                                            | 💼    | ⚠️ | 🔧 | 💡 |\n| :------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------- | :---- | :- | :- | :- |\n| [grapheme-string-literal](https://ota-meshi.github.io/eslint-plugin-regexp/rules/grapheme-string-literal.html)                   | enforce single grapheme in string literal                              |       |    |    |    |\n| [hexadecimal-escape](https://ota-meshi.github.io/eslint-plugin-regexp/rules/hexadecimal-escape.html)                             | enforce consistent usage of hexadecimal escape                         |       |    | 🔧 |    |\n| [letter-case](https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html)                                           | enforce into your favorite case                                        |       |    | 🔧 |    |\n| [match-any](https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html)                                               | enforce match any character style                                      | 🟢 🔵 |    | 🔧 |    |\n| [no-useless-escape](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html)                               | disallow unnecessary escape characters in RegExp                       | 🟢 🔵 |    | 🔧 |    |\n| [no-useless-non-capturing-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html)     | disallow unnecessary non-capturing group                               | 🟢 🔵 |    | 🔧 |    |\n| [prefer-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html)                     | enforce using character class                                          | 🟢 🔵 |    | 🔧 |    |\n| [prefer-d](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html)                                                 | enforce using `\\d`                                                     | 🟢 🔵 |    | 🔧 |    |\n| [prefer-lookaround](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html)                               | prefer lookarounds over capturing group that do not replace            |       |    | 🔧 |    |\n| [prefer-named-backreference](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html)             | enforce using named backreferences                                     |       |    | 🔧 |    |\n| [prefer-named-capture-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html)             | enforce using named capture groups                                     |       |    |    |    |\n| [prefer-named-replacement](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html)                 | enforce using named replacement                                        |       |    | 🔧 |    |\n| [prefer-plus-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html)                     | enforce using `+` quantifier                                           | 🟢 🔵 |    | 🔧 |    |\n| [prefer-question-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html)             | enforce using `?` quantifier                                           | 🟢 🔵 |    | 🔧 |    |\n| [prefer-result-array-groups](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html)             | enforce using result array `groups`                                    |       |    | 🔧 |    |\n| [prefer-star-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html)                     | enforce using `*` quantifier                                           | 🟢 🔵 |    | 🔧 |    |\n| [prefer-unicode-codepoint-escapes](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html) | enforce use of unicode codepoint escapes                               | 🟢 🔵 |    | 🔧 |    |\n| [prefer-w](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html)                                                 | enforce using `\\w`                                                     | 🟢 🔵 |    | 🔧 |    |\n| [sort-character-class-elements](https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html)       | enforces elements order in character class                             |       |    | 🔧 |    |\n| [sort-flags](https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html)                                             | require regex flags to be sorted                                       | 🟢 🔵 |    | 🔧 |    |\n| [unicode-escape](https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html)                                     | enforce consistent usage of unicode escape or unicode codepoint escape |       |    | 🔧 |    |\n| [unicode-property](https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html)                                 | enforce consistent naming of unicode properties                        |       |    | 🔧 |    |\n\n<!-- end auto-generated rules list -->\n\n<!--REMOVED_RULES_START-->\n\n### Removed\n\n- :no_entry: These rules have been removed in a previous major release, after they have been deprecated for a while.\n\n| Rule ID | Replaced by | Removed in version |\n|:--------|:------------|:-------------------|\n| [no-assertion-capturing-group](https://github.com/ota-meshi/eslint-plugin-regexp/blob/v1.15.0/docs/rules/no-assertion-capturing-group.md) | [regexp/no-empty-capturing-group](./no-empty-capturing-group.md) | v2.0.0 |\n| [no-useless-exactly-quantifier](https://github.com/ota-meshi/eslint-plugin-regexp/blob/v1.15.0/docs/rules/no-useless-exactly-quantifier.md) | [regexp/no-useless-quantifier](./no-useless-quantifier.md), [regexp/no-zero-quantifier](./no-zero-quantifier.md) | v2.0.0 |\n| [no-useless-non-greedy](https://github.com/ota-meshi/eslint-plugin-regexp/blob/v1.15.0/docs/rules/no-useless-non-greedy.md) | [regexp/no-useless-lazy](./no-useless-lazy.md) | v2.0.0 |\n| [order-in-character-class](https://github.com/ota-meshi/eslint-plugin-regexp/blob/v1.15.0/docs/rules/order-in-character-class.md) | [regexp/sort-character-class-elements](./sort-character-class-elements.md) | v2.0.0 |\n| [prefer-t](https://github.com/ota-meshi/eslint-plugin-regexp/blob/v1.15.0/docs/rules/prefer-t.md) | [regexp/control-character-escape](./control-character-escape.md) | v2.0.0 |\n\n<!--REMOVED_RULES_END-->\n\n## :gear: Settings\n\nSee [Settings](https://ota-meshi.github.io/eslint-plugin-regexp/settings/).\n\n<!--DOCS_IGNORE_START-->\n\n## :traffic_light: Semantic Versioning Policy\n\n**eslint-plugin-regexp** follows [Semantic Versioning](http://semver.org/) and [ESLint's Semantic Versioning Policy](https://github.com/eslint/eslint#semantic-versioning-policy).\n\n## :beers: Contributing\n\nWelcome contributing!\n\nPlease use GitHub's Issues/PRs.\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\n### Development Tools\n\n- `npm test` runs tests and measures coverage.\n- `npm run update` runs in order to update readme and recommended configuration.\n- `npm run new [new rule name]` runs to create the files needed for the new rule.\n- `npm run docs:watch` starts the website locally.\n\n<!--DOCS_IGNORE_END-->\n\n## :lock: License\n\nSee the [LICENSE](LICENSE) file for license rights and limitations (MIT).\n","publish_time":1786590068992,"_cnpm_publish_time":1786590068992,"dist-tags":{"latest":"3.3.3","next":"2.0.0-next.15"}}