Перейти к содержимому

useUniqueVariableNames

Это содержимое пока не доступно на вашем языке.

biome.json
{
"linter": {
"rules": {
"nursery": {
"useUniqueVariableNames": "error"
}
}
}
}

Require all variable definitions to be unique.

A GraphQL operation is only valid if all its variables are uniquely named.

query ($x: Int, $x: Int) {
field
}
code-block.graphql:1:7 lint/nursery/useUniqueVariableNames ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Duplicate variable name.

> 1 │ query ($x: Int, $x: Int) {
^^^^^^^^^^^^^^^^^^
2 │ field
3 │ }

A GraphQL operation is only valid if all its variables are uniquely named. Make sure to name every variable differently.

This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information.

query ($x: Int, $y: Int) {
field
}