eslint-config-typed 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -597,9 +597,9 @@ export default [
|
|
|
597
597
|
{
|
|
598
598
|
"compilerOptions": {
|
|
599
599
|
"types": [
|
|
600
|
-
"vitest/globals",
|
|
600
|
+
// "vitest/globals", // Remove this line
|
|
601
|
+
"eslint-config-typed/vitest", // Add this line
|
|
601
602
|
"vitest/importMeta",
|
|
602
|
-
"eslint-config-typed/vitest-coding-style", // add this line
|
|
603
603
|
],
|
|
604
604
|
},
|
|
605
605
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-typed",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript"
|
|
@@ -20,10 +20,8 @@
|
|
|
20
20
|
"default": "./dist/entry-point.mjs"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"./vitest
|
|
24
|
-
"
|
|
25
|
-
"types": "./src/plugins/vitest-coding-style/rules/vitest-coding-style.d.mts"
|
|
26
|
-
}
|
|
23
|
+
"./vitest": {
|
|
24
|
+
"types": "./src/plugins/vitest-coding-style/rules/vitest-coding-style.d.mts"
|
|
27
25
|
}
|
|
28
26
|
},
|
|
29
27
|
"module": "./dist/entry-point.mjs",
|
|
@@ -1,12 +1,52 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-restricted-types */
|
|
3
|
-
|
|
4
|
-
import { type assert as originalAssert } from 'vitest';
|
|
3
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports */
|
|
5
4
|
|
|
6
5
|
declare global {
|
|
7
|
-
const assert:
|
|
6
|
+
const assert: OverriddenAssert;
|
|
7
|
+
|
|
8
|
+
const suite: (typeof import('vitest'))['suite'];
|
|
9
|
+
|
|
10
|
+
const test: (typeof import('vitest'))['test'];
|
|
11
|
+
|
|
12
|
+
const chai: (typeof import('vitest'))['chai'];
|
|
13
|
+
|
|
14
|
+
const describe: (typeof import('vitest'))['describe'];
|
|
15
|
+
|
|
16
|
+
const it: (typeof import('vitest'))['it'];
|
|
17
|
+
|
|
18
|
+
const expectTypeOf: (typeof import('vitest'))['expectTypeOf'];
|
|
19
|
+
|
|
20
|
+
const assertType: (typeof import('vitest'))['assertType'];
|
|
21
|
+
|
|
22
|
+
const expect: (typeof import('vitest'))['expect'];
|
|
23
|
+
|
|
24
|
+
const vitest: (typeof import('vitest'))['vitest'];
|
|
25
|
+
|
|
26
|
+
const vi: (typeof import('vitest'))['vitest'];
|
|
27
|
+
|
|
28
|
+
const beforeAll: (typeof import('vitest'))['beforeAll'];
|
|
29
|
+
|
|
30
|
+
const afterAll: (typeof import('vitest'))['afterAll'];
|
|
31
|
+
|
|
32
|
+
const beforeEach: (typeof import('vitest'))['beforeEach'];
|
|
33
|
+
|
|
34
|
+
const afterEach: (typeof import('vitest'))['afterEach'];
|
|
35
|
+
|
|
36
|
+
const onTestFailed: (typeof import('vitest'))['onTestFailed'];
|
|
37
|
+
|
|
38
|
+
const onTestFinished: (typeof import('vitest'))['onTestFinished'];
|
|
8
39
|
}
|
|
9
40
|
|
|
41
|
+
// eslint-disable-next-line unicorn/require-module-specifiers
|
|
42
|
+
export {};
|
|
43
|
+
|
|
44
|
+
type Constructor<T> = Chai.Constructor<T>;
|
|
45
|
+
|
|
46
|
+
type Operator = Chai.Operator;
|
|
47
|
+
|
|
48
|
+
type OperatorComparable = Chai.OperatorComparable;
|
|
49
|
+
|
|
10
50
|
type OverriddenAssert = Readonly<{
|
|
11
51
|
/**
|
|
12
52
|
* Asserts that value is true.
|