@wistia/eslint-config 2.4.5 → 2.4.6
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,11 @@
|
|
|
1
1
|
# @wistia/eslint-config
|
|
2
2
|
|
|
3
|
+
## 2.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#460](https://github.com/wistia/eslint-config/pull/460) [`f64171a`](https://github.com/wistia/eslint-config/commit/f64171a08af79506c27f8612511285ad2e253d24) Thanks [@okize](https://github.com/okize)! - fix: disable `@typescript-eslint/init-declarations` because conflict with `no-useless-assignment`
|
|
8
|
+
|
|
3
9
|
## 2.4.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.6",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"packageManager": "yarn@4.12.0",
|
|
6
6
|
"type": "module",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@eslint/compat": "^2.0.3",
|
|
43
43
|
"@eslint/js": "^10.0.1",
|
|
44
44
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
|
46
|
-
"@typescript-eslint/parser": "^8.57.2",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.57.3-alpha.2",
|
|
46
|
+
"@typescript-eslint/parser": "^8.57.3-alpha.2",
|
|
47
47
|
"@vitest/eslint-plugin": "^1.6.13",
|
|
48
48
|
"confusing-browser-globals": "^1.0.11",
|
|
49
49
|
"eslint-import-resolver-typescript": "^4.4.4",
|
package/src/rules/typescript.mjs
CHANGED
|
@@ -204,7 +204,9 @@ export default {
|
|
|
204
204
|
|
|
205
205
|
// Require or disallow initialization in variable declarations
|
|
206
206
|
// https://typescript-eslint.io/rules/init-declarations
|
|
207
|
-
|
|
207
|
+
// decision: disabled because it conflicts with `no-useless-assignment` — forcing initializers on
|
|
208
|
+
// `let` declarations that are immediately overwritten creates dead stores and obscures real bugs
|
|
209
|
+
'@typescript-eslint/init-declarations': 'off',
|
|
208
210
|
|
|
209
211
|
// Enforce a maximum number of parameters in function definitions
|
|
210
212
|
// https://typescript-eslint.io/rules/max-params
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"undefined": false,
|
|
65
65
|
"unescape": false,
|
|
66
66
|
},
|
|
67
|
-
"parser": "typescript-eslint/parser@8.57.2",
|
|
67
|
+
"parser": "typescript-eslint/parser@8.57.3-alpha.2",
|
|
68
68
|
"parserOptions": {
|
|
69
69
|
"ecmaVersion": 2024,
|
|
70
70
|
"project": "./tsconfig.json",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"plugins": [
|
|
79
79
|
"@",
|
|
80
80
|
"@stylistic:@stylistic/eslint-plugin@5.10.0",
|
|
81
|
-
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.57.2",
|
|
81
|
+
"@typescript-eslint:@typescript-eslint/eslint-plugin@8.57.3-alpha.2",
|
|
82
82
|
"barrel-files:eslint-plugin-barrel-files@3.0.1",
|
|
83
83
|
"filenames",
|
|
84
84
|
"import-x:eslint-plugin-import-x@4.16.2",
|
|
@@ -737,7 +737,7 @@
|
|
|
737
737
|
2,
|
|
738
738
|
],
|
|
739
739
|
"@typescript-eslint/init-declarations": [
|
|
740
|
-
|
|
740
|
+
0,
|
|
741
741
|
],
|
|
742
742
|
"@typescript-eslint/max-params": [
|
|
743
743
|
0,
|