@open-turo/eslint-config-react 15.0.4 → 16.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,3 @@
1
+ # Breaking changes in v16
2
+
3
+ - `@open-turo/eslint-config-typescript` bumped from v16 to v17. (`sonarjs/no-invalid-await` no longer in config.)
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": "16.0.8",
6
+ "@open-turo/eslint-config-typescript": "17.0.0",
7
7
  "eslint-plugin-jsx-a11y": "6.10.2",
8
8
  "eslint-plugin-react": "7.37.5",
9
9
  "eslint-plugin-react-compiler": "19.0.0-beta-ebf51a3-20250411",
@@ -14,7 +14,7 @@
14
14
  "devDependencies": {
15
15
  "@types/react": "19.1.8",
16
16
  "eslint": "9.29.0",
17
- "jest": "30.0.0",
17
+ "jest": "30.0.2",
18
18
  "prettier": "3.5.3",
19
19
  "react": "19.1.0"
20
20
  },
@@ -49,5 +49,5 @@
49
49
  "access": "public"
50
50
  },
51
51
  "repository": "https://github.com/open-turo/eslint-config-react",
52
- "version": "15.0.4"
52
+ "version": "16.0.0"
53
53
  }
@@ -1601,6 +1601,10 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1601
1601
  ],
1602
1602
  "sonarjs/arrow-function-convention": [
1603
1603
  0,
1604
+ {
1605
+ "requireBodyBraces": false,
1606
+ "requireParameterParentheses": false,
1607
+ },
1604
1608
  ],
1605
1609
  "sonarjs/assertions-in-tests": [
1606
1610
  2,
@@ -1682,6 +1686,9 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1682
1686
  ],
1683
1687
  "sonarjs/class-name": [
1684
1688
  2,
1689
+ {
1690
+ "format": "^[A-Z][a-zA-Z0-9]*$",
1691
+ },
1685
1692
  ],
1686
1693
  "sonarjs/class-prototype": [
1687
1694
  0,
@@ -1691,12 +1698,18 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1691
1698
  ],
1692
1699
  "sonarjs/cognitive-complexity": [
1693
1700
  2,
1701
+ 15,
1694
1702
  ],
1695
1703
  "sonarjs/comma-or-logical-or-case": [
1696
1704
  2,
1697
1705
  ],
1698
1706
  "sonarjs/comment-regex": [
1699
1707
  0,
1708
+ {
1709
+ "flags": "",
1710
+ "message": "The regular expression matches this comment.",
1711
+ "regularExpression": "",
1712
+ },
1700
1713
  ],
1701
1714
  "sonarjs/concise-regex": [
1702
1715
  2,
@@ -1712,6 +1725,10 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1712
1725
  ],
1713
1726
  "sonarjs/content-length": [
1714
1727
  2,
1728
+ {
1729
+ "fileUploadSizeLimit": 8000000,
1730
+ "standardSizeLimit": 2000000,
1731
+ },
1715
1732
  ],
1716
1733
  "sonarjs/content-security-policy": [
1717
1734
  2,
@@ -1730,6 +1747,9 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1730
1747
  ],
1731
1748
  "sonarjs/cyclomatic-complexity": [
1732
1749
  0,
1750
+ {
1751
+ "threshold": 10,
1752
+ },
1733
1753
  ],
1734
1754
  "sonarjs/declarations-in-global-scope": [
1735
1755
  0,
@@ -1772,15 +1792,23 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1772
1792
  ],
1773
1793
  "sonarjs/enforce-trailing-comma": [
1774
1794
  0,
1795
+ "always-multiline",
1775
1796
  ],
1776
1797
  "sonarjs/existing-groups": [
1777
1798
  2,
1778
1799
  ],
1779
1800
  "sonarjs/expression-complexity": [
1780
1801
  0,
1802
+ {
1803
+ "max": 3,
1804
+ },
1781
1805
  ],
1782
1806
  "sonarjs/file-header": [
1783
1807
  0,
1808
+ {
1809
+ "headerFormat": "",
1810
+ "isRegularExpression": false,
1811
+ },
1784
1812
  ],
1785
1813
  "sonarjs/file-name-differ-from-class": [
1786
1814
  0,
@@ -1808,6 +1836,9 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1808
1836
  ],
