no-div-regex
Added in v0.8.1Configuration
rslint.config.ts
Rule Details
Disallows equal signs explicitly at the beginning of regular expression literals, since /= at the start of a regular expression can be visually confused with a division-assignment operator.
Examples of incorrect code for this rule:
Examples of correct code for this rule: