correctness/noDuplicateFieldDefinitionNames
correctness · since 2.3.11
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noDuplicateFieldDefinitionNames": "error"
}
}
}
}type SomeObject {
foo: String
foo: String
}interface SomeObject {
foo: String
foo: String
}input SomeObject {
foo: String
foo: String
}type SomeObject {
foo: String
bar: String
}interface SomeObject {
foo: String
bar: String
}input SomeObject {
foo: String
bar: String
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noDuplicateFieldDefinitionNames
correctness · since 2.3.11
{
"linter": {
"rules": {
"correctness": {
"noDuplicateFieldDefinitionNames": "error"
}
}
}
}Disallow duplicate names in GraphQL enums.
Disallow duplicate names inside GraphQL operations.
Disallow duplicate custom properties within declaration blocks.
Require fields within an input object to be unique.