# useDeprecatedDate

Rule `biome/useDeprecatedDate`. Require a valid deletion date on the `@deprecated` directive.

- Source: biome
- Technologies: GraphQL
- Kind: suspicious
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1956 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/useDeprecatedDate` | no | no | group suspicious, since 2.2.6 | [docs](https://biomejs.dev/linter/rules/use-deprecated-date/) |

## Code examples

### Incorrect: the rule reports this

```graphql
query {
  member @deprecated(reason: "Use `members` instead") {
    id
  }
}
```

### Correct: the rule accepts this

```graphql
query {
  member @deprecated(reason: "Use `members` instead", deletionDate: "2099-12-25") {
    id
  }
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "useDeprecatedDate": "error"
      }
    }
  }
}
```

## Related rules

- [biome/useConsistentLightnessNotation](https://lintradar.dev/rules/biome/useConsistentLightnessNotation.md): Enforce a consistent notation for the lightness of colors.
- [biome/useDisposables](https://lintradar.dev/rules/biome/useDisposables.md): Detects a disposable object assigned to a variable without using or await using syntax.
- [biome/useConsistentFontWeightNotation](https://lintradar.dev/rules/biome/useConsistentFontWeightNotation.md): Enforce a consistent notation for font weights.
- [biome/useJsonImportAttributes](https://lintradar.dev/rules/biome/useJsonImportAttributes.md): Enforces the use of `with { type: "json" }` for JSON module imports.
- [biome/useConsistentBooleanProps](https://lintradar.dev/rules/biome/useConsistentBooleanProps.md): Require a consistent style for JSX props with the value `true`
- [biome/useLayeredStyles](https://lintradar.dev/rules/biome/useLayeredStyles.md): Enforce style rules to be defined within a cascade layer.

---

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