Skip to content

eslint/no-nonoctal-decimal-escape Correctness ​

✅ This rule is turned on by default.
🚧 An auto-fix is still under development.

What it does ​

This rule disallows \8 and \9 escape sequences in string literals

Why is this bad? ​

ECMAScript specification treats \8 and \9 in string literals as a legacy feature

Example ​

javascript
incorrect: "8";
("9");
correct: "8";
("\\9");

References ​

Released under the MIT License.