globals-vitest
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

NPM version badge Core bundle size badge. Data from bundlephobia.com semantic-release badge license MIT badge

Globals Vitest - autogenerated Vitest globals that are always up-to-date! ⏰

Getting Started · File an Issue · Have a question or an idea?


Tiny library that provides you with Vitest globals.
Autogenerated based directly on the Vitest package - it's always in sync!
Tiny package size - no sub-dependencies
Supports ESLint Flat Config format

Published under MIT license

Quick start

Installation

npm install --save-dev globals-vitest

yarn add -D globals-vitest

pnpm add -D globals-vitest

Usage (Flat Config)

// 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.

Questions

Don’t hesitate to ask a question directly on the discussions board!

Changelog

Changes for every release are documented in the release notes and CHANGELOG file.

License

MIT

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

Package Sidebar

Install

npm i globals-vitest

Weekly Downloads

14

Version

1.6.0

License

MIT

Unpacked Size

6.01 kB

Total Files

5

Last publish

Collaborators

  • frsgit