-
Notifications
You must be signed in to change notification settings - Fork 927
Closed
Labels
Description
Current Behavior
Currently it is only possible to choose a single item from the following list:
- 'lower-case', // default
- 'upper-case', // UPPERCASE
- 'camel-case', // camelCase
- 'kebab-case', // kebab-case
- 'pascal-case', // PascalCase
- 'sentence-case', // Sentence case
- 'snake-case', // snake_case
- 'start-case', // Start Case
However it would be great to be able to choose a subset. For example we would like to restrict scope to either kebab-case
or camel-case
(because we use function names as scope sometimes). At present our only option is to disable the rule entirely.
Possible Solution
Allow multiple casings to be selected:
"rules": {
"scope-case": [2, ['camel-case', 'kebab-case']],
}
This could also apply to type-case
and subject-case
.
SimeonC, foray1010 and BenjD90