✅ The extends: 'recommended'
property in a configuration file enables this rule.
🔧 The --fix
option on the command line can automatically fix some of the problems reported by this rule.
Require named blocks to use a valid naming format (camelCase
or kebab-case
).
The default naming format used is camelCase
.
This rule forbids the following when the camelCase
naming format is enabled:
This rule allows the following when the camelCase
naming format is enabled:
This rule forbids the following when the kebab-case
naming format is enabled:
This rule allows the following when the kebab-case
naming format is enabled:
- string --
'camelCase'
Requires the use of thecamelCase
naming format.'kebab-case'
Requires the use of thekebab-case
naming format.