disallow Unicode code point escape sequences (es/no-unicode-codepoint-escapes)

  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

This rule reports ES2015 Unicode code point escape sequences as errors.

Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-unicode-codepoint-escapes: error */ const a\u{31} = `foo` const a2 = "a\u{62}b"
Now loading...

👌 Examples of correct code for this rule:

/*eslint es/no-unicode-codepoint-escapes: error */ const a\u0031 = `foo` const a2 = "a\u0062b"
Now loading...

📚 References

Last Updated: 8/27/2019, 11:29:02 AM