# eslint-config-vitest-globals

> Tiny vitest-eslint library contains globals for vitest

Latest version **2.0.2** (published 2025-04-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-vitest-globals
pnpm add eslint-config-vitest-globals
yarn add eslint-config-vitest-globals
bun add eslint-config-vitest-globals
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2025-04-02 |
| First published | 2021-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 54 |
| Author | TadejPolajnar |
| Maintainers | tadejpol |
| Keywords | eslint, vitest, eslint-config, eslint-flat-config |

## Links

- npm: https://www.npmjs.com/package/eslint-config-vitest-globals
- Repository: https://github.com/TadejPolajnar/eslint-config-vitest-globals
- Homepage: https://github.com/TadejPolajnar/eslint-config-vitest-globals#readme
- Issues: https://github.com/TadejPolajnar/eslint-config-vitest-globals/issues
- npm.io page: https://npm.io/package/eslint-config-vitest-globals

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2025-04-02
- 2.0.0 (next) — 2025-03-14
- 2.0.1 — 2025-03-15
- 1.0.0 — 2024-03-15
- 0.0.3 — 2021-12-29
- 0.0.2 — 2021-12-29

## README

# ESLint globals config

Get rid of ESLint errors with one line of code.

```bash
error  'vi' is not defined          no-undef
error  'describe' is not defined    no-undef
error  'beforeEach' is not defined  no-undef
```

## Installation

```bash
$ npm install --dev eslint-config-vitest-globals
$ yarn add --dev eslint-config-vitest-globals
$ pnpm add --dev eslint-config-vitest-globals
```

## Usage

### Flat Config (ESLint >= v9)

Create an `eslint.config.js` file and import the config:

```js
import vitestGlobals from "eslint-config-vitest-globals/flat";

export default [
  vitestGlobals(),
  // ... your other configs
];
```

### Traditional Config (ESLint <= v8)

Include `eslint-config-vitest-globals` in your `.eslintrc` configuration file:

```json
{
  "extends": ["eslint-config-vitest-globals"]
}
```

## License

Released under the MIT License, [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/eslint-config-vitest-globals · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
