Socket
Socket
Sign inDemoInstall

eslint-plugin-vitest-globals

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-vitest-globals - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

configs/base.js

3

.eslintrc.js

@@ -1,2 +0,3 @@

const config = require('./config/simple.json')
const { simple: config } = require('eslint-config-sets')
module.exports = Object.assign(config, {

@@ -3,0 +4,0 @@ rules: {

@@ -1,4 +0,27 @@

const globals = require('./globals.json')
'use strict'
module.exports = globals
module.exports = {
rules: {},
configs: {
base: require('./configs/base'),
recommended: require('./configs/recommended')
},
environments: {
env: {
globals: {
suite: true,
test: true,
describe: true,
it: true,
expect: true,
assert: true,
vitest: true,
vi: true,
beforeAll: true,
afterAll: true,
beforeEach: true,
afterEach: true
}
}
}
}
{
"name": "eslint-plugin-vitest-globals",
"version": "1.0.0",
"version": "1.1.0",
"description": "A extends of vitest globals for eslint",

@@ -16,2 +16,3 @@ "main": "index.js",

"vitest",
"vitest env",
"vitest globals",

@@ -32,3 +33,5 @@ "eslint-plugin-vitest-globals",

},
"dependencies": {}
"dependencies": {
"eslint-config-sets": "^1.7.2"
}
}

@@ -30,11 +30,29 @@ <div style="text-align: center;" align="center">

Simply include eslint-plugin-vitest-globals into your eslint configuration file:
1. Simply include eslint-plugin-vitest-globals into your eslint configuration file:
```json
{
"extends": ["vitest-globals"]
"extends": ["plugin:vitest-globals/recommended"],
"env": {
"vitest-globals/env": true
}
}
```
2. or if you want to use it in override mode:
```json
{
"extends": ["plugin:vitest-globals/recommended"],
"overrides": [
{
"files": ["**/__tests__/*.{j,t}s?(x)", "**/*.spec.{j,t}s?(x)"],
"env": {
"vitest-globals/env": true
}
}
]
}
```
[npm-image]: https://img.shields.io/npm/v/eslint-plugin-vitest-globals.svg?style=flat-square

@@ -41,0 +59,0 @@ [npm-url]: https://npmjs.org/package/eslint-plugin-vitest-globals

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc