no-case-insensitive-enum-values-duplicates
â
The "extends": "plugin:@graphql-eslint/schema-recommended"
property in a configuration file
enables this rule.
đĄ This rule provides suggestions (opens in a new tab)
- Category:
Schema
- Rule name:
@graphql-eslint/no-case-insensitive-enum-values-duplicates
- Requires GraphQL Schema:
false
âšī¸ - Requires GraphQL Operations:
false
âšī¸
Disallow case-insensitive enum values duplicates.
Usage Examples
Incorrect
# eslint @graphql-eslint/no-case-insensitive-enum-values-duplicates: 'error'
enum MyEnum {
Value
VALUE
ValuE
}
Correct
# eslint @graphql-eslint/no-case-insensitive-enum-values-duplicates: 'error'
enum MyEnum {
Value1
Value2
Value3
}