# padding-around-all

Rule `vitest/padding-around-all`. Enforce padding around vitest functions

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vitest/padding-around-all` | no | safe | package `@vitest/eslint-plugin` | [docs](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md) |
| Oxlint | `vitest/padding-around-all` | no | safe | plugin `vitest`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/vitest/padding-around-all.html) |

## Enable it

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

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

export default [
  {
    plugins: { vitest },
    rules: {
      "vitest/padding-around-all": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "vitest"
  ],
  "rules": {
    "vitest/padding-around-all": "error"
  }
}
```

## Related rules

- [jest/padding-around-all](https://lintradar.dev/rules/jest/padding-around-all.md): Enforce padding around Jest functions
- [vitest/padding-around-after-each-blocks](https://lintradar.dev/rules/vitest/padding-around-after-each-blocks.md): Enforce padding around `afterEach` blocks
- [vitest/padding-around-before-all-blocks](https://lintradar.dev/rules/vitest/padding-around-before-all-blocks.md): Enforce padding around `beforeAll` blocks
- [vitest/padding-around-after-all-blocks](https://lintradar.dev/rules/vitest/padding-around-after-all-blocks.md): Enforce padding around `afterAll` blocks
- [vitest/padding-around-before-each-blocks](https://lintradar.dev/rules/vitest/padding-around-before-each-blocks.md): Enforce padding around `beforeEach` blocks
- [vitest/no-test-prefixes](https://lintradar.dev/rules/vitest/no-test-prefixes.md): Disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`

---

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