useUniqueArgumentNames
Цей контент ще не доступний вашою мовою.
Summary
Section titled “Summary”- Diagnostic Category:
lint/nursery/useUniqueArgumentNames - This rule doesn’t have a fix.
- The default severity of this rule is information.
- Sources:
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useUniqueArgumentNames": "error" } } }}Description
Section titled “Description”Require all argument names for fields & directives to be unique.
A GraphQL field or directive is only valid if all supplied arguments are uniquely named.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”query { field(arg1: "value", arg1: "value")}code-block.graphql:2:8 lint/nursery/useUniqueArgumentNames ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ℹ Duplicate argument name.
1 │ query {
> 2 │ field(arg1: “value”, arg1: “value”)
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 │ }
4 │
ℹ A GraphQL field or directive is only valid if all supplied arguments are uniquely named. Make sure to name every argument 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 { field(arg1: "value", arg2: "value")}Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.