Skip to content

Commit

Permalink
docs(es5): add example for no-useless-escape rule
Browse files Browse the repository at this point in the history
  • Loading branch information
blond committed Apr 22, 2017
1 parent 9f9f47b commit 9d5cf5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/bad/regex.js
Expand Up @@ -12,3 +12,6 @@ var pattern3 = /^abc[]/; // Empty character classes in regular expressions do n

/*eslint no-invalid-regexp: ["error", {"allowConstructorFlags": ["u", "y"]}]*/
var pattern4 = new RegExp('\\');

/*eslint no-useless-escape: "error"*/
"\'";

0 comments on commit 9d5cf5d

Please sign in to comment.