1809
1837
  "sonarjs/function-name": [
1810
1838
  0,
1839
+ {
1840
+ "format": "^[_a-z][a-zA-Z0-9]*$",
1841
+ },
1811
1842
  ],
1812
1843
  "sonarjs/function-return-type": [
1813
1844
  0,
@@ -1856,24 +1887,40 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1856
1887
  ],
1857
1888
  "sonarjs/max-lines": [
1858
1889
  0,
1890
+ {
1891
+ "maximum": 1000,
1892
+ },
1859
1893
  ],
1860
1894
  "sonarjs/max-lines-per-function": [
1861
1895
  0,
1896
+ {
1897
+ "maximum": 200,
1898
+ },
1862
1899
  ],
1863
1900
  "sonarjs/max-switch-cases": [
1864
1901
  2,
1902
+ 30,
1865
1903
  ],
1866
1904
  "sonarjs/max-union-size": [
1867
1905
  0,
1906
+ {
1907
+ "threshold": 3,
1908
+ },
1868
1909
  ],
1869
1910
  "sonarjs/misplaced-loop-counter": [
1870
1911
  2,
1871
1912
  ],
1872
1913
  "sonarjs/nested-control-flow": [
1873
1914
  0,
1915
+ {
1916
+ "maximumNestingLevel": 3,
1917
+ },
1874
1918
  ],
1875
1919
  "sonarjs/new-operator-misuse": [
1876
1920
  2,
1921
+ {
1922
+ "considerJSDoc": false,
1923
+ },
1877
1924
  ],
1878
1925
  "sonarjs/no-all-duplicated-branches": [
1879
1926
  2,
@@ -1931,6 +1978,10 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1931
1978
  ],
1932
1979
  "sonarjs/no-duplicate-string": [
1933
1980
  0,
1981
+ {
1982
+ "ignoreStrings": "application/json",
1983
+ "threshold": 3,
1984
+ },
1934
1985
  ],
1935
1986
  "sonarjs/no-duplicated-branches": [
1936
1987
  2,
@@ -1988,9 +2039,21 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
1988
2039
  ],
1989
2040
  "sonarjs/no-hardcoded-passwords": [
1990
2041
  2,
2042
+ {
2043
+ "passwordWords": [
2044
+ "password",
2045
+ "pwd",
2046
+ "passwd",
2047
+ "passphrase",
2048
+ ],
2049
+ },
1991
2050
  ],
1992
2051
  "sonarjs/no-hardcoded-secrets": [
1993
2052
  2,
2053
+ {
2054
+ "randomnessSensibility": 5,
2055
+ "secretWords": "api[_.-]?key,auth,credential,secret,token",
2056
+ },
1994
2057
  ],
1995
2058
  "sonarjs/no-hook-setter-in-body": [
1996
2059
  2,
@@ -2003,6 +2066,7 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
2003
2066
  ],
2004
2067
  "sonarjs/no-identical-functions": [
2005
2068
  2,
2069
+ 3,
2006
2070
  ],
2007
2071
  "sonarjs/no-ignored-exceptions": [
2008
2072
  0,
@@ -2012,6 +2076,9 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
2012
2076
  ],
2013
2077
  "sonarjs/no-implicit-dependencies": [
2014
2078
  0,
2079
+ {
2080
+ "whitelist": [],
2081
+ },
2015
2082
  ],
2016
2083
  "sonarjs/no-implicit-global": [
2017
2084
  2,
@@ -2033,9 +2100,11 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
2033
2100
  ],
2034
2101
  "sonarjs/no-intrusive-permissions": [
2035
2102
  2,
2036
- ],
2037
- "sonarjs/no-invalid-await": [
2038
- 2,
2103
+ {
2104
+ "permissions": [
2105
+ "geolocation",
2106
+ ],
2107
+ },
2039
2108
  ],
2040
2109
  "sonarjs/no-invalid-regexp": [
2041
2110
  2,
@@ -2297,6 +2366,9 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
2297
2366
  ],
2298
2367
  "sonarjs/regex-complexity": [
2299
2368
  2,
2369
+ {
2370
+ "threshold": 20,
2371
+ },
2300
2372
  ],
