ESLint plugin for finding RegExp mistakes and enforcing style guide violations. Current stable version is v3.1.0 (requires ESLint >=9.38.0 and Node.js >=20.19.0). Released regularly with minor and patch updates. Key differentiators: 80+ rules covering regex syntax, optimization, and style; TypeScript type declarations included; supports ES2025 features like duplicate named capturing groups; provides recommended and all configs; exclusively supports ESLint Flat Config since v3.0.0 (drops Legacy Config).
npm install eslint-plugin-regexpVerified import paths — ran on the pinned version, not inferred.
Setup ESLint flat config with recommended regexp rules and custom overrides.
Migrate to ESLint v9 and use eslint.config.js with import statement.
Use 'recommended' config for stable rule set.
Update to v3 and follow flat config patterns.
Use full rule name including prefix.
Update Node.js to supported version.
Run 'npm install --save-dev eslint-plugin-regexp' and ensure import path is correct.
Use full rule name like 'regexp/no-useless-escape'.
Add 'plugins: { regexp: regexpPlugin }' to your config object.