@wistia/eslint-config 1.6.2 → 2.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.
@@ -5,6 +5,8 @@
5
5
  "globals": {
6
6
  "afterAll": true,
7
7
  "afterEach": true,
8
+ "aroundAll": true,
9
+ "aroundEach": true,
8
10
  "assert": true,
9
11
  "assertType": true,
10
12
  "beforeAll": true,
@@ -22,7 +24,7 @@
22
24
  "vi": true,
23
25
  "vitest": true,
24
26
  },
25
- "parser": "espree@10.4.0",
27
+ "parser": "espree@11.2.0",
26
28
  "parserOptions": {
27
29
  "sourceType": "module",
28
30
  },
@@ -33,7 +35,7 @@
33
35
  },
34
36
  "plugins": [
35
37
  "@",
36
- "vitest:vitest@0.5.3",
38
+ "vitest:vitest@1.6.13",
37
39
  "jest-formatting",
38
40
  "no-only-tests",
39
41
  ],
@@ -67,12 +69,24 @@
67
69
  ],
68
70
  "vitest/consistent-test-filename": [
69
71
  2,
72
+ {
73
+ "allTestPattern": ".*\.(test|spec)\.[tj]sx?$",
74
+ "pattern": ".*\.test\.[tj]sx?$",
75
+ },
70
76
  ],
71
77
  "vitest/consistent-test-it": [
72
78
  2,
79
+ {},
73
80
  ],
74
81
  "vitest/expect-expect": [
75
82
  2,
83
+ {
84
+ "additionalTestBlockFunctions": [],
85
+ "assertFunctionNames": [
86
+ "expect",
87
+ "assert",
88
+ ],
89
+ },
76
90
  ],
77
91
  "vitest/max-expects": [
78
92
  2,
@@ -82,6 +96,9 @@
82
96
  ],
83
97
  "vitest/max-nested-describe": [
84
98
  2,
99
+ {
100
+ "max": 5,
101
+ },
85
102
  ],
86
103
  "vitest/no-alias-methods": [
87
104
  2,
@@ -91,6 +108,9 @@
91
108
  ],
92
109
  "vitest/no-conditional-expect": [
93
110
  2,
111
+ {
112
+ "expectAssertions": false,
113
+ },
94
114
  ],
95
115
  "vitest/no-conditional-in-test": [
96
116
  2,
@@ -106,9 +126,15 @@
106
126
  ],
107
127
  "vitest/no-focused-tests": [
108
128
  2,
129
+ {
130
+ "fixable": true,
131
+ },
109
132
  ],
110
133
  "vitest/no-hooks": [
111
134
  0,
135
+ {
136
+ "allow": [],
137
+ },
112
138
  ],
113
139
  "vitest/no-identical-title": [
114
140
  2,
@@ -130,12 +156,17 @@
130
156
  ],
131
157
  "vitest/no-restricted-matchers": [
132
158
  2,
159
+ {},
133
160
  ],
134
161
  "vitest/no-restricted-vi-methods": [
135
162
  2,
163
+ {},
136
164
  ],
137
165
  "vitest/no-standalone-expect": [
138
166
  2,
167
+ {
168
+ "additionalTestBlockFunctions": [],
169
+ },
139
170
  ],
140
171
  "vitest/no-test-prefixes": [
141
172
  2,
@@ -157,6 +188,11 @@
157
188
  ],
158
189
  "vitest/prefer-expect-assertions": [
159
190
  0,
191
+ {
192
+ "onlyFunctionsWithAsyncKeyword": false,
193
+ "onlyFunctionsWithExpectInCallback": false,
194
+ "onlyFunctionsWithExpectInLoop": false,
195
+ },
160
196
  ],
161
197
  "vitest/prefer-expect-resolves": [
162
198
  2,
@@ -169,12 +205,19 @@
169
205
  ],
170
206
  "vitest/prefer-lowercase-title": [
171
207
  0,
208
+ {
209
+ "allowedPrefixes": [],
210
+ "ignore": [],
211
+ "ignoreTopLevelDescribe": false,
212
+ "lowercaseFirstCharacterOnly": true,
213
+ },
172
214
  ],
173
215
  "vitest/prefer-mock-promise-shorthand": [
174
216
  2,
175
217
  ],
176
218
  "vitest/prefer-snapshot-hint": [
177
219
  2,
220
+ "multi",
178
221
  ],
179
222
  "vitest/prefer-spy-on": [
180
223
  2,
@@ -205,6 +248,9 @@
205
248
  ],
206
249
  "vitest/require-hook": [
207
250
  2,
251
+ {
252
+ "allowedFunctionCalls": [],
253
+ },
208
254
  ],
209
255
  "vitest/require-local-test-context-for-concurrent-snapshots": [
210
256
  2,
@@ -214,15 +260,32 @@
214
260
  ],
215
261
  "vitest/require-top-level-describe": [
216
262
  2,
263
+ {
264
+ "maxNumberOfTopLevelDescribes": null,
265
+ },
217
266
  ],
218
267
  "vitest/valid-describe-callback": [
219
268
  2,
220
269
  ],
221
270
  "vitest/valid-expect": [
222
271
  2,
272
+ {
273
+ "alwaysAwait": false,
274
+ "asyncMatchers": [
275
+ "toReject",
276
+ "toResolve",
277
+ ],
278
+ "maxArgs": 1,
279
+ "minArgs": 1,
280
+ },
223
281
  ],
224
282
  "vitest/valid-title": [
225
283
  2,
284
+ {
285
+ "allowArguments": false,
286
+ "disallowedWords": [],
287
+ "ignoreTypeOfDescribeName": false,
288
+ },
226
289
  ],
227
290
  },
228
291
  }