2301
2373
  "sonarjs/regular-expr": [
2302
2374
  0,
@@ -2387,6 +2459,9 @@ exports[`validate config the flat config is correct for index.cjs 1`] = `
2387
2459
  ],
2388
2460
  "sonarjs/variable-name": [
2389
2461
  0,
2462
+ {
2463
+ "format": "^[_$A-Za-z][$A-Za-z0-9]*$|^[_$A-Z][_$A-Z0-9]+$",
2464
+ },
2390
2465
  ],
2391
2466
  "sonarjs/void-use": [
2392
2467
  2,
@@ -4594,6 +4669,10 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4594
4669
  ],
4595
4670
  "sonarjs/arrow-function-convention": [
4596
4671
  0,
4672
+ {
4673
+ "requireBodyBraces": false,
4674
+ "requireParameterParentheses": false,
4675
+ },
4597
4676
  ],
4598
4677
  "sonarjs/assertions-in-tests": [
4599
4678
  2,
@@ -4675,6 +4754,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4675
4754
  ],
4676
4755
  "sonarjs/class-name": [
4677
4756
  2,
4757
+ {
4758
+ "format": "^[A-Z][a-zA-Z0-9]*$",
4759
+ },
4678
4760
  ],
4679
4761
  "sonarjs/class-prototype": [
4680
4762
  0,
@@ -4684,12 +4766,18 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4684
4766
  ],
4685
4767
  "sonarjs/cognitive-complexity": [
4686
4768
  2,
4769
+ 15,
4687
4770
  ],
4688
4771
  "sonarjs/comma-or-logical-or-case": [
4689
4772
  2,
4690
4773
  ],
4691
4774
  "sonarjs/comment-regex": [
4692
4775
  0,
4776
+ {
4777
+ "flags": "",
4778
+ "message": "The regular expression matches this comment.",
4779
+ "regularExpression": "",
4780
+ },
4693
4781
  ],
4694
4782
  "sonarjs/concise-regex": [
4695
4783
  2,
@@ -4705,6 +4793,10 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4705
4793
  ],
4706
4794
  "sonarjs/content-length": [
4707
4795
  2,
4796
+ {
4797
+ "fileUploadSizeLimit": 8000000,
4798
+ "standardSizeLimit": 2000000,
4799
+ },
4708
4800
  ],
4709
4801
  "sonarjs/content-security-policy": [
4710
4802
  2,
@@ -4723,6 +4815,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4723
4815
  ],
4724
4816
  "sonarjs/cyclomatic-complexity": [
4725
4817
  0,
4818
+ {
4819
+ "threshold": 10,
4820
+ },
4726
4821
  ],
4727
4822
  "sonarjs/declarations-in-global-scope": [
4728
4823
  0,
@@ -4765,15 +4860,23 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4765
4860
  ],
4766
4861
  "sonarjs/enforce-trailing-comma": [
4767
4862
  0,
4863
+ "always-multiline",
4768
4864
  ],
4769
4865
  "sonarjs/existing-groups": [
4770
4866
  2,
4771
4867
  ],
4772
4868
  "sonarjs/expression-complexity": [
4773
4869
  0,
4870
+ {
4871
+ "max": 3,
4872
+ },
4774
4873
  ],
4775
4874
  "sonarjs/file-header": [
4776
4875
  0,
4876
+ {
4877
+ "headerFormat": "",
4878
+ "isRegularExpression": false,
4879
+ },
4777
4880
  ],
4778
4881
  "sonarjs/file-name-differ-from-class": [
4779
4882
  0,
@@ -4801,6 +4904,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4801
4904
  ],
4802
4905
  "sonarjs/function-name": [
4803
4906
  0,
4907
+ {
4908
+ "format": "^[_a-z][a-zA-Z0-9]*$",
4909
+ },
4804
4910
  ],
4805
4911
  "sonarjs/function-return-type": [
4806
4912
  0,
@@ -4849,24 +4955,40 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4849
4955
  ],
4850
4956
  "sonarjs/max-lines": [
4851
4957
  0,
4958
+ {
4959
+ "maximum": 1000,
4960
+ },
4852
4961
  ],
4853
4962
  "sonarjs/max-lines-per-function": [
4854
4963
  0,
4964
+ {
4965
+ "maximum": 200,
4966
+ },
4855
4967
  ],
4856
4968
  "sonarjs/max-switch-cases": [
4857
4969
  2,
4970
+ 30,
4858
4971
  ],
4859
4972
  "sonarjs/max-union-size": [
4860
4973
  0,
4974
+ {
4975
+ "threshold": 3,
4976
+ },
4861
4977
  ],
4862
4978
  "sonarjs/misplaced-loop-counter": [
4863
4979
  2,
4864
4980
  ],
4865
4981
  "sonarjs/nested-control-flow": [
4866
4982
  0,
4983
+ {
4984
+ "maximumNestingLevel": 3,
4985
+ },
4867
4986
  ],
4868
4987
  "sonarjs/new-operator-misuse": [
4869
4988
  2,
4989
+ {
4990
+ "considerJSDoc": false,
4991
+ },
4870
4992
  ],
4871
4993
  "sonarjs/no-all-duplicated-branches": [
4872
4994
  2,
@@ -4924,6 +5046,10 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4924
5046
  ],
4925
5047
  "sonarjs/no-duplicate-string": [
4926
5048
  0,
5049
+ {
5050
+ "ignoreStrings": "application/json",
5051
+ "threshold": 3,
5052
+ },
4927
5053
  ],
4928
5054
  "sonarjs/no-duplicated-branches": [
4929
5055
  2,
@@ -4981,9 +5107,21 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4981
5107
  ],
4982
5108
  "sonarjs/no-hardcoded-passwords": [
4983
5109
  2,
5110
+ {
5111
+ "passwordWords": [
5112
+ "password",
5113
+ "pwd",
5114
+ "passwd",
5115
+ "passphrase",
5116
+ ],
5117
+ },
4984
5118
  ],
4985
5119
  "sonarjs/no-hardcoded-secrets": [
4986
5120
  2,
5121
+ {
5122
+ "randomnessSensibility": 5,
5123
+ "secretWords": "api[_.-]?key,auth,credential,secret,token",
5124
+ },
4987
5125
  ],
4988
5126
  "sonarjs/no-hook-setter-in-body": [
4989
5127
  2,
@@ -4996,6 +5134,7 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
4996
5134
  ],
4997
5135
  "sonarjs/no-identical-functions": [
4998
5136
  2,
5137
+ 3,
4999
5138
  ],
5000
5139
  "sonarjs/no-ignored-exceptions": [
5001
5140
  0,
@@ -5005,6 +5144,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
5005
5144
  ],
5006
5145
  "sonarjs/no-implicit-dependencies": [
5007
5146
  0,
5147
+ {
5148
+ "whitelist": [],
5149
+ },
5008
5150
  ],
5009
5151
  "sonarjs/no-implicit-global": [
5010
5152
  2,
@@ -5026,9 +5168,11 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
5026
5168
  ],
5027
5169
  "sonarjs/no-intrusive-permissions": [
5028
5170
  2,
5029
- ],
5030
- "sonarjs/no-invalid-await": [
5031
- 2,
5171
+ {
5172
+ "permissions": [
5173
+ "geolocation",
5174
+ ],
5175
+ },
5032
5176
  ],
5033
5177
  "sonarjs/no-invalid-regexp": [
5034
5178
  2,
@@ -5290,6 +5434,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
5290
5434
  ],
5291
5435
  "sonarjs/regex-complexity": [
5292
5436
  2,
5437
+ {
5438
+ "threshold": 20,
5439
+ },
5293
5440
  ],
5294
5441
  "sonarjs/regular-expr": [
5295
5442
  0,
@@ -5380,6 +5527,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = `
5380
5527
  ],
5381
5528
  "sonarjs/variable-name": [
5382
5529
  0,
5530
+ {
5531
+ "format": "^[_$A-Za-z][$A-Za-z0-9]*$|^[_$A-Z][_$A-Z0-9]+$",
5532
+ },
5383
5533
  ],
5384
5534
  "sonarjs/void-use": [
5385
5535
  2,
@@ -8445,9 +8595,6 @@ exports[`validate config the legacy recommended config is correct 1`] = `
8445
8595
  "sonarjs/no-intrusive-permissions": [
8446
8596
  "error",
8447
8597
  ],
8448
- "sonarjs/no-invalid-await": [
8449
- "error",
8450
- ],
8451
8598
  "sonarjs/no-invalid-regexp": [
8452
8599
  "error",
8453
8600
  ],