yml/key-name-casing
enforce naming convention to key names
📖 Rule Details
This rule enforces a naming convention to key names.
🔧 Options
yaml
yml/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-yml v0.2.0