šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

eslint-config-vitest-globals

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-vitest-globals

Tiny vitest-eslint library contains globals for vitest

2.0.2
latest
Source
npm
Version published
Weekly downloads
5.3K
24.55%
Maintainers
1
Weekly downloads
Ā 
Created
Source

ESLint globals config

Get rid of ESLint errors with one line of code.

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

Installation

$ 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:

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:

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

License

Released under the MIT License, http://opensource.org/licenses/MIT

Keywords

eslint

FAQs

Package last updated on 02 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts