correctness/noDuplicateVariableNames
correctness · since 2.3.11
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noDuplicateVariableNames": "error"
}
}
}
}query ($x: Int, $x: Int) {
field
}query ($x: Int, $y: Int) {
field
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noDuplicateVariableNames
correctness · since 2.3.11
{
"linter": {
"rules": {
"correctness": {
"noDuplicateVariableNames": "error"
}
}
}
}Disallow duplicate selectors within keyframe blocks.
Disallow accessing namespace imports dynamically.
Disallow duplicate properties within declaration blocks.
Require fields within an input object to be unique.
Disallow empty type parameters in type aliases and interfaces.