# prefer-lowercase-title

Rule `vitest/prefer-lowercase-title`. Enforce lowercase titles

- Source: vitest
- Technologies: Testing
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 758.7K weekly downloads of presets that enable it
- Trend: +49.9% last quarter
- Rank: #1572 by reach, #789 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vitest/prefer-lowercase-title` | no | safe | package `@vitest/eslint-plugin` | [docs](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md) |
| Oxlint | `vitest/prefer-lowercase-title` | no | safe | plugin `vitest`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-lowercase-title.html) |
| Biome | `nursery/useLowercaseTestTitle` | no | unsafe | group nursery, since 2.6.0 | [docs](https://biomejs.dev/linter/rules/use-lowercase-test-title/) |

## Code examples

### Incorrect: the rule reports this

```js
test('It works', () => {
  // ...
})
```

### Correct: the rule accepts this

```js
test('it works', () => {
  // ...
})
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vitest from "@vitest/eslint-plugin";

export default [
  {
    plugins: { vitest },
    rules: {
      "vitest/prefer-lowercase-title": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "vitest"
  ],
  "rules": {
    "vitest/prefer-lowercase-title": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useLowercaseTestTitle": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [jest/prefer-lowercase-title](https://lintradar.dev/rules/jest/prefer-lowercase-title.md): Enforce lowercase test names
- [vitest/prefer-hooks-in-order](https://lintradar.dev/rules/vitest/prefer-hooks-in-order.md): Enforce having hooks in consistent order
- [vitest/consistent-test-it](https://lintradar.dev/rules/vitest/consistent-test-it.md): Enforce using test or it but not both
- [vitest/max-nested-describe](https://lintradar.dev/rules/vitest/max-nested-describe.md): Require describe block to be less than set max value or default value
- [vitest/no-duplicate-hooks](https://lintradar.dev/rules/vitest/no-duplicate-hooks.md): Disallow duplicate hooks and teardown hooks
- [vitest/no-hooks](https://lintradar.dev/rules/vitest/no-hooks.md): Disallow setup and teardown hooks

---

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