@open-turo/eslint-config-react 19.0.10 → 20.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,132 @@
1
+ # Breaking changes in v20
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 d404760..032574e 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
+ @@ -2220,6 +2213,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
+ @@ -2424,9 +2420,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
+ @@ -4785,9 +4778,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
+ @@ -4885,10 +4875,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
+ @@ -5303,6 +5289,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
+ @@ -5507,9 +5496,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
+ @@ -8329,9 +8315,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
93
+ "sonarjs/class-prototype": [
94
+ "off",
95
+ ],
96
+ - "sonarjs/code-eval": [
97
+ - "error",
98
+ - ],
99
+ "sonarjs/cognitive-complexity": [
100
+ "error",
101
+ ],
102
+ @@ -8416,9 +8399,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
103
+ "sonarjs/encryption-secure-mode": [
104
+ "error",
105
+ ],
106
+ - "sonarjs/enforce-trailing-comma": [
107
+ - "off",
108
+ - ],
109
+ "sonarjs/existing-groups": [
110
+ "error",
111
+ ],
112
+ @@ -8782,6 +8762,9 @@ exports[`validate config the legacy recommended config is correct 1`] = `
113
+ "sonarjs/no-selector-parameter": [
114
+ "error",
115
+ ],
116
+ + "sonarjs/no-session-cookies-on-static-assets": [
117
+ + "error",
118
+ + ],
119
+ "sonarjs/no-skipped-tests": [
120
+ "error",
121
+ ],
122
+ @@ -8983,9 +8966,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
123
+ "sonarjs/strings-comparison": [
124
+ "off",
125
+ ],
126
+ - "sonarjs/super-invocation": [
127
+ - "error",
128
+ - ],
129
+ "sonarjs/table-header": [
130
+ "error",
131
+ ],
132
+ ```
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Turo eslint configuration for react",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@open-turo/eslint-config-typescript": "18.1.44",
6
+ "@open-turo/eslint-config-typescript": "19.0.0",
7
7
  "eslint-plugin-jsx-a11y": "6.10.2",
8
8
  "eslint-plugin-react": "7.37.5",
9
9
  "eslint-plugin-react-hooks": "7.0.1",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@types/react": "19.2.14",
15
- "eslint": "9.39.2",
15
+ "eslint": "9.39.3",
16
16
  "jest": "30.2.0",
17
17
  "prettier": "3.8.1",
18
18
  "react": "19.2.4"
@@ -48,5 +48,5 @@
48
48
  "access": "public"
49
49
  },
50
50
  "repository": "https://github.com/open-turo/eslint-config-react",
51
- "version": "19.0.10"
51
+ "version": "20.0.0"
52
52
  }
@@ -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
  ],
@@ -2220,6 +2213,9 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
2220
2213
  "sonarjs/no-selector-parameter": [
2221
2214
  2,
2222
2215
  ],
2216
+ "sonarjs/no-session-cookies-on-static-assets": [
2217
+ 2,
2218
+ ],
2223
2219
  "sonarjs/no-skipped-tests": [
2224
2220
  2,
2225
2221
  ],
@@ -2424,9 +2420,6 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
2424
2420
  "sonarjs/strings-comparison": [
2425
2421
  0,
2426
2422
  ],
2427
- "sonarjs/super-invocation": [
2428
- 2,
2429
- ],
2430
2423
  "sonarjs/table-header": [
2431
2424
  2,
2432
2425
  ],
@@ -4785,9 +4778,6 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4785
4778
  "sonarjs/class-prototype": [
4786
4779
  0,
4787
4780
  ],
4788
- "sonarjs/code-eval": [
4789
- 2,
4790
- ],
4791
4781
  "sonarjs/cognitive-complexity": [
4792
4782
  2,
4793
4783
  15,
@@ -4885,10 +4875,6 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4885
4875
  "sonarjs/encryption-secure-mode": [
4886
4876
  2,
4887
4877
  ],
4888
- "sonarjs/enforce-trailing-comma": [
4889
- 0,
4890
- "always-multiline",
4891
- ],
4892
4878
  "sonarjs/existing-groups": [
4893
4879
  2,
4894
4880
  ],
@@ -5303,6 +5289,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
5303
5289
  "sonarjs/no-selector-parameter": [
5304
5290
  2,
5305
5291
  ],
5292
+ "sonarjs/no-session-cookies-on-static-assets": [
5293
+ 2,
5294
+ ],
5306
5295
  "sonarjs/no-skipped-tests": [
5307
5296
  2,
5308
5297
  ],
@@ -5507,9 +5496,6 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
5507
5496
  "sonarjs/strings-comparison": [
5508
5497
  0,
5509
5498
  ],
5510
- "sonarjs/super-invocation": [
5511
- 2,
5512
- ],
5513
5499
  "sonarjs/table-header": [
5514
5500
  2,
5515
5501
  ],
@@ -8329,9 +8315,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
8329
8315
  "sonarjs/class-prototype": [
8330
8316
  "off",
8331
8317
  ],
8332
- "sonarjs/code-eval": [
8333
- "error",
8334
- ],
8335
8318
  "sonarjs/cognitive-complexity": [
8336
8319
  "error",
8337
8320
  ],
@@ -8416,9 +8399,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
8416
8399
  "sonarjs/encryption-secure-mode": [
8417
8400
  "error",
8418
8401
  ],
8419
- "sonarjs/enforce-trailing-comma": [
8420
- "off",
8421
- ],
8422
8402
  "sonarjs/existing-groups": [
8423
8403
  "error",
8424
8404
  ],
@@ -8782,6 +8762,9 @@ exports[`validate config the legacy recommended config is correct 1`] = `
8782
8762
  "sonarjs/no-selector-parameter": [
8783
8763
  "error",
8784
8764
  ],
8765
+ "sonarjs/no-session-cookies-on-static-assets": [
8766
+ "error",
8767
+ ],
8785
8768
  "sonarjs/no-skipped-tests": [
8786
8769
  "error",
8787
8770
  ],
@@ -8983,9 +8966,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
8983
8966
  "sonarjs/strings-comparison": [
8984
8967
  "off",
8985
8968
  ],
8986
- "sonarjs/super-invocation": [
8987
- "error",
8988
- ],
8989
8969
  "sonarjs/table-header": [
8990
8970
  "error",
8991
8971
  ],