# Available Rules

The --fix option on the command line (opens new window) automatically fixes problems reported by rules which have a wrench 🔧 below.
The rules with the following star ⭐️ are included in the plugin:jsonc/recommended config.

# JSONC Rules

Rule ID Description Fixable JSON JSONC JSON5
jsonc/auto apply jsonc rules similar to your configured ESLint core rules 🔧
jsonc/key-name-casing enforce naming convention to property key names
jsonc/no-bigint-literals disallow BigInt literals ⭐️ ⭐️ ⭐️
jsonc/no-binary-expression disallow binary expression 🔧 ⭐️ ⭐️ ⭐️
jsonc/no-binary-numeric-literals disallow binary numeric literals 🔧 ⭐️ ⭐️ ⭐️
jsonc/no-comments disallow comments ⭐️
jsonc/no-escape-sequence-in-identifier disallow escape sequences in identifiers. 🔧 ⭐️ ⭐️ ⭐️
jsonc/no-hexadecimal-numeric-literals disallow hexadecimal numeric literals 🔧 ⭐️ ⭐️
jsonc/no-infinity disallow Infinity ⭐️ ⭐️
jsonc/no-nan disallow NaN ⭐️ ⭐️
jsonc/no-number-props disallow number property keys 🔧 ⭐️ ⭐️ ⭐️
jsonc/no-numeric-separators disallow numeric separators 🔧 ⭐️ ⭐️ ⭐️
jsonc/no-octal-numeric-literals disallow octal numeric literals 🔧 ⭐️ ⭐️ ⭐️
jsonc/no-parenthesized disallow parentheses around the expression 🔧 ⭐️ ⭐️ ⭐️
jsonc/no-plus-sign disallow plus sign 🔧 ⭐️ ⭐️
jsonc/no-regexp-literals disallow RegExp literals ⭐️ ⭐️ ⭐️
jsonc/no-template-literals disallow template literals 🔧 ⭐️ ⭐️ ⭐️
jsonc/no-undefined-value disallow undefined ⭐️ ⭐️ ⭐️
jsonc/no-unicode-codepoint-escapes disallow Unicode code point escape sequences. 🔧 ⭐️ ⭐️ ⭐️
jsonc/sort-array-values require array values to be sorted 🔧
jsonc/sort-keys require object keys to be sorted 🔧
jsonc/valid-json-number disallow invalid number for JSON 🔧 ⭐️ ⭐️
jsonc/vue-custom-block/no-parsing-error disallow parsing errors in Vue custom blocks ⭐️ ⭐️ ⭐️

# Extension Rules

Rule ID Description Fixable JSON JSONC JSON5
jsonc/array-bracket-newline enforce line breaks after opening and before closing array brackets 🔧
jsonc/array-bracket-spacing disallow or enforce spaces inside of brackets 🔧
jsonc/array-element-newline enforce line breaks between array elements 🔧
jsonc/comma-dangle require or disallow trailing commas 🔧 ⭐️
jsonc/comma-style enforce consistent comma style 🔧
jsonc/indent enforce consistent indentation 🔧
jsonc/key-spacing enforce consistent spacing between keys and values in object literal properties 🔧
jsonc/no-dupe-keys disallow duplicate keys in object literals ⭐️ ⭐️ ⭐️
jsonc/no-floating-decimal disallow leading or trailing decimal points in numeric literals 🔧 ⭐️ ⭐️
jsonc/no-irregular-whitespace disallow irregular whitespace
jsonc/no-multi-str disallow multiline strings ⭐️ ⭐️
jsonc/no-octal-escape disallow octal escape sequences in string literals
jsonc/no-octal disallow legacy octal literals ⭐️ ⭐️ ⭐️
jsonc/no-sparse-arrays disallow sparse arrays ⭐️ ⭐️ ⭐️
jsonc/no-useless-escape disallow unnecessary escape usage ⭐️ ⭐️ ⭐️
jsonc/object-curly-newline enforce consistent line breaks inside braces 🔧
jsonc/object-curly-spacing enforce consistent spacing inside braces 🔧
jsonc/object-property-newline enforce placing object properties on separate lines 🔧
jsonc/quote-props require quotes around object literal property names 🔧 ⭐️ ⭐️
jsonc/quotes enforce use of double or single quotes 🔧 ⭐️ ⭐️
jsonc/space-unary-ops disallow spaces after unary operators 🔧 ⭐️ ⭐️ ⭐️