ESLint plugin that provides custom rules using regular expressions, allowing developers to quickly define custom lint rules without writing full ESLint rules. Version 1.10.0, actively maintained. Key differentiator: enables inline regex-based checks (invalid/required patterns) with rich options (file filters, auto-fix for invalid, custom messages). No TypeScript support. Minimal learning curve.
npm install eslint-plugin-regexVerified import paths — ran on the pinned version, not inferred.
Shows how to configure eslint-plugin-regex to disallow console.log and debugger, and require 'use strict'.
Write patterns with both cases, e.g., /[Ff]oo/ or use (?i) syntax if supported by JS regex engine.
Prefix with npm scope, e.g., '@scope/eslint-plugin-regex' if needed.
Use a custom ESLint rule if function replacement is required.
Run 'npm install eslint-plugin-regex --save-dev' and ensure it is in node_modules.
Set config as ["error", ["pattern"]].