@wistia/eslint-config 2.4.1 → 2.4.3
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/rules/vitest.mjs +4 -2
- package/test/__snapshots__/vitest.mjs.snap +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @wistia/eslint-config
|
|
2
2
|
|
|
3
|
+
## 2.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#454](https://github.com/wistia/eslint-config/pull/454) [`37dde02`](https://github.com/wistia/eslint-config/commit/37dde02aff28e4f30537b3404c46d92952824391) Thanks [@okize](https://github.com/okize)! - fix: update `valid-title` rule to avoid conflict with `prefer-describe-function-title`
|
|
8
|
+
|
|
9
|
+
## 2.4.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#452](https://github.com/wistia/eslint-config/pull/452) [`a7fba62`](https://github.com/wistia/eslint-config/commit/a7fba62c91213c3bd03806b7b5bd4aa8a1b885a0) Thanks [@okize](https://github.com/okize)! - fix: disable `vitest/prefer-called-once` rule since it conflicts
|
|
14
|
+
|
|
3
15
|
## 2.4.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
package/src/rules/vitest.mjs
CHANGED
|
@@ -172,7 +172,8 @@ export default {
|
|
|
172
172
|
|
|
173
173
|
// Prefer toHaveBeenCalledOnce() over toHaveBeenCalledTimes(1)
|
|
174
174
|
// https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
|
|
175
|
-
|
|
175
|
+
// decision: this conflicts with `prefer-called-times` rule, which is enabled
|
|
176
|
+
'vitest/prefer-called-once': 'off',
|
|
176
177
|
|
|
177
178
|
// Prefer toHaveBeenCalledTimes over multiple assertions
|
|
178
179
|
// https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-times.md
|
|
@@ -310,5 +311,6 @@ export default {
|
|
|
310
311
|
|
|
311
312
|
// Enforce valid titles
|
|
312
313
|
// https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
313
|
-
|
|
314
|
+
// decision: `allowArguments` avoids conflict with `prefer-describe-function-title` rule, which is enabled
|
|
315
|
+
'vitest/valid-title': ['error', { allowArguments: true }],
|
|
314
316
|
};
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
2,
|
|
197
197
|
],
|
|
198
198
|
"vitest/prefer-called-once": [
|
|
199
|
-
|
|
199
|
+
0,
|
|
200
200
|
],
|
|
201
201
|
"vitest/prefer-called-times": [
|
|
202
202
|
2,
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
"vitest/valid-title": [
|
|
331
331
|
2,
|
|
332
332
|
{
|
|
333
|
-
"allowArguments":
|
|
333
|
+
"allowArguments": true,
|
|
334
334
|
"disallowedWords": [],
|
|
335
335
|
"ignoreTypeOfDescribeName": false,
|
|
336
336
|
},
|