@egy186/eslint-config 4.1.1 → 4.2.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/dist/typescript.d.ts +1 -0
- package/dist/typescript.js +1 -0
- package/dist/vitest.d.ts +11 -2
- package/dist/vitest.js +8 -1
- package/package.json +9 -9
package/dist/typescript.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ declare const config: {
|
|
|
141
141
|
}];
|
|
142
142
|
readonly '@typescript-eslint/no-use-before-define': "error";
|
|
143
143
|
readonly '@typescript-eslint/no-useless-constructor': "error";
|
|
144
|
+
readonly '@typescript-eslint/no-useless-default-assignment': "error";
|
|
144
145
|
readonly '@typescript-eslint/no-useless-empty-export': "error";
|
|
145
146
|
readonly '@typescript-eslint/no-wrapper-object-types': "error";
|
|
146
147
|
readonly '@typescript-eslint/non-nullable-type-assertion-style': "off";
|
package/dist/typescript.js
CHANGED
|
@@ -148,6 +148,7 @@ const config = {
|
|
|
148
148
|
],
|
|
149
149
|
'@typescript-eslint/no-use-before-define': 'error',
|
|
150
150
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
151
|
+
'@typescript-eslint/no-useless-default-assignment': 'error',
|
|
151
152
|
'@typescript-eslint/no-useless-empty-export': 'error',
|
|
152
153
|
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
153
154
|
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
package/dist/vitest.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ declare const config: {
|
|
|
55
55
|
readonly "vitest/no-interpolation-in-snapshots": "error";
|
|
56
56
|
readonly "vitest/no-mocks-import": "error";
|
|
57
57
|
readonly "vitest/no-standalone-expect": "error";
|
|
58
|
+
readonly "vitest/no-unneeded-async-expect-function": "error";
|
|
58
59
|
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
59
60
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
60
61
|
readonly "vitest/valid-describe-callback": "error";
|
|
@@ -97,6 +98,7 @@ declare const config: {
|
|
|
97
98
|
readonly "vitest/no-standalone-expect": "warn";
|
|
98
99
|
readonly "vitest/no-test-prefixes": "warn";
|
|
99
100
|
readonly "vitest/no-test-return-statement": "warn";
|
|
101
|
+
readonly "vitest/no-unneeded-async-expect-function": "warn";
|
|
100
102
|
readonly "vitest/padding-around-after-all-blocks": "warn";
|
|
101
103
|
readonly "vitest/padding-around-after-each-blocks": "warn";
|
|
102
104
|
readonly "vitest/padding-around-all": "warn";
|
|
@@ -131,6 +133,7 @@ declare const config: {
|
|
|
131
133
|
readonly "vitest/prefer-to-be-truthy": "off";
|
|
132
134
|
readonly "vitest/prefer-to-be": "warn";
|
|
133
135
|
readonly "vitest/prefer-to-contain": "warn";
|
|
136
|
+
readonly "vitest/prefer-to-have-been-called-times": "warn";
|
|
134
137
|
readonly "vitest/prefer-to-have-length": "warn";
|
|
135
138
|
readonly "vitest/prefer-todo": "warn";
|
|
136
139
|
readonly "vitest/prefer-vi-mocked": "warn";
|
|
@@ -144,7 +147,6 @@ declare const config: {
|
|
|
144
147
|
readonly "vitest/valid-expect": "warn";
|
|
145
148
|
readonly "vitest/valid-title": "warn";
|
|
146
149
|
readonly "vitest/require-awaited-expect-poll": "warn";
|
|
147
|
-
readonly "vitest/require-import-vi-mock": "warn";
|
|
148
150
|
};
|
|
149
151
|
};
|
|
150
152
|
readonly env: {
|
|
@@ -213,6 +215,7 @@ declare const config: {
|
|
|
213
215
|
readonly 'vitest/no-standalone-expect': "error";
|
|
214
216
|
readonly 'vitest/no-test-prefixes': "error";
|
|
215
217
|
readonly 'vitest/no-test-return-statement': "error";
|
|
218
|
+
readonly 'vitest/no-unneeded-async-expect-function': "error";
|
|
216
219
|
readonly 'vitest/padding-around-after-all-blocks': "error";
|
|
217
220
|
readonly 'vitest/padding-around-after-each-blocks': "error";
|
|
218
221
|
readonly 'vitest/padding-around-all': "error";
|
|
@@ -240,6 +243,7 @@ declare const config: {
|
|
|
240
243
|
readonly 'vitest/prefer-importing-vitest-globals': "error";
|
|
241
244
|
readonly 'vitest/prefer-lowercase-title': "error";
|
|
242
245
|
readonly 'vitest/prefer-mock-promise-shorthand': "error";
|
|
246
|
+
readonly 'vitest/prefer-mock-return-shorthand': "error";
|
|
243
247
|
readonly 'vitest/prefer-snapshot-hint': "error";
|
|
244
248
|
readonly 'vitest/prefer-spy-on': "error";
|
|
245
249
|
readonly 'vitest/prefer-strict-boolean-matchers': "error";
|
|
@@ -249,12 +253,12 @@ declare const config: {
|
|
|
249
253
|
readonly 'vitest/prefer-to-be-object': "error";
|
|
250
254
|
readonly 'vitest/prefer-to-be-truthy': "off";
|
|
251
255
|
readonly 'vitest/prefer-to-contain': "error";
|
|
256
|
+
readonly 'vitest/prefer-to-have-been-called-times': "error";
|
|
252
257
|
readonly 'vitest/prefer-to-have-length': "error";
|
|
253
258
|
readonly 'vitest/prefer-todo': "error";
|
|
254
259
|
readonly 'vitest/prefer-vi-mocked': "error";
|
|
255
260
|
readonly 'vitest/require-awaited-expect-poll': "error";
|
|
256
261
|
readonly 'vitest/require-hook': "error";
|
|
257
|
-
readonly 'vitest/require-import-vi-mock': "error";
|
|
258
262
|
readonly 'vitest/require-local-test-context-for-concurrent-snapshots': "error";
|
|
259
263
|
readonly 'vitest/require-mock-type-parameters': "error";
|
|
260
264
|
readonly 'vitest/require-to-throw-message': "error";
|
|
@@ -265,6 +269,11 @@ declare const config: {
|
|
|
265
269
|
readonly 'vitest/valid-title': "error";
|
|
266
270
|
readonly 'vitest/warn-todo': "error";
|
|
267
271
|
};
|
|
272
|
+
readonly settings: {
|
|
273
|
+
readonly vitest: {
|
|
274
|
+
readonly typecheck: true;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
268
277
|
};
|
|
269
278
|
export { config as vitest };
|
|
270
279
|
export default config;
|
package/dist/vitest.js
CHANGED
|
@@ -47,6 +47,7 @@ const config = {
|
|
|
47
47
|
'vitest/no-standalone-expect': 'error',
|
|
48
48
|
'vitest/no-test-prefixes': 'error',
|
|
49
49
|
'vitest/no-test-return-statement': 'error',
|
|
50
|
+
'vitest/no-unneeded-async-expect-function': 'error',
|
|
50
51
|
'vitest/padding-around-after-all-blocks': 'error',
|
|
51
52
|
'vitest/padding-around-after-each-blocks': 'error',
|
|
52
53
|
'vitest/padding-around-all': 'error',
|
|
@@ -72,6 +73,7 @@ const config = {
|
|
|
72
73
|
'vitest/prefer-importing-vitest-globals': 'error',
|
|
73
74
|
'vitest/prefer-lowercase-title': 'error',
|
|
74
75
|
'vitest/prefer-mock-promise-shorthand': 'error',
|
|
76
|
+
'vitest/prefer-mock-return-shorthand': 'error',
|
|
75
77
|
'vitest/prefer-snapshot-hint': 'error',
|
|
76
78
|
'vitest/prefer-spy-on': 'error',
|
|
77
79
|
'vitest/prefer-strict-boolean-matchers': 'error',
|
|
@@ -81,12 +83,12 @@ const config = {
|
|
|
81
83
|
'vitest/prefer-to-be-object': 'error',
|
|
82
84
|
'vitest/prefer-to-be-truthy': 'off',
|
|
83
85
|
'vitest/prefer-to-contain': 'error',
|
|
86
|
+
'vitest/prefer-to-have-been-called-times': 'error',
|
|
84
87
|
'vitest/prefer-to-have-length': 'error',
|
|
85
88
|
'vitest/prefer-todo': 'error',
|
|
86
89
|
'vitest/prefer-vi-mocked': 'error',
|
|
87
90
|
'vitest/require-awaited-expect-poll': 'error',
|
|
88
91
|
'vitest/require-hook': 'error',
|
|
89
|
-
'vitest/require-import-vi-mock': 'error',
|
|
90
92
|
'vitest/require-local-test-context-for-concurrent-snapshots': 'error',
|
|
91
93
|
'vitest/require-mock-type-parameters': 'error',
|
|
92
94
|
'vitest/require-to-throw-message': 'error',
|
|
@@ -96,6 +98,11 @@ const config = {
|
|
|
96
98
|
'vitest/valid-expect-in-promise': 'error',
|
|
97
99
|
'vitest/valid-title': 'error',
|
|
98
100
|
'vitest/warn-todo': 'error'
|
|
101
|
+
},
|
|
102
|
+
settings: {
|
|
103
|
+
vitest: {
|
|
104
|
+
typecheck: true
|
|
105
|
+
}
|
|
99
106
|
}
|
|
100
107
|
};
|
|
101
108
|
export { config as vitest };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.2.1",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
@@ -9,22 +9,22 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@stylistic/eslint-plugin": "~5.6.1",
|
|
11
11
|
"eslint-plugin-import": "~2.32.0",
|
|
12
|
-
"eslint-plugin-jsdoc": "~61.
|
|
12
|
+
"eslint-plugin-jsdoc": "~61.5.0",
|
|
13
13
|
"eslint-plugin-n": "~17.23.1",
|
|
14
14
|
"globals": "^16.5.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@eslint/js": "~9.39.
|
|
18
|
-
"@types/node": "^
|
|
19
|
-
"@vitest/eslint-plugin": "~1.
|
|
20
|
-
"eslint": "~9.39.
|
|
17
|
+
"@eslint/js": "~9.39.2",
|
|
18
|
+
"@types/node": "^25.0.3",
|
|
19
|
+
"@vitest/eslint-plugin": "~1.6.4",
|
|
20
|
+
"eslint": "~9.39.2",
|
|
21
21
|
"eslint-import-resolver-typescript": "~4.4.4",
|
|
22
22
|
"eslint-plugin-react": "~7.37.5",
|
|
23
23
|
"eslint-plugin-react-hooks": "~7.0.1",
|
|
24
24
|
"husky": "^9.1.7",
|
|
25
25
|
"jiti": "^2.6.1",
|
|
26
26
|
"typescript": "~5.9.3",
|
|
27
|
-
"typescript-eslint": "~8.
|
|
27
|
+
"typescript-eslint": "~8.50.1"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=20.19.2"
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"main": "./dist/index.js",
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@vitest/eslint-plugin": "^1.
|
|
64
|
+
"@vitest/eslint-plugin": "^1.6.4",
|
|
65
65
|
"eslint": "^9.35.0",
|
|
66
66
|
"eslint-import-resolver-typescript": "^4.2.2",
|
|
67
67
|
"eslint-plugin-react": "^7.36.1",
|
|
68
68
|
"eslint-plugin-react-hooks": "^7.0.0",
|
|
69
69
|
"typescript": "^5.0.4",
|
|
70
|
-
"typescript-eslint": "^8.
|
|
70
|
+
"typescript-eslint": "^8.50.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependenciesMeta": {
|
|
73
73
|
"@vitest/eslint-plugin": {
|