@open-turo/eslint-config-typescript 18.1.43 → 19.0.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.
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# Breaking changes in v19
|
|
2
|
+
|
|
3
|
+
- `eslint-plugin-sonarjs` upgrade from v3 to v4 results in a corresponding major version change due to configuration changes. As codified in snapshots:
|
|
4
|
+
|
|
5
|
+
```diff
|
|
6
|
+
diff --git a/test/__snapshots__/test.spec.js.snap b/test/__snapshots__/test.spec.js.snap
|
|
7
|
+
index 8ed40e6..591c39e 100644
|
|
8
|
+
--- a/test/__snapshots__/test.spec.js.snap
|
|
9
|
+
+++ b/test/__snapshots__/test.spec.js.snap
|
|
10
|
+
@@ -1702,9 +1702,6 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
11
|
+
"sonarjs/class-prototype": [
|
|
12
|
+
0,
|
|
13
|
+
],
|
|
14
|
+
- "sonarjs/code-eval": [
|
|
15
|
+
- 2,
|
|
16
|
+
- ],
|
|
17
|
+
"sonarjs/cognitive-complexity": [
|
|
18
|
+
2,
|
|
19
|
+
15,
|
|
20
|
+
@@ -1802,10 +1799,6 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
21
|
+
"sonarjs/encryption-secure-mode": [
|
|
22
|
+
2,
|
|
23
|
+
],
|
|
24
|
+
- "sonarjs/enforce-trailing-comma": [
|
|
25
|
+
- 0,
|
|
26
|
+
- "always-multiline",
|
|
27
|
+
- ],
|
|
28
|
+
"sonarjs/existing-groups": [
|
|
29
|
+
2,
|
|
30
|
+
],
|
|
31
|
+
@@ -2214,6 +2207,9 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
32
|
+
"sonarjs/no-selector-parameter": [
|
|
33
|
+
2,
|
|
34
|
+
],
|
|
35
|
+
+ "sonarjs/no-session-cookies-on-static-assets": [
|
|
36
|
+
+ 2,
|
|
37
|
+
+ ],
|
|
38
|
+
"sonarjs/no-skipped-tests": [
|
|
39
|
+
2,
|
|
40
|
+
],
|
|
41
|
+
@@ -2412,9 +2408,6 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
42
|
+
"sonarjs/strings-comparison": [
|
|
43
|
+
0,
|
|
44
|
+
],
|
|
45
|
+
- "sonarjs/super-invocation": [
|
|
46
|
+
- 2,
|
|
47
|
+
- ],
|
|
48
|
+
"sonarjs/table-header": [
|
|
49
|
+
2,
|
|
50
|
+
],
|
|
51
|
+
@@ -4761,9 +4754,6 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
52
|
+
"sonarjs/class-prototype": [
|
|
53
|
+
0,
|
|
54
|
+
],
|
|
55
|
+
- "sonarjs/code-eval": [
|
|
56
|
+
- 2,
|
|
57
|
+
- ],
|
|
58
|
+
"sonarjs/cognitive-complexity": [
|
|
59
|
+
2,
|
|
60
|
+
15,
|
|
61
|
+
@@ -4861,10 +4851,6 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
62
|
+
"sonarjs/encryption-secure-mode": [
|
|
63
|
+
2,
|
|
64
|
+
],
|
|
65
|
+
- "sonarjs/enforce-trailing-comma": [
|
|
66
|
+
- 0,
|
|
67
|
+
- "always-multiline",
|
|
68
|
+
- ],
|
|
69
|
+
"sonarjs/existing-groups": [
|
|
70
|
+
2,
|
|
71
|
+
],
|
|
72
|
+
@@ -5273,6 +5259,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
73
|
+
"sonarjs/no-selector-parameter": [
|
|
74
|
+
2,
|
|
75
|
+
],
|
|
76
|
+
+ "sonarjs/no-session-cookies-on-static-assets": [
|
|
77
|
+
+ 2,
|
|
78
|
+
+ ],
|
|
79
|
+
"sonarjs/no-skipped-tests": [
|
|
80
|
+
2,
|
|
81
|
+
],
|
|
82
|
+
@@ -5471,9 +5460,6 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
83
|
+
"sonarjs/strings-comparison": [
|
|
84
|
+
0,
|
|
85
|
+
],
|
|
86
|
+
- "sonarjs/super-invocation": [
|
|
87
|
+
- 2,
|
|
88
|
+
- ],
|
|
89
|
+
"sonarjs/table-header": [
|
|
90
|
+
2,
|
|
91
|
+
],
|
|
92
|
+
@@ -7820,9 +7806,6 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
93
|
+
"sonarjs/class-prototype": [
|
|
94
|
+
0,
|
|
95
|
+
],
|
|
96
|
+
- "sonarjs/code-eval": [
|
|
97
|
+
- 2,
|
|
98
|
+
- ],
|
|
99
|
+
"sonarjs/cognitive-complexity": [
|
|
100
|
+
2,
|
|
101
|
+
15,
|
|
102
|
+
@@ -7920,10 +7903,6 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
103
|
+
"sonarjs/encryption-secure-mode": [
|
|
104
|
+
2,
|
|
105
|
+
],
|
|
106
|
+
- "sonarjs/enforce-trailing-comma": [
|
|
107
|
+
- 0,
|
|
108
|
+
- "always-multiline",
|
|
109
|
+
- ],
|
|
110
|
+
"sonarjs/existing-groups": [
|
|
111
|
+
2,
|
|
112
|
+
],
|
|
113
|
+
@@ -8332,6 +8311,9 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
114
|
+
"sonarjs/no-selector-parameter": [
|
|
115
|
+
2,
|
|
116
|
+
],
|
|
117
|
+
+ "sonarjs/no-session-cookies-on-static-assets": [
|
|
118
|
+
+ 2,
|
|
119
|
+
+ ],
|
|
120
|
+
"sonarjs/no-skipped-tests": [
|
|
121
|
+
2,
|
|
122
|
+
],
|
|
123
|
+
@@ -8530,9 +8512,6 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
124
|
+
"sonarjs/strings-comparison": [
|
|
125
|
+
0,
|
|
126
|
+
],
|
|
127
|
+
- "sonarjs/super-invocation": [
|
|
128
|
+
- 2,
|
|
129
|
+
- ],
|
|
130
|
+
"sonarjs/table-header": [
|
|
131
|
+
2,
|
|
132
|
+
],
|
|
133
|
+
@@ -10879,9 +10858,6 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
134
|
+
"sonarjs/class-prototype": [
|
|
135
|
+
0,
|
|
136
|
+
],
|
|
137
|
+
- "sonarjs/code-eval": [
|
|
138
|
+
- 2,
|
|
139
|
+
- ],
|
|
140
|
+
"sonarjs/cognitive-complexity": [
|
|
141
|
+
2,
|
|
142
|
+
15,
|
|
143
|
+
@@ -10979,10 +10955,6 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
144
|
+
"sonarjs/encryption-secure-mode": [
|
|
145
|
+
2,
|
|
146
|
+
],
|
|
147
|
+
- "sonarjs/enforce-trailing-comma": [
|
|
148
|
+
- 0,
|
|
149
|
+
- "always-multiline",
|
|
150
|
+
- ],
|
|
151
|
+
"sonarjs/existing-groups": [
|
|
152
|
+
2,
|
|
153
|
+
],
|
|
154
|
+
@@ -11391,6 +11363,9 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
155
|
+
"sonarjs/no-selector-parameter": [
|
|
156
|
+
2,
|
|
157
|
+
],
|
|
158
|
+
+ "sonarjs/no-session-cookies-on-static-assets": [
|
|
159
|
+
+ 2,
|
|
160
|
+
+ ],
|
|
161
|
+
"sonarjs/no-skipped-tests": [
|
|
162
|
+
2,
|
|
163
|
+
],
|
|
164
|
+
@@ -11589,9 +11564,6 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
165
|
+
"sonarjs/strings-comparison": [
|
|
166
|
+
0,
|
|
167
|
+
],
|
|
168
|
+
- "sonarjs/super-invocation": [
|
|
169
|
+
- 2,
|
|
170
|
+
- ],
|
|
171
|
+
"sonarjs/table-header": [
|
|
172
|
+
2,
|
|
173
|
+
],
|
|
174
|
+
@@ -14001,9 +13973,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
175
|
+
"sonarjs/class-prototype": [
|
|
176
|
+
"off",
|
|
177
|
+
],
|
|
178
|
+
- "sonarjs/code-eval": [
|
|
179
|
+
- "error",
|
|
180
|
+
- ],
|
|
181
|
+
"sonarjs/cognitive-complexity": [
|
|
182
|
+
"error",
|
|
183
|
+
],
|
|
184
|
+
@@ -14088,9 +14057,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
185
|
+
"sonarjs/encryption-secure-mode": [
|
|
186
|
+
"error",
|
|
187
|
+
],
|
|
188
|
+
- "sonarjs/enforce-trailing-comma": [
|
|
189
|
+
- "off",
|
|
190
|
+
- ],
|
|
191
|
+
"sonarjs/existing-groups": [
|
|
192
|
+
"error",
|
|
193
|
+
],
|
|
194
|
+
@@ -14448,6 +14414,9 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
195
|
+
"sonarjs/no-selector-parameter": [
|
|
196
|
+
"error",
|
|
197
|
+
],
|
|
198
|
+
+ "sonarjs/no-session-cookies-on-static-assets": [
|
|
199
|
+
+ "error",
|
|
200
|
+
+ ],
|
|
201
|
+
"sonarjs/no-skipped-tests": [
|
|
202
|
+
"error",
|
|
203
|
+
],
|
|
204
|
+
@@ -14643,9 +14612,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
205
|
+
"sonarjs/strings-comparison": [
|
|
206
|
+
"off",
|
|
207
|
+
],
|
|
208
|
+
- "sonarjs/super-invocation": [
|
|
209
|
+
- "error",
|
|
210
|
+
- ],
|
|
211
|
+
"sonarjs/table-header": [
|
|
212
|
+
"error",
|
|
213
|
+
],
|
|
214
|
+
```
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@eslint/js": "9.39.2",
|
|
7
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
8
|
-
"@typescript-eslint/parser": "8.
|
|
7
|
+
"@typescript-eslint/eslint-plugin": "8.56.0",
|
|
8
|
+
"@typescript-eslint/parser": "8.56.0",
|
|
9
9
|
"@vitest/eslint-plugin": "1.6.9",
|
|
10
10
|
"eslint-config-prettier": "10.1.8",
|
|
11
11
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"eslint-plugin-n": "17.24.0",
|
|
16
16
|
"eslint-plugin-perfectionist": "4.15.1",
|
|
17
17
|
"eslint-plugin-prettier": "5.5.5",
|
|
18
|
-
"eslint-plugin-sonarjs": "
|
|
18
|
+
"eslint-plugin-sonarjs": "4.0.0",
|
|
19
19
|
"eslint-plugin-unicorn": "56.0.1",
|
|
20
|
-
"typescript-eslint": "8.
|
|
20
|
+
"typescript-eslint": "8.56.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@prettier/plugin-oxc": "0.1.3",
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"repository": "https://github.com/open-turo/eslint-config-typescript",
|
|
59
|
-
"version": "
|
|
60
|
-
"packageManager": "npm@11.10.
|
|
59
|
+
"version": "19.0.0",
|
|
60
|
+
"packageManager": "npm@11.10.1"
|
|
61
61
|
}
|
|
@@ -1702,9 +1702,6 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
|
1702
1702
|
"sonarjs/class-prototype": [
|
|
1703
1703
|
0,
|
|
1704
1704
|
],
|
|
1705
|
-
"sonarjs/code-eval": [
|
|
1706
|
-
2,
|
|
1707
|
-
],
|
|
1708
1705
|
"sonarjs/cognitive-complexity": [
|
|
1709
1706
|
2,
|
|
1710
1707
|
15,
|
|
@@ -1802,10 +1799,6 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
|
1802
1799
|
"sonarjs/encryption-secure-mode": [
|
|
1803
1800
|
2,
|
|
1804
1801
|
],
|
|
1805
|
-
"sonarjs/enforce-trailing-comma": [
|
|
1806
|
-
0,
|
|
1807
|
-
"always-multiline",
|
|
1808
|
-
],
|
|
1809
1802
|
"sonarjs/existing-groups": [
|
|
1810
1803
|
2,
|
|
1811
1804
|
],
|
|
@@ -2214,6 +2207,9 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
|
2214
2207
|
"sonarjs/no-selector-parameter": [
|
|
2215
2208
|
2,
|
|
2216
2209
|
],
|
|
2210
|
+
"sonarjs/no-session-cookies-on-static-assets": [
|
|
2211
|
+
2,
|
|
2212
|
+
],
|
|
2217
2213
|
"sonarjs/no-skipped-tests": [
|
|
2218
2214
|
2,
|
|
2219
2215
|
],
|
|
@@ -2412,9 +2408,6 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
|
|
|
2412
2408
|
"sonarjs/strings-comparison": [
|
|
2413
2409
|
0,
|
|
2414
2410
|
],
|
|
2415
|
-
"sonarjs/super-invocation": [
|
|
2416
|
-
2,
|
|
2417
|
-
],
|
|
2418
2411
|
"sonarjs/table-header": [
|
|
2419
2412
|
2,
|
|
2420
2413
|
],
|
|
@@ -4761,9 +4754,6 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
|
4761
4754
|
"sonarjs/class-prototype": [
|
|
4762
4755
|
0,
|
|
4763
4756
|
],
|
|
4764
|
-
"sonarjs/code-eval": [
|
|
4765
|
-
2,
|
|
4766
|
-
],
|
|
4767
4757
|
"sonarjs/cognitive-complexity": [
|
|
4768
4758
|
2,
|
|
4769
4759
|
15,
|
|
@@ -4861,10 +4851,6 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
|
4861
4851
|
"sonarjs/encryption-secure-mode": [
|
|
4862
4852
|
2,
|
|
4863
4853
|
],
|
|
4864
|
-
"sonarjs/enforce-trailing-comma": [
|
|
4865
|
-
0,
|
|
4866
|
-
"always-multiline",
|
|
4867
|
-
],
|
|
4868
4854
|
"sonarjs/existing-groups": [
|
|
4869
4855
|
2,
|
|
4870
4856
|
],
|
|
@@ -5273,6 +5259,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
|
5273
5259
|
"sonarjs/no-selector-parameter": [
|
|
5274
5260
|
2,
|
|
5275
5261
|
],
|
|
5262
|
+
"sonarjs/no-session-cookies-on-static-assets": [
|
|
5263
|
+
2,
|
|
5264
|
+
],
|
|
5276
5265
|
"sonarjs/no-skipped-tests": [
|
|
5277
5266
|
2,
|
|
5278
5267
|
],
|
|
@@ -5471,9 +5460,6 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
|
|
|
5471
5460
|
"sonarjs/strings-comparison": [
|
|
5472
5461
|
0,
|
|
5473
5462
|
],
|
|
5474
|
-
"sonarjs/super-invocation": [
|
|
5475
|
-
2,
|
|
5476
|
-
],
|
|
5477
5463
|
"sonarjs/table-header": [
|
|
5478
5464
|
2,
|
|
5479
5465
|
],
|
|
@@ -7820,9 +7806,6 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
|
7820
7806
|
"sonarjs/class-prototype": [
|
|
7821
7807
|
0,
|
|
7822
7808
|
],
|
|
7823
|
-
"sonarjs/code-eval": [
|
|
7824
|
-
2,
|
|
7825
|
-
],
|
|
7826
7809
|
"sonarjs/cognitive-complexity": [
|
|
7827
7810
|
2,
|
|
7828
7811
|
15,
|
|
@@ -7920,10 +7903,6 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
|
7920
7903
|
"sonarjs/encryption-secure-mode": [
|
|
7921
7904
|
2,
|
|
7922
7905
|
],
|
|
7923
|
-
"sonarjs/enforce-trailing-comma": [
|
|
7924
|
-
0,
|
|
7925
|
-
"always-multiline",
|
|
7926
|
-
],
|
|
7927
7906
|
"sonarjs/existing-groups": [
|
|
7928
7907
|
2,
|
|
7929
7908
|
],
|
|
@@ -8332,6 +8311,9 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
|
8332
8311
|
"sonarjs/no-selector-parameter": [
|
|
8333
8312
|
2,
|
|
8334
8313
|
],
|
|
8314
|
+
"sonarjs/no-session-cookies-on-static-assets": [
|
|
8315
|
+
2,
|
|
8316
|
+
],
|
|
8335
8317
|
"sonarjs/no-skipped-tests": [
|
|
8336
8318
|
2,
|
|
8337
8319
|
],
|
|
@@ -8530,9 +8512,6 @@ exports[`validate config the flat config with vitest is correct for index.cjs 1`
|
|
|
8530
8512
|
"sonarjs/strings-comparison": [
|
|
8531
8513
|
0,
|
|
8532
8514
|
],
|
|
8533
|
-
"sonarjs/super-invocation": [
|
|
8534
|
-
2,
|
|
8535
|
-
],
|
|
8536
8515
|
"sonarjs/table-header": [
|
|
8537
8516
|
2,
|
|
8538
8517
|
],
|
|
@@ -10879,9 +10858,6 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
|
10879
10858
|
"sonarjs/class-prototype": [
|
|
10880
10859
|
0,
|
|
10881
10860
|
],
|
|
10882
|
-
"sonarjs/code-eval": [
|
|
10883
|
-
2,
|
|
10884
|
-
],
|
|
10885
10861
|
"sonarjs/cognitive-complexity": [
|
|
10886
10862
|
2,
|
|
10887
10863
|
15,
|
|
@@ -10979,10 +10955,6 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
|
10979
10955
|
"sonarjs/encryption-secure-mode": [
|
|
10980
10956
|
2,
|
|
10981
10957
|
],
|
|
10982
|
-
"sonarjs/enforce-trailing-comma": [
|
|
10983
|
-
0,
|
|
10984
|
-
"always-multiline",
|
|
10985
|
-
],
|
|
10986
10958
|
"sonarjs/existing-groups": [
|
|
10987
10959
|
2,
|
|
10988
10960
|
],
|
|
@@ -11391,6 +11363,9 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
|
11391
11363
|
"sonarjs/no-selector-parameter": [
|
|
11392
11364
|
2,
|
|
11393
11365
|
],
|
|
11366
|
+
"sonarjs/no-session-cookies-on-static-assets": [
|
|
11367
|
+
2,
|
|
11368
|
+
],
|
|
11394
11369
|
"sonarjs/no-skipped-tests": [
|
|
11395
11370
|
2,
|
|
11396
11371
|
],
|
|
@@ -11589,9 +11564,6 @@ exports[`validate config the flat config with vitest is correct for index.mjs 1`
|
|
|
11589
11564
|
"sonarjs/strings-comparison": [
|
|
11590
11565
|
0,
|
|
11591
11566
|
],
|
|
11592
|
-
"sonarjs/super-invocation": [
|
|
11593
|
-
2,
|
|
11594
|
-
],
|
|
11595
11567
|
"sonarjs/table-header": [
|
|
11596
11568
|
2,
|
|
11597
11569
|
],
|
|
@@ -14001,9 +13973,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
|
14001
13973
|
"sonarjs/class-prototype": [
|
|
14002
13974
|
"off",
|
|
14003
13975
|
],
|
|
14004
|
-
"sonarjs/code-eval": [
|
|
14005
|
-
"error",
|
|
14006
|
-
],
|
|
14007
13976
|
"sonarjs/cognitive-complexity": [
|
|
14008
13977
|
"error",
|
|
14009
13978
|
],
|
|
@@ -14088,9 +14057,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
|
14088
14057
|
"sonarjs/encryption-secure-mode": [
|
|
14089
14058
|
"error",
|
|
14090
14059
|
],
|
|
14091
|
-
"sonarjs/enforce-trailing-comma": [
|
|
14092
|
-
"off",
|
|
14093
|
-
],
|
|
14094
14060
|
"sonarjs/existing-groups": [
|
|
14095
14061
|
"error",
|
|
14096
14062
|
],
|
|
@@ -14448,6 +14414,9 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
|
14448
14414
|
"sonarjs/no-selector-parameter": [
|
|
14449
14415
|
"error",
|
|
14450
14416
|
],
|
|
14417
|
+
"sonarjs/no-session-cookies-on-static-assets": [
|
|
14418
|
+
"error",
|
|
14419
|
+
],
|
|
14451
14420
|
"sonarjs/no-skipped-tests": [
|
|
14452
14421
|
"error",
|
|
14453
14422
|
],
|
|
@@ -14643,9 +14612,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
|
|
|
14643
14612
|
"sonarjs/strings-comparison": [
|
|
14644
14613
|
"off",
|
|
14645
14614
|
],
|
|
14646
|
-
"sonarjs/super-invocation": [
|
|
14647
|
-
"error",
|
|
14648
|
-
],
|
|
14649
14615
|
"sonarjs/table-header": [
|
|
14650
14616
|
"error",
|
|
14651
14617
|
],
|
|
Binary file
|