8 As of the ECMAScript 5 specification, octal escape sequences in string literals are deprecated and should not be used. Unicode escape sequences should be used instead.
11 var foo = "Copyright \251";
16 This rule disallows octal escape sequences in string literals.
18 If ESLint parses code in strict mode, the parser (instead of this rule) reports the error.
20 Examples of **incorrect** code for this rule:
25 /*eslint no-octal-escape: "error"*/
27 var foo = "Copyright \251";
32 Examples of **correct** code for this rule:
37 /*eslint no-octal-escape: "error"*/
39 var foo = "Copyright \u00A9"; // unicode
41 var foo = "Copyright \xA9"; // hexadecimal