2 title: no-useless-escape
10 Escaping non-special characters in strings, template literals, and regular expressions doesn't have any effect, as demonstrated in the following example:
13 let foo = "hol\a"; // > foo = "hola"
14 let bar = `${foo}\!`; // > bar = "hola!"
15 let baz = /\:/ // same functionality with /:/
20 This rule flags escapes that can be safely removed without changing behavior.
22 Examples of **incorrect** code for this rule:
27 /*eslint no-useless-escape: "error"*/
44 Examples of **correct** code for this rule:
49 /*eslint no-useless-escape: "error"*/
72 If you don't want to be notified about unnecessary escapes, you can safely disable this rule.