@wistia/eslint-config 2.4.2 → 2.4.4

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @wistia/eslint-config
2
2
 
3
+ ## 2.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#456](https://github.com/wistia/eslint-config/pull/456) [`ffbb63a`](https://github.com/wistia/eslint-config/commit/ffbb63ace5d18924098a1d239b469bf1a935bd33) Thanks [@okize](https://github.com/okize)! - fix: disable `vitest/prefer-import-in-mock` rule
8
+
9
+ ## 2.4.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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`
14
+
3
15
  ## 2.4.2
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "packageManager": "yarn@4.12.0",
6
6
  "type": "module",
@@ -195,6 +195,7 @@ export default {
195
195
  '@eslint-react/no-useless-fragment': 'error',
196
196
 
197
197
  // Enforce consistent usage of destructuring assignment of props, state, and context
198
+ // decision: best left up to the implementer
198
199
  '@eslint-react/prefer-destructuring-assignment': 'off',
199
200
 
200
201
  // Enforce importing React via a namespace import
@@ -221,6 +221,7 @@ export default {
221
221
 
222
222
  // Prefer vi.importActual/vi.importMock in vi.mock factories
223
223
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
224
+ // decision: potentially helpful but causes too many type errors
224
225
  'vitest/prefer-import-in-mock': 'error',
225
226
 
226
227
  // Prefer importing vitest globals instead of using them implicitly
@@ -311,5 +312,6 @@ export default {
311
312
 
312
313
  // Enforce valid titles
313
314
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
314
- 'vitest/valid-title': 'error',
315
+ // decision: `allowArguments` avoids conflict with `prefer-describe-function-title` rule, which is enabled
316
+ 'vitest/valid-title': ['error', { allowArguments: true }],
315
317
  };
@@ -330,7 +330,7 @@
330
330
  "vitest/valid-title": [
331
331
  2,
332
332
  {
333
- "allowArguments": false,
333
+ "allowArguments": true,
334
334
  "disallowedWords": [],
335
335
  "ignoreTypeOfDescribeName": false,
336
336
  },