包详细信息

globals-vitest

FRSOURCE2.7kMIT3.1.2

Autogenerated Vitest globals that are always up-to-date! ⏰

eslint, vitest, globals, eslint globals

自述文件

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