eslint-plugin-vitest-globals
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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: { |
29
index.js
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6157
11
51
69
1
+ Addedeslint-config-sets@^1.7.2
+ Addedeslint-config-sets@1.8.3(transitive)