外观
强制使用大写字符而不是小写字符定义转义序列值。通过使转义值更易于与标识符区分,提升可读性。
此规则的错误代码示例
const foo = "\xa9"; const foo = "\ud834"; const foo = "\u{1d306}"; const foo = "ca";
此规则的正确代码示例
const foo = "\xA9"; const foo = "\uD834"; const foo = "\u{1D306}"; const foo = "cA";