# noInvalidGridAreas

Rule `biome/noInvalidGridAreas`. Disallow invalid named areas in CSS grid templates.

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `correctness/noInvalidGridAreas` | yes | no | group correctness, since 1.9.0 | [docs](https://biomejs.dev/linter/rules/no-invalid-grid-areas/) |

## Code examples

### Incorrect: the rule reports this

```css
a { grid-template-areas: "a a"
                         "b b b"; }
```

```css
a { grid-template-areas: "b b b"
                         ""; }
```

```css
a { grid-template-areas: "a a a"
                         "b b a"; }
```

### Correct: the rule accepts this

```css
a { grid-template-areas: "a a a"
                         "b b b"; }
```

```css
a { grid-template-areas: "a a a"
                         "a a a"; }
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noInvalidGridAreas": "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/noInvalidDirectionInLinearGradient](https://lintradar.dev/rules/biome/noInvalidDirectionInLinearGradient.md): Disallow non-standard directions in linear gradients.
- [biome/noInvalidPositionAtImportRule](https://lintradar.dev/rules/biome/noInvalidPositionAtImportRule.md): Disallow `@import` after other rules.
- [biome/noImportantInKeyframe](https://lintradar.dev/rules/biome/noImportantInKeyframe.md): Disallow `!important` in `@keyframes` declarations.
- [biome/noInvalidPropertyInitValue](https://lintradar.dev/rules/biome/noInvalidPropertyInitValue.md): Checks that the `initial-value` of an `@property` rule follows the value format declared by its `syntax`.
- [biome/noImplicitAnyLet](https://lintradar.dev/rules/biome/noImplicitAnyLet.md): Disallow use of implicit `any` type on variable declarations.
- [biome/noJsonUnsafeValues](https://lintradar.dev/rules/biome/noJsonUnsafeValues.md): Disallow unsafe JSON values that may cause interoperability issues.

---

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