✅ The "extends": "plugin:@graphql-eslint/schema-recommended"
property in a configuration file enables this rule.
- 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.
# eslint @graphql-eslint/no-case-insensitive-enum-values-duplicates: 'error'
enum MyEnum {
Value
VALUE
ValuE
}
# eslint @graphql-eslint/no-case-insensitive-enum-values-duplicates: 'error'
enum MyEnum {
Value1
Value2
Value3
}