@jimmy.codes/eslint-config 5.20.0 → 6.1.0
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/dist/astro-CqgWkoKy.js +63 -0
- package/dist/constants-dep165g5.js +73 -0
- package/dist/has-dependency-B3Fi8OzA.js +42 -0
- package/dist/index.d.ts +7449 -10031
- package/dist/index.js +448 -559
- package/dist/interop-default-D4l3hsYQ.js +17 -0
- package/dist/jest-CzZHXxA7.js +62 -0
- package/dist/nextjs-Bh8fqE_o.js +24 -0
- package/dist/playwright-CHYoYi52.js +41 -0
- package/dist/react-BE1N8MTt.js +92 -0
- package/dist/storybook-BO4plVPp.js +32 -0
- package/dist/tanstack-query-DF8OWtLq.js +24 -0
- package/dist/testing-library-XmNQWB2F.js +31 -0
- package/dist/typescript-fvBsWGqo.js +62 -0
- package/dist/upwarn-C7t3ub-R.js +16 -0
- package/dist/vitest-J--7DiIk.js +74 -0
- package/package.json +14 -14
- package/dist/astro-NEJ73UBN.js +0 -71
- package/dist/chunk-72FT76PY.js +0 -9
- package/dist/chunk-7RIW3P47.js +0 -55
- package/dist/chunk-BDIXPIKB.js +0 -12
- package/dist/chunk-XMM6FHXC.js +0 -82
- package/dist/jest-SCRGNX6Z.js +0 -80
- package/dist/nextjs-CRRBTFXP.js +0 -36
- package/dist/playwright-2HMMFF3D.js +0 -50
- package/dist/react-IAR3MTFF.js +0 -126
- package/dist/storybook-XHFO7L4T.js +0 -38
- package/dist/tanstack-query-MM3M2QJO.js +0 -35
- package/dist/testing-library-QHZMYCZH.js +0 -43
- package/dist/typescript-PLNEW3M4.js +0 -86
- package/dist/vitest-IAENZQ7B.js +0 -92
package/dist/vitest-IAENZQ7B.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interopDefault
|
|
3
|
-
} from "./chunk-72FT76PY.js";
|
|
4
|
-
import {
|
|
5
|
-
GLOB_E2E,
|
|
6
|
-
GLOB_TESTS
|
|
7
|
-
} from "./chunk-XMM6FHXC.js";
|
|
8
|
-
|
|
9
|
-
// src/rules/vitest.ts
|
|
10
|
-
var vitestRules = async () => {
|
|
11
|
-
const vitestPlugin = await interopDefault(import("@vitest/eslint-plugin"));
|
|
12
|
-
return {
|
|
13
|
-
...vitestPlugin.configs.recommended.rules,
|
|
14
|
-
"vitest/consistent-test-it": [
|
|
15
|
-
"error",
|
|
16
|
-
{
|
|
17
|
-
fn: "test",
|
|
18
|
-
withinDescribe: "it"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"vitest/consistent-vitest-vi": "error",
|
|
22
|
-
"vitest/no-alias-methods": "error",
|
|
23
|
-
"vitest/no-commented-out-tests": "error",
|
|
24
|
-
"vitest/no-conditional-in-test": "error",
|
|
25
|
-
"vitest/no-disabled-tests": "warn",
|
|
26
|
-
"vitest/no-duplicate-hooks": "error",
|
|
27
|
-
"vitest/no-focused-tests": "error",
|
|
28
|
-
"vitest/no-hooks": "off",
|
|
29
|
-
"vitest/no-identical-title": "error",
|
|
30
|
-
"vitest/no-interpolation-in-snapshots": "error",
|
|
31
|
-
"vitest/no-large-snapshots": "off",
|
|
32
|
-
"vitest/no-mocks-import": "error",
|
|
33
|
-
"vitest/no-restricted-matchers": "off",
|
|
34
|
-
"vitest/no-restricted-vi-methods": "off",
|
|
35
|
-
"vitest/no-standalone-expect": "error",
|
|
36
|
-
"vitest/no-test-prefixes": "error",
|
|
37
|
-
"vitest/no-test-return-statement": "error",
|
|
38
|
-
"vitest/prefer-called-once": "error",
|
|
39
|
-
"vitest/prefer-called-times": "off",
|
|
40
|
-
// "vitest/no-untyped-mock-factory": "off", // requires typescript
|
|
41
|
-
"vitest/prefer-called-with": "error",
|
|
42
|
-
"vitest/prefer-comparison-matcher": "error",
|
|
43
|
-
"vitest/prefer-each": "error",
|
|
44
|
-
"vitest/prefer-equality-matcher": "error",
|
|
45
|
-
"vitest/prefer-expect-assertions": "off",
|
|
46
|
-
"vitest/prefer-expect-resolves": "error",
|
|
47
|
-
"vitest/prefer-hooks-in-order": "error",
|
|
48
|
-
"vitest/prefer-hooks-on-top": "error",
|
|
49
|
-
"vitest/prefer-lowercase-title": "off",
|
|
50
|
-
"vitest/prefer-mock-promise-shorthand": "error",
|
|
51
|
-
"vitest/prefer-snapshot-hint": "error",
|
|
52
|
-
"vitest/prefer-spy-on": "off",
|
|
53
|
-
"vitest/prefer-strict-boolean-matchers": "error",
|
|
54
|
-
"vitest/prefer-strict-equal": "error",
|
|
55
|
-
"vitest/prefer-to-be": "error",
|
|
56
|
-
"vitest/prefer-to-contain": "error",
|
|
57
|
-
"vitest/prefer-to-have-length": "error",
|
|
58
|
-
"vitest/prefer-todo": "warn",
|
|
59
|
-
"vitest/require-hook": "error",
|
|
60
|
-
"vitest/require-to-throw-message": "error",
|
|
61
|
-
"vitest/require-top-level-describe": "off",
|
|
62
|
-
// "vitest/unbound-method": "off", // requires typescript, missing https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
63
|
-
"vitest/valid-expect": "error",
|
|
64
|
-
"vitest/valid-expect-in-promise": "error",
|
|
65
|
-
"vitest/valid-title": [
|
|
66
|
-
"error",
|
|
67
|
-
{
|
|
68
|
-
mustMatch: {
|
|
69
|
-
it: "^should"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"vitest/warn-todo": "warn"
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
// src/configs/vitest.ts
|
|
78
|
-
async function vitestConfig() {
|
|
79
|
-
const vitestPlugin = await interopDefault(import("@vitest/eslint-plugin"));
|
|
80
|
-
return [
|
|
81
|
-
{
|
|
82
|
-
files: GLOB_TESTS,
|
|
83
|
-
ignores: GLOB_E2E,
|
|
84
|
-
...vitestPlugin.configs.recommended,
|
|
85
|
-
name: "jimmy.codes/vitest",
|
|
86
|
-
rules: await vitestRules()
|
|
87
|
-
}
|
|
88
|
-
];
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
vitestConfig as default
|
|
92
|
-
};
|