Enforce the use of Unicode escapes instead of hexadecimal escapes ​
💼 This rule is enabled in the ✅ recommended
config.
🔧 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.
Fail ​
js
const foo = '\x1B';
const foo = `\x1B${bar}`;
Pass ​
js
const foo = '\u001B';
const foo = `\u001B${bar}`;