π Enforce the use of Unicode escapes instead of hexadecimal escapes.
πΌ This rule is enabled in the following configs: β
recommended, βοΈ unopinionated.
π§ This rule is automatically fixable by the --fix CLI option.
Enforces a convention of using Unicode escapes instead of hexadecimal escapes for consistency and clarity.
// β
const foo = '\x1B';
// β
const foo = '\u001B';// β
const foo = `\x1B${bar}`;
// β
const foo = `\u001B${bar}`;