jsonc/no-unicode-codepoint-escapes
disallow Unicode code point escape sequences.
- ⚙️ This rule is included in all of
"plugin:jsonc/recommended-with-json"
,"plugin:jsonc/recommended-with-json5"
and"plugin:jsonc/recommended-with-jsonc"
. - 🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
📖 Rule Details
This rule disallow Unicode code point escape sequences.
/* eslint jsonc/no-unicode-codepoint-escapes: 'error' */
{
/* ✓ GOOD */
"GOOD": "\u0041",
/* ✗ BAD */
"BAD": "\u{41}"
}
🔧 Options
Nothing.
🚀 Version
This rule was introduced in eslint-plugin-jsonc v1.1.0