allow-all-caps
Allows the user to specify if some nodes allows texts completely in uppercase.
Configuration
Name | Type | Description | Default |
---|---|---|---|
Global | boolean | The rule affects globally, to all nodes (except if the opposite is specified by config). | false |
Description | boolean | The rule affects to the Description node. | undefined (Inherits from Global) |
Feature | boolean | The rule affects to the Feature node. | undefined (Inherits from Global) |
Rule | boolean | The rule affects to the Rule node. | undefined (Inherits from Global) |
Background | boolean | The rule affects to the Background node. | undefined (Inherits from Global) |
Scenario | boolean | The rule affects to the Scenario node. | undefined (Inherits from Global) |
Step | boolean | The rule affects to the Step node. | undefined (Inherits from Global) |
Example | boolean | The rule affects to the Example node. | undefined (Inherits from Global) |
ExampleHeader | boolean | The rule affects to the ExampleHeader node. | undefined (Inherits from Global) |
ExampleBody | boolean | The rule affects to the ExampleBody node. | undefined (Inherits from Global) |
Examples
Example
Allows "Description", "ExampleHeader" and "ExampleBody" to be completely in uppercase, disallow the rest using "Global".
{
"allow-all-caps": [
"error",
{
"Global": false,
"Description": true,
"ExampleHeader": true,
"ExampleBody": true
}
]
}