<p align="center">
  <a href="https://www.npmjs.com/package/globals-vitest">
    <img src="https://img.shields.io/npm/v/globals-vitest" alt="NPM version badge">
  </a>
  <a href="https://bundlephobia.com/result?p=globals-vitest" title="Visit bundlephobia for more details!">
    <img src="https://img.shields.io/bundlephobia/minzip/globals-vitest" alt="Core bundle size badge. Data from bundlephobia.com">
  </a>
  <a href="https://github.com/semantic-release/semantic-release">
    <img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="semantic-release badge">
  </a>
  <a href="https://github.com/FRSOURCE/toolkit/blob/main/LICENSE">
    <img src="https://img.shields.io/github/license/FRSOURCE/toolkit" alt="license MIT badge">
  </a>
</p>

<h1 align="center">Globals Vitest - autogenerated Vitest globals that are always up-to-date! ⏰</h1>

<p align="center">
  <a href="#quick-start">Getting Started</a>
  ·
  <a href="https://github.com/FRSOURCE/toolkit/issues">File an Issue</a>
  ·
  <a href="#questions">Have a question or an idea?</a>
  <br>
</p>

<p align="center">
  <br>
  <i>Tiny library that provides you with Vitest globals.
    <br>Autogenerated based directly on the Vitest package - it's always in sync!
    <br>Tiny package size - no sub-dependencies
    <br>Supports <a href="https://eslint.org/docs/latest/use/configure/configuration-files">ESLint Flat Config format</a></i>
    <br>Published under <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> license</i>
  <br>
  <br>
</p>

## Quick start

### Installation

```bash
npm install --save-dev globals-vitest

yarn add -D globals-vitest

pnpm add -D globals-vitest
```

### Usage (Flat Config)

```js
// eslint.config.js
import globalsVitest from 'globals-vitest';

export default [
  {
    languageOptions: {
      globals: {
        ...globalsVitest,
      },
    },
  },
];
```

> For more information about globals configuration in ESLint, please consult [the documentation](https://eslint.org/docs/latest/use/configure/language-options#specifying-globals).

## Questions

Don’t hesitate to ask a question directly on the [discussions board](https://github.com/FRSOURCE/toolkit/discussions)!

## Changelog

Changes for every release are documented in the [release notes](https://github.com/FRSOURCE/toolkit/releases) and [CHANGELOG file](https://github.com/FRSOURCE/toolkit/tree/main/packages/globals-vitest/CHANGELOG.md).

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2024-present, Jakub FRS Freisler, FRSOURCE
