Disallow Regexs That Look Like Division (no-div-regex)
Require regex literals to escape division operators.
function() { return /=foo/; }
Rule Details
This is used to disambiguate the division operator to not confuse users.
The following patterns are considered warnings:
function() { return /=foo/; }
The following patterns adhere to this rule:
function() { return /\=foo/; }
Related Rules
Version
This rule was introduced in ESLint 0.1.0.