# noDuplicateArgumentNames

Rule `biome/noDuplicateArgumentNames`. Require unique argument names for fields and directives.

- Source: biome
- Technologies: GraphQL
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #503 by reach, #138 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `correctness/noDuplicateArgumentNames` | yes | no | group correctness, since 2.3.11 | [docs](https://biomejs.dev/linter/rules/no-duplicate-argument-names/) |

## Code examples

### Incorrect: the rule reports this

```graphql
query {
  field(arg1: "value", arg1: "value")
}
```

### Correct: the rule accepts this

```graphql
query {
  field(arg1: "value", arg2: "value")
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noDuplicateArgumentNames": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noDrizzleUpdateWithoutWhere](https://lintradar.dev/rules/biome/noDrizzleUpdateWithoutWhere.md): Require `.where()` to be called when using `.update()` with Drizzle ORM.
- [biome/noDuplicateAtImportRules](https://lintradar.dev/rules/biome/noDuplicateAtImportRules.md): Disallow duplicate `@import` rules.
- [biome/noDrizzleDeleteWithoutWhere](https://lintradar.dev/rules/biome/noDrizzleDeleteWithoutWhere.md): Require `.where()` to be called when using `.delete()` with Drizzle ORM.
- [biome/noDuplicateCustomProperties](https://lintradar.dev/rules/biome/noDuplicateCustomProperties.md): Disallow duplicate custom properties within declaration blocks.
- [biome/noDescendingSpecificity](https://lintradar.dev/rules/biome/noDescendingSpecificity.md): Disallow lower-specificity selectors after higher-specificity selectors.
- [biome/noDuplicateEnumValueNames](https://lintradar.dev/rules/biome/noDuplicateEnumValueNames.md): Disallow duplicate names in GraphQL enums.

---

Web page: https://lintradar.dev/rules/biome/noDuplicateArgumentNames. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
