eslint-config-silverwind 98.0.0 → 99.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;;AA6FnC,wBA2C4B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;;AA6FnC,wBA2C4B"}
package/dist/index.js CHANGED
@@ -7,12 +7,11 @@ import noUseExtendNative from "eslint-plugin-no-use-extend-native";
7
7
  import regexp from "eslint-plugin-regexp";
8
8
  import sonarjs from "eslint-plugin-sonarjs";
9
9
  import unicorn from "eslint-plugin-unicorn";
10
- import vitest from "eslint-plugin-vitest";
10
+ import vitest from "@vitest/eslint-plugin";
11
11
  import playwright from "eslint-plugin-playwright";
12
12
  import tsdoc from "eslint-plugin-tsdoc";
13
13
  import globals from "globals";
14
14
  import { deepMerge } from "deepie-merge";
15
- import vitestGlobalsPlugin from "eslint-plugin-vitest-globals";
16
15
  import jsxA11y from "eslint-plugin-jsx-a11y";
17
16
  import react from "eslint-plugin-react";
18
17
  import reactHooks from "eslint-plugin-react-hooks";
@@ -44,9 +43,7 @@ const eslintrc = o({
44
43
  "eslint-plugin-regexp",
45
44
  "eslint-plugin-sonarjs",
46
45
  "eslint-plugin-tsdoc",
47
- "eslint-plugin-unicorn",
48
- "eslint-plugin-vitest",
49
- "eslint-plugin-vitest-globals"
46
+ "eslint-plugin-unicorn"
50
47
  ],
51
48
  "parser": "@typescript-eslint/parser",
52
49
  "parserOptions": {
@@ -114,60 +111,59 @@ const eslintrc = o({
114
111
  "vitest.setup.*",
115
112
  "integration/**"
116
113
  ],
117
- "env": {
118
- "vitest-globals/env": true
119
- },
114
+ "plugins": ["@vitest/eslint-plugin"],
115
+ "globals": Object.fromEntries(Object.keys(globals.vitest).map((e) => [e, true])),
120
116
  "rules": {
121
117
  "unicorn/consistent-function-scoping": [0],
122
- "vitest/consistent-test-filename": [0],
123
- "vitest/consistent-test-it": [0],
124
- "vitest/expect-expect": [0],
125
- "vitest/max-expects": [0],
126
- "vitest/max-nested-describe": [0],
127
- "vitest/no-alias-methods": [0],
128
- "vitest/no-commented-out-tests": [0],
129
- "vitest/no-conditional-expect": [0],
130
- "vitest/no-conditional-in-test": [0],
131
- "vitest/no-conditional-tests": [0],
132
- "vitest/no-disabled-tests": [0],
133
- "vitest/no-done-callback": [0],
134
- "vitest/no-duplicate-hooks": [0],
135
- "vitest/no-focused-tests": [0],
136
- "vitest/no-hooks": [0],
137
- "vitest/no-identical-title": [2],
138
- "vitest/no-interpolation-in-snapshots": [0],
139
- "vitest/no-large-snapshots": [0],
140
- "vitest/no-mocks-import": [0],
141
- "vitest/no-restricted-matchers": [0],
142
- "vitest/no-restricted-vi-methods": [0],
143
- "vitest/no-standalone-expect": [0],
144
- "vitest/no-test-prefixes": [0],
145
- "vitest/no-test-return-statement": [0],
146
- "vitest/prefer-called-with": [0],
147
- "vitest/prefer-comparison-matcher": [0],
148
- "vitest/prefer-each": [0],
149
- "vitest/prefer-equality-matcher": [0],
150
- "vitest/prefer-expect-resolves": [0],
151
- "vitest/prefer-hooks-in-order": [0],
152
- "vitest/prefer-hooks-on-top": [2],
153
- "vitest/prefer-lowercase-title": [0],
154
- "vitest/prefer-mock-promise-shorthand": [0],
155
- "vitest/prefer-snapshot-hint": [0],
156
- "vitest/prefer-spy-on": [0],
157
- "vitest/prefer-strict-equal": [0],
158
- "vitest/prefer-to-be": [0],
159
- "vitest/prefer-to-be-falsy": [0],
160
- "vitest/prefer-to-be-object": [0],
161
- "vitest/prefer-to-be-truthy": [0],
162
- "vitest/prefer-to-contain": [0],
163
- "vitest/prefer-to-have-length": [0],
164
- "vitest/prefer-todo": [0],
165
- "vitest/require-hook": [0],
166
- "vitest/require-to-throw-message": [0],
167
- "vitest/require-top-level-describe": [0],
168
- "vitest/valid-describe-callback": [2],
169
- "vitest/valid-expect": [2],
170
- "vitest/valid-title": [2]
118
+ "@vitest/consistent-test-filename": [0],
119
+ "@vitest/consistent-test-it": [0],
120
+ "@vitest/expect-expect": [0],
121
+ "@vitest/max-expects": [0],
122
+ "@vitest/max-nested-describe": [0],
123
+ "@vitest/no-alias-methods": [0],
124
+ "@vitest/no-commented-out-tests": [0],
125
+ "@vitest/no-conditional-expect": [0],
126
+ "@vitest/no-conditional-in-test": [0],
127
+ "@vitest/no-conditional-tests": [0],
128
+ "@vitest/no-disabled-tests": [0],
129
+ "@vitest/no-done-callback": [0],
130
+ "@vitest/no-duplicate-hooks": [0],
131
+ "@vitest/no-focused-tests": [0],
132
+ "@vitest/no-hooks": [0],
133
+ "@vitest/no-identical-title": [2],
134
+ "@vitest/no-interpolation-in-snapshots": [0],
135
+ "@vitest/no-large-snapshots": [0],
136
+ "@vitest/no-mocks-import": [0],
137
+ "@vitest/no-restricted-matchers": [0],
138
+ "@vitest/no-restricted-vi-methods": [0],
139
+ "@vitest/no-standalone-expect": [0],
140
+ "@vitest/no-test-prefixes": [0],
141
+ "@vitest/no-test-return-statement": [0],
142
+ "@vitest/prefer-called-with": [0],
143
+ "@vitest/prefer-comparison-matcher": [0],
144
+ "@vitest/prefer-each": [0],
145
+ "@vitest/prefer-equality-matcher": [0],
146
+ "@vitest/prefer-expect-resolves": [0],
147
+ "@vitest/prefer-hooks-in-order": [0],
148
+ "@vitest/prefer-hooks-on-top": [2],
149
+ "@vitest/prefer-lowercase-title": [0],
150
+ "@vitest/prefer-mock-promise-shorthand": [0],
151
+ "@vitest/prefer-snapshot-hint": [0],
152
+ "@vitest/prefer-spy-on": [0],
153
+ "@vitest/prefer-strict-equal": [0],
154
+ "@vitest/prefer-to-be": [0],
155
+ "@vitest/prefer-to-be-falsy": [0],
156
+ "@vitest/prefer-to-be-object": [0],
157
+ "@vitest/prefer-to-be-truthy": [0],
158
+ "@vitest/prefer-to-contain": [0],
159
+ "@vitest/prefer-to-have-length": [0],
160
+ "@vitest/prefer-todo": [0],
161
+ "@vitest/require-hook": [0],
162
+ "@vitest/require-to-throw-message": [0],
163
+ "@vitest/require-top-level-describe": [0],
164
+ "@vitest/valid-describe-callback": [2],
165
+ "@vitest/valid-expect": [2],
166
+ "@vitest/valid-title": [2]
171
167
  }
172
168
  },
173
169
  {
@@ -1188,7 +1184,7 @@ const index = [
1188
1184
  deepMerge(common, {
1189
1185
  plugins: { vitest },
1190
1186
  files: testOverride.files,
1191
- languageOptions: { globals: { ...vitestGlobalsPlugin.environments.env.globals } },
1187
+ languageOptions: { globals: { ...globals.vitest } },
1192
1188
  rules: testOverride.files
1193
1189
  }, { arrayExtend: true }),
1194
1190
  deepMerge(common, {
package/dist/index.json CHANGED
@@ -14,9 +14,7 @@
14
14
  "eslint-plugin-regexp",
15
15
  "eslint-plugin-sonarjs",
16
16
  "eslint-plugin-tsdoc",
17
- "eslint-plugin-unicorn",
18
- "eslint-plugin-vitest",
19
- "eslint-plugin-vitest-globals"
17
+ "eslint-plugin-unicorn"
20
18
  ],
21
19
  "parser": "@typescript-eslint/parser",
22
20
  "parserOptions": {
@@ -178,158 +176,176 @@
178
176
  "vitest.setup.*",
179
177
  "integration/**"
180
178
  ],
181
- "env": {
182
- "vitest-globals/env": true
179
+ "plugins": [
180
+ "@vitest/eslint-plugin"
181
+ ],
182
+ "globals": {
183
+ "afterAll": true,
184
+ "afterEach": true,
185
+ "assert": true,
186
+ "assertType": true,
187
+ "beforeAll": true,
188
+ "beforeEach": true,
189
+ "describe": true,
190
+ "expect": true,
191
+ "expectTypeOf": true,
192
+ "it": true,
193
+ "onTestFailed": true,
194
+ "onTestFinished": true,
195
+ "suite": true,
196
+ "test": true,
197
+ "vi": true,
198
+ "vitest": true
183
199
  },
184
200
  "rules": {
185
201
  "unicorn/consistent-function-scoping": [
186
202
  0
187
203
  ],
188
- "vitest/consistent-test-filename": [
204
+ "@vitest/consistent-test-filename": [
189
205
  0
190
206
  ],
191
- "vitest/consistent-test-it": [
207
+ "@vitest/consistent-test-it": [
192
208
  0
193
209
  ],
194
- "vitest/expect-expect": [
210
+ "@vitest/expect-expect": [
195
211
  0
196
212
  ],
197
- "vitest/max-expects": [
213
+ "@vitest/max-expects": [
198
214
  0
199
215
  ],
200
- "vitest/max-nested-describe": [
216
+ "@vitest/max-nested-describe": [
201
217
  0
202
218
  ],
203
- "vitest/no-alias-methods": [
219
+ "@vitest/no-alias-methods": [
204
220
  0
205
221
  ],
206
- "vitest/no-commented-out-tests": [
222
+ "@vitest/no-commented-out-tests": [
207
223
  0
208
224
  ],
209
- "vitest/no-conditional-expect": [
225
+ "@vitest/no-conditional-expect": [
210
226
  0
211
227
  ],
212
- "vitest/no-conditional-in-test": [
228
+ "@vitest/no-conditional-in-test": [
213
229
  0
214
230
  ],
215
- "vitest/no-conditional-tests": [
231
+ "@vitest/no-conditional-tests": [
216
232
  0
217
233
  ],
218
- "vitest/no-disabled-tests": [
234
+ "@vitest/no-disabled-tests": [
219
235
  0
220
236
  ],
221
- "vitest/no-done-callback": [
237
+ "@vitest/no-done-callback": [
222
238
  0
223
239
  ],
224
- "vitest/no-duplicate-hooks": [
240
+ "@vitest/no-duplicate-hooks": [
225
241
  0
226
242
  ],
227
- "vitest/no-focused-tests": [
243
+ "@vitest/no-focused-tests": [
228
244
  0
229
245
  ],
230
- "vitest/no-hooks": [
246
+ "@vitest/no-hooks": [
231
247
  0
232
248
  ],
233
- "vitest/no-identical-title": [
249
+ "@vitest/no-identical-title": [
234
250
  2
235
251
  ],
236
- "vitest/no-interpolation-in-snapshots": [
252
+ "@vitest/no-interpolation-in-snapshots": [
237
253
  0
238
254
  ],
239
- "vitest/no-large-snapshots": [
255
+ "@vitest/no-large-snapshots": [
240
256
  0
241
257
  ],
242
- "vitest/no-mocks-import": [
258
+ "@vitest/no-mocks-import": [
243
259
  0
244
260
  ],
245
- "vitest/no-restricted-matchers": [
261
+ "@vitest/no-restricted-matchers": [
246
262
  0
247
263
  ],
248
- "vitest/no-restricted-vi-methods": [
264
+ "@vitest/no-restricted-vi-methods": [
249
265
  0
250
266
  ],
251
- "vitest/no-standalone-expect": [
267
+ "@vitest/no-standalone-expect": [
252
268
  0
253
269
  ],
254
- "vitest/no-test-prefixes": [
270
+ "@vitest/no-test-prefixes": [
255
271
  0
256
272
  ],
257
- "vitest/no-test-return-statement": [
273
+ "@vitest/no-test-return-statement": [
258
274
  0
259
275
  ],
260
- "vitest/prefer-called-with": [
276
+ "@vitest/prefer-called-with": [
261
277
  0
262
278
  ],
263
- "vitest/prefer-comparison-matcher": [
279
+ "@vitest/prefer-comparison-matcher": [
264
280
  0
265
281
  ],
266
- "vitest/prefer-each": [
282
+ "@vitest/prefer-each": [
267
283
  0
268
284
  ],
269
- "vitest/prefer-equality-matcher": [
285
+ "@vitest/prefer-equality-matcher": [
270
286
  0
271
287
  ],
272
- "vitest/prefer-expect-resolves": [
288
+ "@vitest/prefer-expect-resolves": [
273
289
  0
274
290
  ],
275
- "vitest/prefer-hooks-in-order": [
291
+ "@vitest/prefer-hooks-in-order": [
276
292
  0
277
293
  ],
278
- "vitest/prefer-hooks-on-top": [
294
+ "@vitest/prefer-hooks-on-top": [
279
295
  2
280
296
  ],
281
- "vitest/prefer-lowercase-title": [
297
+ "@vitest/prefer-lowercase-title": [
282
298
  0
283
299
  ],
284
- "vitest/prefer-mock-promise-shorthand": [
300
+ "@vitest/prefer-mock-promise-shorthand": [
285
301
  0
286
302
  ],
287
- "vitest/prefer-snapshot-hint": [
303
+ "@vitest/prefer-snapshot-hint": [
288
304
  0
289
305
  ],
290
- "vitest/prefer-spy-on": [
306
+ "@vitest/prefer-spy-on": [
291
307
  0
292
308
  ],
293
- "vitest/prefer-strict-equal": [
309
+ "@vitest/prefer-strict-equal": [
294
310
  0
295
311
  ],
296
- "vitest/prefer-to-be": [
312
+ "@vitest/prefer-to-be": [
297
313
  0
298
314
  ],
299
- "vitest/prefer-to-be-falsy": [
315
+ "@vitest/prefer-to-be-falsy": [
300
316
  0
301
317
  ],
302
- "vitest/prefer-to-be-object": [
318
+ "@vitest/prefer-to-be-object": [
303
319
  0
304
320
  ],
305
- "vitest/prefer-to-be-truthy": [
321
+ "@vitest/prefer-to-be-truthy": [
306
322
  0
307
323
  ],
308
- "vitest/prefer-to-contain": [
324
+ "@vitest/prefer-to-contain": [
309
325
  0
310
326
  ],
311
- "vitest/prefer-to-have-length": [
327
+ "@vitest/prefer-to-have-length": [
312
328
  0
313
329
  ],
314
- "vitest/prefer-todo": [
330
+ "@vitest/prefer-todo": [
315
331
  0
316
332
  ],
317
- "vitest/require-hook": [
333
+ "@vitest/require-hook": [
318
334
  0
319
335
  ],
320
- "vitest/require-to-throw-message": [
336
+ "@vitest/require-to-throw-message": [
321
337
  0
322
338
  ],
323
- "vitest/require-top-level-describe": [
339
+ "@vitest/require-top-level-describe": [
324
340
  0
325
341
  ],
326
- "vitest/valid-describe-callback": [
342
+ "@vitest/valid-describe-callback": [
327
343
  2
328
344
  ],
329
- "vitest/valid-expect": [
345
+ "@vitest/valid-expect": [
330
346
  2
331
347
  ],
332
- "vitest/valid-title": [
348
+ "@vitest/valid-title": [
333
349
  2
334
350
  ]
335
351
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-silverwind",
3
- "version": "98.0.0",
3
+ "version": "99.0.0",
4
4
  "description": "Exhaustive ESLint configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/eslint-config-silverwind",
@@ -16,11 +16,12 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
19
- "@stylistic/eslint-plugin-js": "3.0.0",
20
- "@stylistic/eslint-plugin-jsx": "3.0.0",
21
- "@stylistic/eslint-plugin-ts": "3.0.0",
22
- "@typescript-eslint/eslint-plugin": "8.22.0",
23
- "@typescript-eslint/parser": "8.22.0",
19
+ "@stylistic/eslint-plugin-js": "3.1.0",
20
+ "@stylistic/eslint-plugin-jsx": "3.1.0",
21
+ "@stylistic/eslint-plugin-ts": "3.1.0",
22
+ "@typescript-eslint/eslint-plugin": "8.24.0",
23
+ "@typescript-eslint/parser": "8.24.0",
24
+ "@vitest/eslint-plugin": "1.1.29",
24
25
  "deepie-merge": "1.3.0",
25
26
  "eslint-import-resolver-typescript": "3.7.0",
26
27
  "eslint-plugin-array-func": "4.0.0",
@@ -30,31 +31,29 @@
30
31
  "eslint-plugin-playwright": "2.2.0",
31
32
  "eslint-plugin-react": "7.37.4",
32
33
  "eslint-plugin-react-hooks": "5.1.0",
33
- "eslint-plugin-react-refresh": "0.4.18",
34
+ "eslint-plugin-react-refresh": "0.4.19",
34
35
  "eslint-plugin-regexp": "2.7.0",
35
36
  "eslint-plugin-sonarjs": "3.0.1",
36
37
  "eslint-plugin-storybook": "0.11.2",
37
38
  "eslint-plugin-tsdoc": "0.4.0",
38
39
  "eslint-plugin-unicorn": "56.0.1",
39
40
  "eslint-plugin-validate-jsx-nesting": "0.1.1",
40
- "eslint-plugin-vitest": "0.5.4",
41
- "eslint-plugin-vitest-globals": "1.5.0",
42
41
  "globals": "15.14.0",
43
- "typescript-eslint": "8.22.0"
42
+ "typescript-eslint": "8.24.0"
44
43
  },
45
44
  "devDependencies": {
46
45
  "@types/eslint": "9.6.1",
47
46
  "@types/eslint-plugin-jsx-a11y": "6.10.0",
48
- "@types/node": "22.12.0",
47
+ "@types/node": "22.13.1",
49
48
  "eslint": "8.57.1",
50
49
  "eslint-define-config": "2.1.0",
51
50
  "typescript": "5.7.3",
52
- "typescript-config-silverwind": "6.2.1",
53
- "updates": "16.4.1",
51
+ "typescript-config-silverwind": "7.0.0",
52
+ "updates": "16.4.2",
54
53
  "versions": "12.1.3",
55
- "vite": "6.0.11",
54
+ "vite": "6.1.0",
56
55
  "vite-config-silverwind": "4.0.0",
57
- "vitest": "3.0.4",
56
+ "vitest": "3.0.5",
58
57
  "vitest-config-silverwind": "10.0.0"
59
58
  },
60
59
  "peerDependencies": {