jsonc/valid-json-number
disallow invalid number for JSON
- ⚙️ This rule is included in
"plugin:jsonc/recommended-with-json"
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 reports numbers that cannot be parsed with JSON.
🔧 Options
Nothing.
👫 Related rules
- jsonc/no-binary-numeric-literals
- jsonc/no-floating-decimal
- jsonc/no-hexadecimal-numeric-literals
- jsonc/no-infinity
- jsonc/no-nan
- jsonc/no-numeric-separators
- jsonc/no-octal-numeric-literals
- jsonc/no-octal
- jsonc/no-plus-sign
- jsonc/space-unary-ops
🚀 Version
This rule was introduced in eslint-plugin-jsonc v0.1.0