@wistia/eslint-config 1.2.2 → 1.3.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.
package/.yarnrc.yml CHANGED
@@ -4,4 +4,4 @@ enableGlobalCache: false
4
4
 
5
5
  nodeLinker: node-modules
6
6
 
7
- yarnPath: .yarn/releases/yarn-4.9.2.cjs
7
+ yarnPath: .yarn/releases/yarn-4.12.0.cjs
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @wistia/eslint-config
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#408](https://github.com/wistia/eslint-config/pull/408) [`bb300d9`](https://github.com/wistia/eslint-config/commit/bb300d92c3b9c2ae1b1a095c30a5db189ec2b163) Thanks [@okize](https://github.com/okize)! - feat: add two new rules to testing-library ruleset
8
+
3
9
  ## 1.2.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "Wistia's ESLint configurations",
5
- "packageManager": "yarn@4.9.2",
5
+ "packageManager": "yarn@4.12.0",
6
6
  "type": "module",
7
7
  "main": "index.mjs",
8
8
  "engines": {
@@ -42,16 +42,16 @@
42
42
  "@babel/core": "^7.28.5",
43
43
  "@babel/eslint-parser": "^7.28.5",
44
44
  "@eslint/compat": "^2.0.0",
45
- "@eslint/js": "^9.39.1",
45
+ "@eslint/js": "^9.39.2",
46
46
  "@stylistic/eslint-plugin": "^5.6.1",
47
- "@typescript-eslint/eslint-plugin": "^8.48.1",
48
- "@typescript-eslint/parser": "^8.48.1",
47
+ "@typescript-eslint/eslint-plugin": "^8.49.0",
48
+ "@typescript-eslint/parser": "^8.49.0",
49
49
  "confusing-browser-globals": "^1.0.11",
50
50
  "eslint-import-resolver-typescript": "^4.4.4",
51
51
  "eslint-plugin-barrel-files": "^3.0.1",
52
52
  "eslint-plugin-filenames": "^1.3.2",
53
53
  "eslint-plugin-import": "^2.32.0",
54
- "eslint-plugin-jest": "^29.2.1",
54
+ "eslint-plugin-jest": "^29.5.0",
55
55
  "eslint-plugin-jest-dom": "^5.5.0",
56
56
  "eslint-plugin-jest-formatting": "^3.1.0",
57
57
  "eslint-plugin-jsx-a11y": "^6.10.2",
@@ -66,9 +66,9 @@
66
66
  "eslint-plugin-react-hooks": "^7.0.1",
67
67
  "eslint-plugin-react-hooks-ssr": "^0.1.5",
68
68
  "eslint-plugin-ssr-friendly": "^1.3.0",
69
- "eslint-plugin-storybook": "^10.1.4",
69
+ "eslint-plugin-storybook": "^10.1.9",
70
70
  "eslint-plugin-styled-components-a11y": "^2.2.1",
71
- "eslint-plugin-testing-library": "^7.13.5",
71
+ "eslint-plugin-testing-library": "^7.14.0",
72
72
  "eslint-plugin-vitest": "^0.5.4",
73
73
  "globals": "^16.5.0",
74
74
  "globals-vitest": "^4.0.15"
@@ -76,14 +76,14 @@
76
76
  "devDependencies": {
77
77
  "@changesets/changelog-github": "^0.5.2",
78
78
  "@changesets/cli": "^2.29.8",
79
- "@commitlint/cli": "^20.1.0",
80
- "@commitlint/config-conventional": "^20.0.0",
79
+ "@commitlint/cli": "^20.2.0",
80
+ "@commitlint/config-conventional": "^20.2.0",
81
81
  "check-export-map": "^1.3.1",
82
- "eslint": "^9.39.1",
82
+ "eslint": "^9.39.2",
83
83
  "glob": "^13.0.0",
84
84
  "husky": "^9.1.7",
85
85
  "prettier": "^3.7.4",
86
- "storybook": "^10.1.4",
86
+ "storybook": "^10.1.9",
87
87
  "typescript": "^5.9.3",
88
88
  "vitest": "^4.0.15"
89
89
  },
@@ -71,6 +71,10 @@ export default {
71
71
  // https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/no-render-in-lifecycle.md
72
72
  'testing-library/no-render-in-lifecycle': 'error',
73
73
 
74
+ // Disallow the usage of test-id queries
75
+ // https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/no-test-id-queries.md
76
+ 'testing-library/no-test-id-queries': 'error',
77
+
74
78
  // Disallow wrapping Testing Library utils or empty callbacks in `act`
75
79
  // https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/no-unnecessary-act.md
76
80
  'testing-library/no-unnecessary-act': 'error',
@@ -115,6 +119,10 @@ export default {
115
119
  // https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/prefer-user-event.md
116
120
  'testing-library/prefer-user-event': 'error',
117
121
 
122
+ // Suggest using `setup` with `userEvent`
123
+ // https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/prefer-user-event-setup.md
124
+ 'testing-library/prefer-user-event-setup': 'error',
125
+
118
126
  // Enforce a valid naming for return value from `render`
119
127
  // https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/render-result-naming-convention.md
120
128
  'testing-library/render-result-naming-convention': 'error',
@@ -79,7 +79,7 @@
79
79
  "barrel-files:eslint-plugin-barrel-files@3.0.1",
80
80
  "filenames",
81
81
  "import",
82
- "js:@eslint/js@9.39.1",
82
+ "js:@eslint/js@9.39.2",
83
83
  "prettier:eslint-plugin-prettier@5.5.4",
84
84
  "promise",
85
85
  ],
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "plugins": [
30
30
  "@",
31
- "jest:eslint-plugin-jest@29.2.1",
31
+ "jest:eslint-plugin-jest@29.5.0",
32
32
  "jest-formatting",
33
33
  "no-only-tests",
34
34
  ],
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "plugins": [
15
15
  "@",
16
- "testing-library:eslint-plugin-testing-library@7.13.5",
16
+ "testing-library:eslint-plugin-testing-library@7.14.0",
17
17
  "jest-dom:eslint-plugin-jest-dom@5.5.0",
18
18
  ],
19
19
  "rules": {
@@ -103,6 +103,9 @@
103
103
  "testing-library/no-render-in-lifecycle": [
104
104
  2,
105
105
  ],
106
+ "testing-library/no-test-id-queries": [
107
+ 2,
108
+ ],
106
109
  "testing-library/no-unnecessary-act": [
107
110
  2,
108
111
  ],
@@ -139,6 +142,9 @@
139
142
  "testing-library/prefer-user-event": [
140
143
  2,
141
144
  ],
145
+ "testing-library/prefer-user-event-setup": [
146
+ 2,
147
+ ],
142
148
  "testing-library/render-result-naming-convention": [
143
149
  2,
144
150
  ],
@@ -64,7 +64,7 @@
64
64
  "undefined": false,
65
65
  "unescape": false,
66
66
  },
67
- "parser": "typescript-eslint/parser@8.48.1",
67
+ "parser": "typescript-eslint/parser@8.49.0",
68
68
  "parserOptions": {
69
69
  "ecmaVersion": 2024,
70
70
  "project": "./tsconfig.json",
@@ -78,7 +78,7 @@
78
78
  "plugins": [
79
79
  "@",
80
80
  "@stylistic",
81
- "@typescript-eslint:@typescript-eslint/eslint-plugin@8.48.1",
81
+ "@typescript-eslint:@typescript-eslint/eslint-plugin@8.49.0",
82
82
  "barrel-files:eslint-plugin-barrel-files@3.0.1",
83
83
  "filenames",
84
84
  "import",