correctness/noDuplicateEnumValueNames
correctness · since 2.3.12
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noDuplicateEnumValueNames": "error"
}
}
}
}enum A {
TEST
OTHER
TEST
}enum B {
TEST
TesT
}enum A {
TEST
OTHER
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noDuplicateEnumValueNames
correctness · since 2.3.12
{
"linter": {
"rules": {
"correctness": {
"noDuplicateEnumValueNames": "error"
}
}
}
}Disallow duplicate custom properties within declaration blocks.
Require all fields of a type to be unique.
Disallow duplicate names inside GraphQL operations.
Require unique argument names for fields and directives.