jsonc/key-name-casing
enforce naming convention to property key names
📖 Rule Details
This rule enforces a naming convention to property key names.
🔧 Options
json5
{
"jsonc/key-name-casing": ["error",
{
"camelCase": true,
"PascalCase": false,
"SCREAMING_SNAKE_CASE": false,
"kebab-case": false,
"snake_case": false,
"ignores": []
}
]
}
"camelCase"
... iftrue
, allows camelCase naming. defaulttrue
"PascalCase"
... iftrue
, allows PascalCase naming. defaultfalse
"SCREAMING_SNAKE_CASE"
... iftrue
, allows SCREAMING_SNAKE_CASE naming. defaultfalse
"kebab-case"
... iftrue
, allows kebab-case naming. defaultfalse
"snake_case"
... iftrue
, allows snake_case naming. defaultfalse
"ignores"
... you can specify the patterns to ignore in the array.
🚀 Version
This rule was introduced in eslint-plugin-jsonc v0.8.0