ESLint plugin for finding RegExp mistakes and RegExp style guide violations.
82
Create a minimal ESLint setup that enforces correct JavaScript RegExp API usage for boolean checks, detailed matches, and safe replacements. Provide fixtures and a script so linting clearly distinguishes good usage from bad usage.
@generates
src/examples/*.js.src/examples/bad.js with one instance of each violation: boolean check via string matching, extracting details via string matching, unescaped $ in a replacement, and an unnecessary default replacement token.src/examples/good.js with corrected versions of those four cases that lint cleanly.test that runs ESLint against the fixtures and fails on violations in bad.js while good.js passes.Enforces regular expression best practices and safe usage in linted code.
Provides the linting engine used to apply the regular expression rules.
Install with Tessl CLI
npx tessl i tessl/npm-eslint-plugin-regexpevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10