@wistia/eslint-config 1.6.1 → 1.6.2
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 +6 -0
- package/package.json +16 -16
- package/src/rules/react.mjs +1 -1
- package/src/rules/typescript.mjs +1 -1
- package/test/__snapshots__/javascript.mjs.snap +3 -2
- package/test/__snapshots__/jest.mjs.snap +1 -1
- package/test/__snapshots__/node.mjs.snap +1 -1
- package/test/__snapshots__/testing-library.mjs.snap +1 -1
- package/test/__snapshots__/typescript.mjs.snap +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @wistia/eslint-config
|
|
2
2
|
|
|
3
|
+
## 1.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#426](https://github.com/wistia/eslint-config/pull/426) [`cf947bc`](https://github.com/wistia/eslint-config/commit/cf947bccbf5aa8347d3b9b9035d7b0b7cdc50599) Thanks [@okize](https://github.com/okize)! - fix: `no-undef-init` was meant to be set to `off` in typescript rules
|
|
8
|
+
|
|
3
9
|
## 1.6.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"packageManager": "yarn@4.12.0",
|
|
6
6
|
"type": "module",
|
|
@@ -39,34 +39,34 @@
|
|
|
39
39
|
"test:export": "check-export-map"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@eslint/compat": "^2.0.
|
|
42
|
+
"@eslint/compat": "^2.0.1",
|
|
43
43
|
"@eslint/js": "^9.39.2",
|
|
44
|
-
"@stylistic/eslint-plugin": "^5.
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
46
|
-
"@typescript-eslint/parser": "^8.
|
|
44
|
+
"@stylistic/eslint-plugin": "^5.7.0",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.53.1",
|
|
46
|
+
"@typescript-eslint/parser": "^8.53.1",
|
|
47
47
|
"confusing-browser-globals": "^1.0.11",
|
|
48
48
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
49
49
|
"eslint-plugin-barrel-files": "^3.0.1",
|
|
50
50
|
"eslint-plugin-filenames": "^1.3.2",
|
|
51
51
|
"eslint-plugin-import": "^2.32.0",
|
|
52
|
-
"eslint-plugin-jest": "^29.
|
|
52
|
+
"eslint-plugin-jest": "^29.12.1",
|
|
53
53
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
54
54
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
55
55
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
56
|
-
"eslint-plugin-n": "^17.23.
|
|
56
|
+
"eslint-plugin-n": "^17.23.2",
|
|
57
57
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
58
58
|
"eslint-plugin-no-typeof-window-undefined": "^0.0.2",
|
|
59
|
-
"eslint-plugin-playwright": "^2.
|
|
60
|
-
"eslint-plugin-prettier": "^5.5.
|
|
59
|
+
"eslint-plugin-playwright": "^2.5.0",
|
|
60
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
61
61
|
"eslint-plugin-promise": "^7.2.1",
|
|
62
62
|
"eslint-plugin-react": "^7.37.5",
|
|
63
63
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
64
64
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
65
65
|
"eslint-plugin-react-hooks-ssr": "^0.1.5",
|
|
66
66
|
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
67
|
-
"eslint-plugin-storybook": "^10.
|
|
67
|
+
"eslint-plugin-storybook": "^10.2.0",
|
|
68
68
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
69
|
-
"eslint-plugin-testing-library": "^7.
|
|
69
|
+
"eslint-plugin-testing-library": "^7.15.4",
|
|
70
70
|
"eslint-plugin-vitest": "^0.5.4",
|
|
71
71
|
"globals": "^17.0.0",
|
|
72
72
|
"globals-vitest": "^4.0.15"
|
|
@@ -74,16 +74,16 @@
|
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@changesets/changelog-github": "^0.5.2",
|
|
76
76
|
"@changesets/cli": "^2.29.8",
|
|
77
|
-
"@commitlint/cli": "^20.
|
|
78
|
-
"@commitlint/config-conventional": "^20.
|
|
77
|
+
"@commitlint/cli": "^20.3.1",
|
|
78
|
+
"@commitlint/config-conventional": "^20.3.1",
|
|
79
79
|
"check-export-map": "^1.3.1",
|
|
80
80
|
"eslint": "^9.39.2",
|
|
81
81
|
"glob": "^13.0.0",
|
|
82
82
|
"husky": "^9.1.7",
|
|
83
|
-
"prettier": "^3.
|
|
84
|
-
"storybook": "^10.
|
|
83
|
+
"prettier": "^3.8.0",
|
|
84
|
+
"storybook": "^10.2.0",
|
|
85
85
|
"typescript": "^5.9.3",
|
|
86
|
-
"vitest": "^4.0.
|
|
86
|
+
"vitest": "^4.0.17"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"eslint": ">= 9",
|
package/src/rules/react.mjs
CHANGED
|
@@ -151,7 +151,7 @@ export default {
|
|
|
151
151
|
],
|
|
152
152
|
|
|
153
153
|
// Prevent React to be incorrectly marked as unused
|
|
154
|
-
// decision: no longer required with React 17
|
|
154
|
+
// decision: no longer required with React >= 17
|
|
155
155
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-uses-react.md
|
|
156
156
|
'react/jsx-uses-react': 'off',
|
|
157
157
|
|
package/src/rules/typescript.mjs
CHANGED
|
@@ -54,7 +54,7 @@ export default {
|
|
|
54
54
|
'no-throw-literal': 'off',
|
|
55
55
|
|
|
56
56
|
// decision: this conflicts with @typescript-eslint/init-declarations
|
|
57
|
-
'no-undef-init': '
|
|
57
|
+
'no-undef-init': 'off',
|
|
58
58
|
|
|
59
59
|
// decision: prefer @typescript-eslint/no-unused-expressions
|
|
60
60
|
'no-unused-expressions': 'off',
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"undefined": false,
|
|
65
65
|
"unescape": false,
|
|
66
66
|
},
|
|
67
|
-
"parser": "typescript-eslint/parser@8.
|
|
67
|
+
"parser": "typescript-eslint/parser@8.53.1",
|
|
68
68
|
"parserOptions": {
|
|
69
69
|
"requireConfigFile": false,
|
|
70
70
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"filenames",
|
|
81
81
|
"import",
|
|
82
82
|
"js:@eslint/js@9.39.2",
|
|
83
|
-
"prettier:eslint-plugin-prettier@5.5.
|
|
83
|
+
"prettier:eslint-plugin-prettier@5.5.5",
|
|
84
84
|
"promise",
|
|
85
85
|
],
|
|
86
86
|
"rules": {
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
],
|
|
123
123
|
"@stylistic/dot-location": [
|
|
124
124
|
0,
|
|
125
|
+
"object",
|
|
125
126
|
],
|
|
126
127
|
"@stylistic/eol-last": [
|
|
127
128
|
0,
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"undefined": false,
|
|
65
65
|
"unescape": false,
|
|
66
66
|
},
|
|
67
|
-
"parser": "typescript-eslint/parser@8.
|
|
67
|
+
"parser": "typescript-eslint/parser@8.53.1",
|
|
68
68
|
"parserOptions": {
|
|
69
69
|
"ecmaVersion": 2024,
|
|
70
70
|
"project": "./tsconfig.json",
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"plugins": [
|
|
79
79
|
"@",
|
|
80
80
|
"@stylistic",
|
|
81
|
-
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.
|
|
81
|
+
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.53.1",
|
|
82
82
|
"barrel-files:eslint-plugin-barrel-files@3.0.1",
|
|
83
83
|
"filenames",
|
|
84
84
|
"import",
|
|
85
|
-
"prettier:eslint-plugin-prettier@5.5.
|
|
85
|
+
"prettier:eslint-plugin-prettier@5.5.5",
|
|
86
86
|
"promise",
|
|
87
87
|
],
|
|
88
88
|
"rules": {
|
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
],
|
|
125
125
|
"@stylistic/dot-location": [
|
|
126
126
|
0,
|
|
127
|
+
"object",
|
|
127
128
|
],
|
|
128
129
|
"@stylistic/eol-last": [
|
|
129
130
|
0,
|
|
@@ -2039,7 +2040,7 @@
|
|
|
2039
2040
|
},
|
|
2040
2041
|
],
|
|
2041
2042
|
"no-undef-init": [
|
|
2042
|
-
|
|
2043
|
+
0,
|
|
2043
2044
|
],
|
|
2044
2045
|
"no-undefined": [
|
|
2045
2046
|
0,
|