@st1ggy/linter-config 8.0.0 → 10.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.
- package/README.md +94 -34
- package/data/linter-config-inventory.json +451 -216
- package/data/oxlint-config-inventory.json +1075 -1074
- package/data/oxlint-rule-map.json +5329 -2075
- package/data/oxlint-source-inventory.json +8175 -5661
- package/docs/OXLINT_RULE_MAPPING.md +213 -105
- package/docs/RULE_MAPPING.md +2 -2
- package/package.json +110 -19
- package/scripts/README.md +9 -6
- package/scripts/init-angular-ox.sh +4 -0
- package/scripts/init-nuxt-ox.sh +4 -0
- package/scripts/init-vue-ox.sh +4 -0
- package/scripts/linter-init-core.mjs +32 -15
- package/scripts/linter-init.mjs +4 -2
- package/src/eslint/configs/config.common.js +4 -1
- package/src/eslint/configs/config.import.js +1 -1
- package/src/eslint/configs/config.prettier.js +1 -1
- package/src/eslint/configs/config.react.js +19 -26
- package/src/eslint/configs/config.solid.js +1 -1
- package/src/eslint/configs/config.sonarjs.js +1 -1
- package/src/eslint/configs/config.typescript.js +6 -0
- package/src/eslint/configs/config.unicorn.js +8 -19
- package/src/eslint/configs/import-plugin.js +48 -0
- package/src/eslint/configs/svelte-stack.js +5 -12
- package/src/eslint/eslint.config.angular-ox.js +26 -0
- package/src/eslint/eslint.config.astro-ox.js +3 -0
- package/src/eslint/eslint.config.nuxt-ox.js +4 -0
- package/src/eslint/eslint.config.svelte-ox.js +4 -0
- package/src/eslint/eslint.config.vue-ox.js +17 -0
- package/src/eslint/ox-supplement.d.ts +39 -0
- package/src/oxfmt/index.d.ts +24 -0
- package/src/oxfmt/oxfmt.config.angular.js +3 -0
- package/src/oxfmt/oxfmt.config.astro.js +3 -0
- package/src/oxfmt/oxfmt.config.common.js +9 -1
- package/src/oxfmt/oxfmt.config.svelte.js +3 -0
- package/src/oxlint/configs/config.astro.js +134 -176
- package/src/oxlint/configs/config.common.js +107 -151
- package/src/oxlint/configs/config.next.js +365 -300
- package/src/oxlint/configs/config.react.js +365 -300
- package/src/oxlint/configs/config.solid.js +157 -223
- package/src/oxlint/configs/config.svelte.js +121 -190
- package/src/oxlint/create-config.js +1 -1
- package/src/oxlint/framework-rules.js +79 -0
- package/src/oxlint/index.d.ts +24 -0
- package/src/oxlint/oxlint.config.angular.js +14 -0
- package/src/oxlint/oxlint.config.nuxt.js +24 -0
- package/src/oxlint/oxlint.config.vue.js +8 -0
- package/src/oxlint/plugins/angular.js +1 -0
- package/src/oxlint/plugins/import-x.js +1 -1
- package/src/oxlint/plugins/nuxt.js +1 -0
- package/src/oxlint/plugins/react.js +1 -1
- package/src/oxlint/stacks.js +22 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-
|
|
3
|
-
"source": "@st1ggy/linter-config@
|
|
2
|
+
"generatedAt": "2026-11-03T12:39:25.811Z",
|
|
3
|
+
"source": "@st1ggy/linter-config@9.0.0 (local tree)",
|
|
4
4
|
"linterConfigRoot": "/Users/dnbragin/Projects/personal/linter-config",
|
|
5
5
|
"flatConfigs": {
|
|
6
6
|
"eslint-common": {
|
|
7
7
|
"module": "src/eslint/eslint.config.common.js",
|
|
8
8
|
"sampleFile": "src/examples/example.ts",
|
|
9
|
-
"ruleCount":
|
|
9
|
+
"ruleCount": 1137,
|
|
10
10
|
"rules": {
|
|
11
11
|
"@babel/object-curly-spacing": "off",
|
|
12
12
|
"@babel/semi": "off",
|
|
@@ -626,6 +626,7 @@
|
|
|
626
626
|
],
|
|
627
627
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
628
628
|
"@typescript-eslint/array-type": "error",
|
|
629
|
+
"@typescript-eslint/await-thenable": "error",
|
|
629
630
|
"@typescript-eslint/ban-ts-comment": [
|
|
630
631
|
"error",
|
|
631
632
|
{
|
|
@@ -672,8 +673,10 @@
|
|
|
672
673
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
673
674
|
"@typescript-eslint/no-extra-parens": "off",
|
|
674
675
|
"@typescript-eslint/no-extra-semi": "off",
|
|
676
|
+
"@typescript-eslint/no-floating-promises": "error",
|
|
675
677
|
"@typescript-eslint/no-inferrable-types": "error",
|
|
676
678
|
"@typescript-eslint/no-misused-new": "error",
|
|
679
|
+
"@typescript-eslint/no-misused-promises": "error",
|
|
677
680
|
"@typescript-eslint/no-namespace": "error",
|
|
678
681
|
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
679
682
|
"@typescript-eslint/no-require-imports": "error",
|
|
@@ -684,7 +687,9 @@
|
|
|
684
687
|
}
|
|
685
688
|
],
|
|
686
689
|
"@typescript-eslint/no-this-alias": "error",
|
|
690
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
|
|
687
691
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
692
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "warn",
|
|
688
693
|
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
689
694
|
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
690
695
|
"@typescript-eslint/no-unused-expressions": [
|
|
@@ -707,6 +712,12 @@
|
|
|
707
712
|
"@typescript-eslint/prefer-for-of": "error",
|
|
708
713
|
"@typescript-eslint/prefer-function-type": "error",
|
|
709
714
|
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
715
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
716
|
+
"warn",
|
|
717
|
+
{
|
|
718
|
+
"ignorePrimitives": true
|
|
719
|
+
}
|
|
720
|
+
],
|
|
710
721
|
"@typescript-eslint/quotes": "off",
|
|
711
722
|
"@typescript-eslint/semi": "off",
|
|
712
723
|
"@typescript-eslint/space-before-blocks": "off",
|
|
@@ -758,6 +769,13 @@
|
|
|
758
769
|
],
|
|
759
770
|
"dot-location": "off",
|
|
760
771
|
"eol-last": "off",
|
|
772
|
+
"eqeqeq": [
|
|
773
|
+
"error",
|
|
774
|
+
"always",
|
|
775
|
+
{
|
|
776
|
+
"null": "ignore"
|
|
777
|
+
}
|
|
778
|
+
],
|
|
761
779
|
"flowtype/boolean-style": "off",
|
|
762
780
|
"flowtype/delimiter-dangle": "off",
|
|
763
781
|
"flowtype/generic-spacing": "off",
|
|
@@ -863,11 +881,15 @@
|
|
|
863
881
|
"off",
|
|
864
882
|
"always"
|
|
865
883
|
],
|
|
884
|
+
"max-depth": [
|
|
885
|
+
"warn",
|
|
886
|
+
4
|
|
887
|
+
],
|
|
866
888
|
"max-len": "off",
|
|
867
889
|
"max-statements-per-line": "off",
|
|
868
890
|
"multiline-ternary": "off",
|
|
869
891
|
"new-parens": "off",
|
|
870
|
-
"newline-before-return": "
|
|
892
|
+
"newline-before-return": "off",
|
|
871
893
|
"newline-per-chained-call": "off",
|
|
872
894
|
"no-array-constructor": "off",
|
|
873
895
|
"no-arrow-condition": "off",
|
|
@@ -906,6 +928,12 @@
|
|
|
906
928
|
"no-dupe-else-if": "error",
|
|
907
929
|
"no-dupe-keys": "off",
|
|
908
930
|
"no-duplicate-case": "error",
|
|
931
|
+
"no-else-return": [
|
|
932
|
+
"warn",
|
|
933
|
+
{
|
|
934
|
+
"allowElseIf": false
|
|
935
|
+
}
|
|
936
|
+
],
|
|
909
937
|
"no-empty": [
|
|
910
938
|
"error",
|
|
911
939
|
{
|
|
@@ -1188,6 +1216,7 @@
|
|
|
1188
1216
|
"sonarjs/assertions-in-test-cases": "error",
|
|
1189
1217
|
"sonarjs/assertions-in-tests": "error",
|
|
1190
1218
|
"sonarjs/async-test-assertions": "error",
|
|
1219
|
+
"sonarjs/avoid-mutating-nested-properties-of-shallow-clones": "error",
|
|
1191
1220
|
"sonarjs/aws-apigateway-public-api": "error",
|
|
1192
1221
|
"sonarjs/aws-ec2-rds-dms-public": "error",
|
|
1193
1222
|
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
|
|
@@ -1232,6 +1261,7 @@
|
|
|
1232
1261
|
"flags": ""
|
|
1233
1262
|
}
|
|
1234
1263
|
],
|
|
1264
|
+
"sonarjs/composite-assertions": "off",
|
|
1235
1265
|
"sonarjs/concise-regex": "error",
|
|
1236
1266
|
"sonarjs/conditional-indentation": "off",
|
|
1237
1267
|
"sonarjs/confidential-information-logging": "off",
|
|
@@ -1362,10 +1392,12 @@
|
|
|
1362
1392
|
"sonarjs/no-commented-code": "off",
|
|
1363
1393
|
"sonarjs/no-control-regex": "error",
|
|
1364
1394
|
"sonarjs/no-dead-store": "error",
|
|
1395
|
+
"sonarjs/no-debounce-throttle-in-render": "error",
|
|
1365
1396
|
"sonarjs/no-debug-commands-in-ui-tests": "error",
|
|
1366
1397
|
"sonarjs/no-default-utility-imports": "error",
|
|
1367
1398
|
"sonarjs/no-delete-var": "error",
|
|
1368
1399
|
"sonarjs/no-duplicate-in-composite": "error",
|
|
1400
|
+
"sonarjs/no-duplicate-parameterized-test-case": "error",
|
|
1369
1401
|
"sonarjs/no-duplicate-string": [
|
|
1370
1402
|
"off",
|
|
1371
1403
|
{
|
|
@@ -1381,6 +1413,7 @@
|
|
|
1381
1413
|
"sonarjs/no-empty-character-class": "error",
|
|
1382
1414
|
"sonarjs/no-empty-collection": "error",
|
|
1383
1415
|
"sonarjs/no-empty-group": "error",
|
|
1416
|
+
"sonarjs/no-empty-parameterized-test-dataset": "error",
|
|
1384
1417
|
"sonarjs/no-empty-test-file": "error",
|
|
1385
1418
|
"sonarjs/no-empty-test-title": "error",
|
|
1386
1419
|
"sonarjs/no-equals-in-for-termination": "error",
|
|
@@ -1454,19 +1487,21 @@
|
|
|
1454
1487
|
"sonarjs/no-mime-sniff": "error",
|
|
1455
1488
|
"sonarjs/no-misleading-array-reverse": "error",
|
|
1456
1489
|
"sonarjs/no-misleading-character-class": "error",
|
|
1457
|
-
"sonarjs/no-mixed-completion-style": "
|
|
1490
|
+
"sonarjs/no-mixed-completion-style": "off",
|
|
1458
1491
|
"sonarjs/no-mixed-content": "off",
|
|
1492
|
+
"sonarjs/no-mutate-reactive-state-in-updated-hook": "error",
|
|
1459
1493
|
"sonarjs/no-nested-assignment": "error",
|
|
1460
1494
|
"sonarjs/no-nested-conditional": "error",
|
|
1461
1495
|
"sonarjs/no-nested-functions": [
|
|
1462
1496
|
"error",
|
|
1463
1497
|
{
|
|
1464
|
-
"threshold":
|
|
1498
|
+
"threshold": 5
|
|
1465
1499
|
}
|
|
1466
1500
|
],
|
|
1467
1501
|
"sonarjs/no-nested-incdec": "off",
|
|
1468
1502
|
"sonarjs/no-nested-switch": "off",
|
|
1469
1503
|
"sonarjs/no-nested-template-literals": "error",
|
|
1504
|
+
"sonarjs/no-networkidle-wait": "off",
|
|
1470
1505
|
"sonarjs/no-os-command-from-path": "error",
|
|
1471
1506
|
"sonarjs/no-parameter-reassignment": "error",
|
|
1472
1507
|
"sonarjs/no-primitive-wrappers": "error",
|
|
@@ -1506,6 +1541,8 @@
|
|
|
1506
1541
|
"sonarjs/no-useless-intersection": "error",
|
|
1507
1542
|
"sonarjs/no-useless-react-setstate": "error",
|
|
1508
1543
|
"sonarjs/no-variable-usage-before-declaration": "off",
|
|
1544
|
+
"sonarjs/no-vue-class-component": "error",
|
|
1545
|
+
"sonarjs/no-vue-mixins": "error",
|
|
1509
1546
|
"sonarjs/no-weak-cipher": "error",
|
|
1510
1547
|
"sonarjs/no-weak-keys": "error",
|
|
1511
1548
|
"sonarjs/no-wildcard-import": "off",
|
|
@@ -1517,8 +1554,11 @@
|
|
|
1517
1554
|
"sonarjs/os-command": "off",
|
|
1518
1555
|
"sonarjs/parameterized-tests": "error",
|
|
1519
1556
|
"sonarjs/post-message": "error",
|
|
1557
|
+
"sonarjs/prefer-cypress-should": "error",
|
|
1520
1558
|
"sonarjs/prefer-default-last": "error",
|
|
1521
1559
|
"sonarjs/prefer-immediate-return": "off",
|
|
1560
|
+
"sonarjs/prefer-native-axios-alternative": "error",
|
|
1561
|
+
"sonarjs/prefer-native-jquery-alternative": "error",
|
|
1522
1562
|
"sonarjs/prefer-native-lodash-alternative": "error",
|
|
1523
1563
|
"sonarjs/prefer-object-literal": "off",
|
|
1524
1564
|
"sonarjs/prefer-promise-shorthand": "error",
|
|
@@ -1552,10 +1592,13 @@
|
|
|
1552
1592
|
"sonarjs/strict-transport-security": "error",
|
|
1553
1593
|
"sonarjs/strings-comparison": "off",
|
|
1554
1594
|
"sonarjs/super-linear-regex": "error",
|
|
1595
|
+
"sonarjs/synchronous-exception-assertions": "error",
|
|
1555
1596
|
"sonarjs/synchronous-suite-callback": "error",
|
|
1556
1597
|
"sonarjs/table-header": "error",
|
|
1557
1598
|
"sonarjs/table-header-reference": "error",
|
|
1558
1599
|
"sonarjs/test-check-exception": "error",
|
|
1600
|
+
"sonarjs/testing-library-prefer-query-by-disappearance": "error",
|
|
1601
|
+
"sonarjs/testing-library-query-assertion": "error",
|
|
1559
1602
|
"sonarjs/todo-tag": "warn",
|
|
1560
1603
|
"sonarjs/too-many-break-or-continue-in-loop": "off",
|
|
1561
1604
|
"sonarjs/unicode-aware-regex": "off",
|
|
@@ -1574,6 +1617,7 @@
|
|
|
1574
1617
|
"format": "^[_$A-Za-z][$A-Za-z0-9]*$|^[_$A-Z][_$A-Z0-9]+$"
|
|
1575
1618
|
}
|
|
1576
1619
|
],
|
|
1620
|
+
"sonarjs/vitest-mock-at-module-scope": "error",
|
|
1577
1621
|
"sonarjs/void-use": "error",
|
|
1578
1622
|
"sonarjs/weak-ssl": "error",
|
|
1579
1623
|
"sonarjs/web-sql-database": "off",
|
|
@@ -1673,7 +1717,7 @@
|
|
|
1673
1717
|
"logical"
|
|
1674
1718
|
],
|
|
1675
1719
|
"unicorn/consistent-date-clone": "error",
|
|
1676
|
-
"unicorn/consistent-destructuring": "
|
|
1720
|
+
"unicorn/consistent-destructuring": "off",
|
|
1677
1721
|
"unicorn/consistent-empty-array-spread": "error",
|
|
1678
1722
|
"unicorn/consistent-existence-index-check": "error",
|
|
1679
1723
|
"unicorn/consistent-export-decorator-position": [
|
|
@@ -1794,20 +1838,8 @@
|
|
|
1794
1838
|
}
|
|
1795
1839
|
],
|
|
1796
1840
|
"unicorn/name-replacements": [
|
|
1797
|
-
"
|
|
1798
|
-
{
|
|
1799
|
-
"replacements": {
|
|
1800
|
-
"dev": false,
|
|
1801
|
-
"prod": false,
|
|
1802
|
-
"props": false,
|
|
1803
|
-
"ref": false,
|
|
1804
|
-
"refs": false,
|
|
1805
|
-
"args": false,
|
|
1806
|
-
"params": false,
|
|
1807
|
-
"utils": false,
|
|
1808
|
-
"env": false
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1841
|
+
"off",
|
|
1842
|
+
{}
|
|
1811
1843
|
],
|
|
1812
1844
|
"unicorn/new-for-builtins": "error",
|
|
1813
1845
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
@@ -2009,7 +2041,7 @@
|
|
|
2009
2041
|
"unicorn/no-unsafe-sqlite-interpolation": "error",
|
|
2010
2042
|
"unicorn/no-unsafe-string-replacement": "error",
|
|
2011
2043
|
"unicorn/no-unused-array-method-return": "error",
|
|
2012
|
-
"unicorn/no-unused-properties": "
|
|
2044
|
+
"unicorn/no-unused-properties": "off",
|
|
2013
2045
|
"unicorn/no-useless-boolean-cast": "error",
|
|
2014
2046
|
"unicorn/no-useless-coercion": "error",
|
|
2015
2047
|
"unicorn/no-useless-collection-argument": "error",
|
|
@@ -2469,10 +2501,92 @@
|
|
|
2469
2501
|
"eslint-react": {
|
|
2470
2502
|
"module": "src/eslint/eslint.config.react.js",
|
|
2471
2503
|
"sampleFile": "src/examples/example.ts",
|
|
2472
|
-
"ruleCount":
|
|
2504
|
+
"ruleCount": 1224,
|
|
2473
2505
|
"rules": {
|
|
2474
2506
|
"@babel/object-curly-spacing": "off",
|
|
2475
2507
|
"@babel/semi": "off",
|
|
2508
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
|
|
2509
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
|
|
2510
|
+
"@eslint-react/dom-no-find-dom-node": "error",
|
|
2511
|
+
"@eslint-react/dom-no-flush-sync": "error",
|
|
2512
|
+
"@eslint-react/dom-no-hydrate": "error",
|
|
2513
|
+
"@eslint-react/dom-no-missing-button-type": "error",
|
|
2514
|
+
"@eslint-react/dom-no-render": "error",
|
|
2515
|
+
"@eslint-react/dom-no-render-return-value": "error",
|
|
2516
|
+
"@eslint-react/dom-no-script-url": "warn",
|
|
2517
|
+
"@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
|
|
2518
|
+
"@eslint-react/dom-no-use-form-state": "error",
|
|
2519
|
+
"@eslint-react/dom-no-void-elements-with-children": "error",
|
|
2520
|
+
"@eslint-react/error-boundaries": "off",
|
|
2521
|
+
"@eslint-react/exhaustive-deps": "off",
|
|
2522
|
+
"@eslint-react/jsx-no-children-prop": "warn",
|
|
2523
|
+
"@eslint-react/jsx-no-children-prop-with-children": "error",
|
|
2524
|
+
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
2525
|
+
"@eslint-react/jsx-no-key-after-spread": "error",
|
|
2526
|
+
"@eslint-react/jsx-no-leaked-dollar": "warn",
|
|
2527
|
+
"@eslint-react/jsx-no-leaked-semicolon": "warn",
|
|
2528
|
+
"@eslint-react/jsx-no-namespace": "error",
|
|
2529
|
+
"@eslint-react/jsx-no-useless-fragment": [
|
|
2530
|
+
"error",
|
|
2531
|
+
{
|
|
2532
|
+
"allowEmptyFragment": false,
|
|
2533
|
+
"allowExpressions": true
|
|
2534
|
+
}
|
|
2535
|
+
],
|
|
2536
|
+
"@eslint-react/naming-convention-context-name": "warn",
|
|
2537
|
+
"@eslint-react/naming-convention-id-name": "warn",
|
|
2538
|
+
"@eslint-react/naming-convention-ref-name": "warn",
|
|
2539
|
+
"@eslint-react/no-access-state-in-setstate": "error",
|
|
2540
|
+
"@eslint-react/no-array-index-key": "warn",
|
|
2541
|
+
"@eslint-react/no-children-count": "warn",
|
|
2542
|
+
"@eslint-react/no-children-for-each": "warn",
|
|
2543
|
+
"@eslint-react/no-children-map": "warn",
|
|
2544
|
+
"@eslint-react/no-children-only": "warn",
|
|
2545
|
+
"@eslint-react/no-children-to-array": "warn",
|
|
2546
|
+
"@eslint-react/no-clone-element": "warn",
|
|
2547
|
+
"@eslint-react/no-component-will-mount": "error",
|
|
2548
|
+
"@eslint-react/no-component-will-receive-props": "error",
|
|
2549
|
+
"@eslint-react/no-component-will-update": "error",
|
|
2550
|
+
"@eslint-react/no-context-provider": "warn",
|
|
2551
|
+
"@eslint-react/no-create-ref": "error",
|
|
2552
|
+
"@eslint-react/no-direct-mutation-state": "error",
|
|
2553
|
+
"@eslint-react/no-forward-ref": "warn",
|
|
2554
|
+
"@eslint-react/no-missing-component-display-name": "error",
|
|
2555
|
+
"@eslint-react/no-missing-key": "error",
|
|
2556
|
+
"@eslint-react/no-nested-component-definitions": "error",
|
|
2557
|
+
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
2558
|
+
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
2559
|
+
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
2560
|
+
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
2561
|
+
"@eslint-react/no-unnecessary-use-prefix": "warn",
|
|
2562
|
+
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
2563
|
+
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
2564
|
+
"@eslint-react/no-unsafe-component-will-update": "warn",
|
|
2565
|
+
"@eslint-react/no-unstable-context-value": "error",
|
|
2566
|
+
"@eslint-react/no-unused-class-component-members": "warn",
|
|
2567
|
+
"@eslint-react/no-use-context": "warn",
|
|
2568
|
+
"@eslint-react/purity": "off",
|
|
2569
|
+
"@eslint-react/rsc-function-definition": "error",
|
|
2570
|
+
"@eslint-react/rules-of-hooks": "off",
|
|
2571
|
+
"@eslint-react/set-state-in-effect": "off",
|
|
2572
|
+
"@eslint-react/set-state-in-render": "off",
|
|
2573
|
+
"@eslint-react/static-components": "off",
|
|
2574
|
+
"@eslint-react/unsupported-syntax": "off",
|
|
2575
|
+
"@eslint-react/use-memo": "off",
|
|
2576
|
+
"@eslint-react/use-state": [
|
|
2577
|
+
"error",
|
|
2578
|
+
{
|
|
2579
|
+
"enforceAssignment": true,
|
|
2580
|
+
"enforceLazyInitialization": true,
|
|
2581
|
+
"enforceSetterName": true
|
|
2582
|
+
}
|
|
2583
|
+
],
|
|
2584
|
+
"@eslint-react/web-api-no-leaked-event-listener": "warn",
|
|
2585
|
+
"@eslint-react/web-api-no-leaked-fetch": "warn",
|
|
2586
|
+
"@eslint-react/web-api-no-leaked-intersection-observer": "warn",
|
|
2587
|
+
"@eslint-react/web-api-no-leaked-interval": "warn",
|
|
2588
|
+
"@eslint-react/web-api-no-leaked-resize-observer": "warn",
|
|
2589
|
+
"@eslint-react/web-api-no-leaked-timeout": "warn",
|
|
2476
2590
|
"@stylistic/array-bracket-newline": "off",
|
|
2477
2591
|
"@stylistic/array-bracket-spacing": [
|
|
2478
2592
|
"off",
|
|
@@ -2704,11 +2818,18 @@
|
|
|
2704
2818
|
"allow": "none"
|
|
2705
2819
|
}
|
|
2706
2820
|
],
|
|
2707
|
-
"@stylistic/jsx-props-no-multi-spaces": "
|
|
2821
|
+
"@stylistic/jsx-props-no-multi-spaces": "off",
|
|
2708
2822
|
"@stylistic/jsx-quotes": [
|
|
2709
2823
|
"off",
|
|
2710
2824
|
"prefer-double"
|
|
2711
2825
|
],
|
|
2826
|
+
"@stylistic/jsx-self-closing-comp": [
|
|
2827
|
+
"error",
|
|
2828
|
+
{
|
|
2829
|
+
"component": true,
|
|
2830
|
+
"html": true
|
|
2831
|
+
}
|
|
2832
|
+
],
|
|
2712
2833
|
"@stylistic/jsx-tag-spacing": [
|
|
2713
2834
|
"error",
|
|
2714
2835
|
{
|
|
@@ -3105,6 +3226,7 @@
|
|
|
3105
3226
|
],
|
|
3106
3227
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
3107
3228
|
"@typescript-eslint/array-type": "error",
|
|
3229
|
+
"@typescript-eslint/await-thenable": "error",
|
|
3108
3230
|
"@typescript-eslint/ban-ts-comment": [
|
|
3109
3231
|
"error",
|
|
3110
3232
|
{
|
|
@@ -3151,8 +3273,10 @@
|
|
|
3151
3273
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
3152
3274
|
"@typescript-eslint/no-extra-parens": "off",
|
|
3153
3275
|
"@typescript-eslint/no-extra-semi": "off",
|
|
3276
|
+
"@typescript-eslint/no-floating-promises": "error",
|
|
3154
3277
|
"@typescript-eslint/no-inferrable-types": "error",
|
|
3155
3278
|
"@typescript-eslint/no-misused-new": "error",
|
|
3279
|
+
"@typescript-eslint/no-misused-promises": "error",
|
|
3156
3280
|
"@typescript-eslint/no-namespace": "error",
|
|
3157
3281
|
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
3158
3282
|
"@typescript-eslint/no-require-imports": "error",
|
|
@@ -3163,7 +3287,9 @@
|
|
|
3163
3287
|
}
|
|
3164
3288
|
],
|
|
3165
3289
|
"@typescript-eslint/no-this-alias": "error",
|
|
3290
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
|
|
3166
3291
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
3292
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "warn",
|
|
3167
3293
|
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
3168
3294
|
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
3169
3295
|
"@typescript-eslint/no-unused-expressions": [
|
|
@@ -3186,6 +3312,12 @@
|
|
|
3186
3312
|
"@typescript-eslint/prefer-for-of": "error",
|
|
3187
3313
|
"@typescript-eslint/prefer-function-type": "error",
|
|
3188
3314
|
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
3315
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
3316
|
+
"warn",
|
|
3317
|
+
{
|
|
3318
|
+
"ignorePrimitives": true
|
|
3319
|
+
}
|
|
3320
|
+
],
|
|
3189
3321
|
"@typescript-eslint/quotes": "off",
|
|
3190
3322
|
"@typescript-eslint/semi": "off",
|
|
3191
3323
|
"@typescript-eslint/space-before-blocks": "off",
|
|
@@ -3237,6 +3369,13 @@
|
|
|
3237
3369
|
],
|
|
3238
3370
|
"dot-location": "off",
|
|
3239
3371
|
"eol-last": "off",
|
|
3372
|
+
"eqeqeq": [
|
|
3373
|
+
"error",
|
|
3374
|
+
"always",
|
|
3375
|
+
{
|
|
3376
|
+
"null": "ignore"
|
|
3377
|
+
}
|
|
3378
|
+
],
|
|
3240
3379
|
"flowtype/boolean-style": "off",
|
|
3241
3380
|
"flowtype/delimiter-dangle": "off",
|
|
3242
3381
|
"flowtype/generic-spacing": "off",
|
|
@@ -3342,11 +3481,15 @@
|
|
|
3342
3481
|
"off",
|
|
3343
3482
|
"always"
|
|
3344
3483
|
],
|
|
3484
|
+
"max-depth": [
|
|
3485
|
+
"warn",
|
|
3486
|
+
4
|
|
3487
|
+
],
|
|
3345
3488
|
"max-len": "off",
|
|
3346
3489
|
"max-statements-per-line": "off",
|
|
3347
3490
|
"multiline-ternary": "off",
|
|
3348
3491
|
"new-parens": "off",
|
|
3349
|
-
"newline-before-return": "
|
|
3492
|
+
"newline-before-return": "off",
|
|
3350
3493
|
"newline-per-chained-call": "off",
|
|
3351
3494
|
"no-array-constructor": "off",
|
|
3352
3495
|
"no-arrow-condition": "off",
|
|
@@ -3385,6 +3528,12 @@
|
|
|
3385
3528
|
"no-dupe-else-if": "error",
|
|
3386
3529
|
"no-dupe-keys": "off",
|
|
3387
3530
|
"no-duplicate-case": "error",
|
|
3531
|
+
"no-else-return": [
|
|
3532
|
+
"warn",
|
|
3533
|
+
{
|
|
3534
|
+
"allowElseIf": false
|
|
3535
|
+
}
|
|
3536
|
+
],
|
|
3388
3537
|
"no-empty": [
|
|
3389
3538
|
"error",
|
|
3390
3539
|
{
|
|
@@ -3646,26 +3795,6 @@
|
|
|
3646
3795
|
"react-hooks/static-components": "error",
|
|
3647
3796
|
"react-hooks/unsupported-syntax": "warn",
|
|
3648
3797
|
"react-hooks/use-memo": "error",
|
|
3649
|
-
"react/boolean-prop-naming": "error",
|
|
3650
|
-
"react/button-has-type": "error",
|
|
3651
|
-
"react/checked-requires-onchange-or-readonly": "error",
|
|
3652
|
-
"react/default-props-match-prop-types": [
|
|
3653
|
-
"error",
|
|
3654
|
-
{
|
|
3655
|
-
"allowRequiredDefaults": true
|
|
3656
|
-
}
|
|
3657
|
-
],
|
|
3658
|
-
"react/destructuring-assignment": "error",
|
|
3659
|
-
"react/display-name": "error",
|
|
3660
|
-
"react/function-component-definition": [
|
|
3661
|
-
"error",
|
|
3662
|
-
{
|
|
3663
|
-
"namedComponents": "arrow-function",
|
|
3664
|
-
"unnamedComponents": "arrow-function"
|
|
3665
|
-
}
|
|
3666
|
-
],
|
|
3667
|
-
"react/hook-use-state": "error",
|
|
3668
|
-
"react/jsx-boolean-value": "error",
|
|
3669
3798
|
"react/jsx-child-element-spacing": "off",
|
|
3670
3799
|
"react/jsx-closing-bracket-location": "off",
|
|
3671
3800
|
"react/jsx-closing-tag-location": "off",
|
|
@@ -3673,49 +3802,15 @@
|
|
|
3673
3802
|
"react/jsx-curly-spacing": "off",
|
|
3674
3803
|
"react/jsx-equals-spacing": "off",
|
|
3675
3804
|
"react/jsx-first-prop-new-line": "off",
|
|
3676
|
-
"react/jsx-fragments": "error",
|
|
3677
|
-
"react/jsx-handler-names": "error",
|
|
3678
3805
|
"react/jsx-indent": "off",
|
|
3679
3806
|
"react/jsx-indent-props": "off",
|
|
3680
|
-
"react/jsx-key": "error",
|
|
3681
3807
|
"react/jsx-max-props-per-line": "off",
|
|
3682
3808
|
"react/jsx-newline": "off",
|
|
3683
|
-
"react/jsx-no-comment-textnodes": "error",
|
|
3684
|
-
"react/jsx-no-constructed-context-values": "error",
|
|
3685
|
-
"react/jsx-no-duplicate-props": "error",
|
|
3686
|
-
"react/jsx-no-leaked-render": "error",
|
|
3687
|
-
"react/jsx-no-target-blank": "error",
|
|
3688
|
-
"react/jsx-no-undef": "error",
|
|
3689
|
-
"react/jsx-no-useless-fragment": "error",
|
|
3690
3809
|
"react/jsx-one-expression-per-line": "off",
|
|
3691
3810
|
"react/jsx-props-no-multi-spaces": "off",
|
|
3692
3811
|
"react/jsx-space-before-closing": "off",
|
|
3693
3812
|
"react/jsx-tag-spacing": "off",
|
|
3694
|
-
"react/jsx-uses-react": "off",
|
|
3695
|
-
"react/jsx-uses-vars": "error",
|
|
3696
3813
|
"react/jsx-wrap-multilines": "off",
|
|
3697
|
-
"react/no-children-prop": "error",
|
|
3698
|
-
"react/no-danger-with-children": "error",
|
|
3699
|
-
"react/no-deprecated": "error",
|
|
3700
|
-
"react/no-direct-mutation-state": "error",
|
|
3701
|
-
"react/no-find-dom-node": "error",
|
|
3702
|
-
"react/no-is-mounted": "error",
|
|
3703
|
-
"react/no-multi-comp": "error",
|
|
3704
|
-
"react/no-render-return-value": "error",
|
|
3705
|
-
"react/no-string-refs": "error",
|
|
3706
|
-
"react/no-unescaped-entities": "error",
|
|
3707
|
-
"react/no-unknown-property": "error",
|
|
3708
|
-
"react/no-unsafe": "off",
|
|
3709
|
-
"react/prop-types": "error",
|
|
3710
|
-
"react/react-in-jsx-scope": "off",
|
|
3711
|
-
"react/require-render-return": "error",
|
|
3712
|
-
"react/self-closing-comp": [
|
|
3713
|
-
"error",
|
|
3714
|
-
{
|
|
3715
|
-
"component": true,
|
|
3716
|
-
"html": true
|
|
3717
|
-
}
|
|
3718
|
-
],
|
|
3719
3814
|
"require-yield": "error",
|
|
3720
3815
|
"rest-spread-spacing": "off",
|
|
3721
3816
|
"semi": "off",
|
|
@@ -3737,6 +3832,7 @@
|
|
|
3737
3832
|
"sonarjs/assertions-in-test-cases": "error",
|
|
3738
3833
|
"sonarjs/assertions-in-tests": "error",
|
|
3739
3834
|
"sonarjs/async-test-assertions": "error",
|
|
3835
|
+
"sonarjs/avoid-mutating-nested-properties-of-shallow-clones": "error",
|
|
3740
3836
|
"sonarjs/aws-apigateway-public-api": "error",
|
|
3741
3837
|
"sonarjs/aws-ec2-rds-dms-public": "error",
|
|
3742
3838
|
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
|
|
@@ -3781,6 +3877,7 @@
|
|
|
3781
3877
|
"flags": ""
|
|
3782
3878
|
}
|
|
3783
3879
|
],
|
|
3880
|
+
"sonarjs/composite-assertions": "off",
|
|
3784
3881
|
"sonarjs/concise-regex": "error",
|
|
3785
3882
|
"sonarjs/conditional-indentation": "off",
|
|
3786
3883
|
"sonarjs/confidential-information-logging": "off",
|
|
@@ -3911,10 +4008,12 @@
|
|
|
3911
4008
|
"sonarjs/no-commented-code": "off",
|
|
3912
4009
|
"sonarjs/no-control-regex": "error",
|
|
3913
4010
|
"sonarjs/no-dead-store": "error",
|
|
4011
|
+
"sonarjs/no-debounce-throttle-in-render": "error",
|
|
3914
4012
|
"sonarjs/no-debug-commands-in-ui-tests": "error",
|
|
3915
4013
|
"sonarjs/no-default-utility-imports": "error",
|
|
3916
4014
|
"sonarjs/no-delete-var": "error",
|
|
3917
4015
|
"sonarjs/no-duplicate-in-composite": "error",
|
|
4016
|
+
"sonarjs/no-duplicate-parameterized-test-case": "error",
|
|
3918
4017
|
"sonarjs/no-duplicate-string": [
|
|
3919
4018
|
"off",
|
|
3920
4019
|
{
|
|
@@ -3930,6 +4029,7 @@
|
|
|
3930
4029
|
"sonarjs/no-empty-character-class": "error",
|
|
3931
4030
|
"sonarjs/no-empty-collection": "error",
|
|
3932
4031
|
"sonarjs/no-empty-group": "error",
|
|
4032
|
+
"sonarjs/no-empty-parameterized-test-dataset": "error",
|
|
3933
4033
|
"sonarjs/no-empty-test-file": "error",
|
|
3934
4034
|
"sonarjs/no-empty-test-title": "error",
|
|
3935
4035
|
"sonarjs/no-equals-in-for-termination": "error",
|
|
@@ -4003,19 +4103,21 @@
|
|
|
4003
4103
|
"sonarjs/no-mime-sniff": "error",
|
|
4004
4104
|
"sonarjs/no-misleading-array-reverse": "error",
|
|
4005
4105
|
"sonarjs/no-misleading-character-class": "error",
|
|
4006
|
-
"sonarjs/no-mixed-completion-style": "
|
|
4106
|
+
"sonarjs/no-mixed-completion-style": "off",
|
|
4007
4107
|
"sonarjs/no-mixed-content": "off",
|
|
4108
|
+
"sonarjs/no-mutate-reactive-state-in-updated-hook": "error",
|
|
4008
4109
|
"sonarjs/no-nested-assignment": "error",
|
|
4009
4110
|
"sonarjs/no-nested-conditional": "error",
|
|
4010
4111
|
"sonarjs/no-nested-functions": [
|
|
4011
4112
|
"error",
|
|
4012
4113
|
{
|
|
4013
|
-
"threshold":
|
|
4114
|
+
"threshold": 5
|
|
4014
4115
|
}
|
|
4015
4116
|
],
|
|
4016
4117
|
"sonarjs/no-nested-incdec": "off",
|
|
4017
4118
|
"sonarjs/no-nested-switch": "off",
|
|
4018
4119
|
"sonarjs/no-nested-template-literals": "error",
|
|
4120
|
+
"sonarjs/no-networkidle-wait": "off",
|
|
4019
4121
|
"sonarjs/no-os-command-from-path": "error",
|
|
4020
4122
|
"sonarjs/no-parameter-reassignment": "error",
|
|
4021
4123
|
"sonarjs/no-primitive-wrappers": "error",
|
|
@@ -4055,6 +4157,8 @@
|
|
|
4055
4157
|
"sonarjs/no-useless-intersection": "error",
|
|
4056
4158
|
"sonarjs/no-useless-react-setstate": "error",
|
|
4057
4159
|
"sonarjs/no-variable-usage-before-declaration": "off",
|
|
4160
|
+
"sonarjs/no-vue-class-component": "error",
|
|
4161
|
+
"sonarjs/no-vue-mixins": "error",
|
|
4058
4162
|
"sonarjs/no-weak-cipher": "error",
|
|
4059
4163
|
"sonarjs/no-weak-keys": "error",
|
|
4060
4164
|
"sonarjs/no-wildcard-import": "off",
|
|
@@ -4066,8 +4170,11 @@
|
|
|
4066
4170
|
"sonarjs/os-command": "off",
|
|
4067
4171
|
"sonarjs/parameterized-tests": "error",
|
|
4068
4172
|
"sonarjs/post-message": "error",
|
|
4173
|
+
"sonarjs/prefer-cypress-should": "error",
|
|
4069
4174
|
"sonarjs/prefer-default-last": "error",
|
|
4070
4175
|
"sonarjs/prefer-immediate-return": "off",
|
|
4176
|
+
"sonarjs/prefer-native-axios-alternative": "error",
|
|
4177
|
+
"sonarjs/prefer-native-jquery-alternative": "error",
|
|
4071
4178
|
"sonarjs/prefer-native-lodash-alternative": "error",
|
|
4072
4179
|
"sonarjs/prefer-object-literal": "off",
|
|
4073
4180
|
"sonarjs/prefer-promise-shorthand": "error",
|
|
@@ -4101,10 +4208,13 @@
|
|
|
4101
4208
|
"sonarjs/strict-transport-security": "error",
|
|
4102
4209
|
"sonarjs/strings-comparison": "off",
|
|
4103
4210
|
"sonarjs/super-linear-regex": "error",
|
|
4211
|
+
"sonarjs/synchronous-exception-assertions": "error",
|
|
4104
4212
|
"sonarjs/synchronous-suite-callback": "error",
|
|
4105
4213
|
"sonarjs/table-header": "error",
|
|
4106
4214
|
"sonarjs/table-header-reference": "error",
|
|
4107
4215
|
"sonarjs/test-check-exception": "error",
|
|
4216
|
+
"sonarjs/testing-library-prefer-query-by-disappearance": "error",
|
|
4217
|
+
"sonarjs/testing-library-query-assertion": "error",
|
|
4108
4218
|
"sonarjs/todo-tag": "warn",
|
|
4109
4219
|
"sonarjs/too-many-break-or-continue-in-loop": "off",
|
|
4110
4220
|
"sonarjs/unicode-aware-regex": "off",
|
|
@@ -4123,6 +4233,7 @@
|
|
|
4123
4233
|
"format": "^[_$A-Za-z][$A-Za-z0-9]*$|^[_$A-Z][_$A-Z0-9]+$"
|
|
4124
4234
|
}
|
|
4125
4235
|
],
|
|
4236
|
+
"sonarjs/vitest-mock-at-module-scope": "error",
|
|
4126
4237
|
"sonarjs/void-use": "error",
|
|
4127
4238
|
"sonarjs/weak-ssl": "error",
|
|
4128
4239
|
"sonarjs/web-sql-database": "off",
|
|
@@ -4222,7 +4333,7 @@
|
|
|
4222
4333
|
"logical"
|
|
4223
4334
|
],
|
|
4224
4335
|
"unicorn/consistent-date-clone": "error",
|
|
4225
|
-
"unicorn/consistent-destructuring": "
|
|
4336
|
+
"unicorn/consistent-destructuring": "off",
|
|
4226
4337
|
"unicorn/consistent-empty-array-spread": "error",
|
|
4227
4338
|
"unicorn/consistent-existence-index-check": "error",
|
|
4228
4339
|
"unicorn/consistent-export-decorator-position": [
|
|
@@ -4343,20 +4454,8 @@
|
|
|
4343
4454
|
}
|
|
4344
4455
|
],
|
|
4345
4456
|
"unicorn/name-replacements": [
|
|
4346
|
-
"
|
|
4347
|
-
{
|
|
4348
|
-
"replacements": {
|
|
4349
|
-
"dev": false,
|
|
4350
|
-
"prod": false,
|
|
4351
|
-
"props": false,
|
|
4352
|
-
"ref": false,
|
|
4353
|
-
"refs": false,
|
|
4354
|
-
"args": false,
|
|
4355
|
-
"params": false,
|
|
4356
|
-
"utils": false,
|
|
4357
|
-
"env": false
|
|
4358
|
-
}
|
|
4359
|
-
}
|
|
4457
|
+
"off",
|
|
4458
|
+
{}
|
|
4360
4459
|
],
|
|
4361
4460
|
"unicorn/new-for-builtins": "error",
|
|
4362
4461
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
@@ -4558,7 +4657,7 @@
|
|
|
4558
4657
|
"unicorn/no-unsafe-sqlite-interpolation": "error",
|
|
4559
4658
|
"unicorn/no-unsafe-string-replacement": "error",
|
|
4560
4659
|
"unicorn/no-unused-array-method-return": "error",
|
|
4561
|
-
"unicorn/no-unused-properties": "
|
|
4660
|
+
"unicorn/no-unused-properties": "off",
|
|
4562
4661
|
"unicorn/no-useless-boolean-cast": "error",
|
|
4563
4662
|
"unicorn/no-useless-coercion": "error",
|
|
4564
4663
|
"unicorn/no-useless-collection-argument": "error",
|
|
@@ -5018,7 +5117,7 @@
|
|
|
5018
5117
|
"eslint-solid": {
|
|
5019
5118
|
"module": "src/eslint/eslint.config.solid.js",
|
|
5020
5119
|
"sampleFile": "src/examples/example.solid.tsx",
|
|
5021
|
-
"ruleCount":
|
|
5120
|
+
"ruleCount": 1158,
|
|
5022
5121
|
"rules": {
|
|
5023
5122
|
"@babel/object-curly-spacing": "off",
|
|
5024
5123
|
"@babel/semi": "off",
|
|
@@ -5654,6 +5753,7 @@
|
|
|
5654
5753
|
],
|
|
5655
5754
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
5656
5755
|
"@typescript-eslint/array-type": "error",
|
|
5756
|
+
"@typescript-eslint/await-thenable": "error",
|
|
5657
5757
|
"@typescript-eslint/ban-ts-comment": [
|
|
5658
5758
|
"error",
|
|
5659
5759
|
{
|
|
@@ -5700,8 +5800,10 @@
|
|
|
5700
5800
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
5701
5801
|
"@typescript-eslint/no-extra-parens": "off",
|
|
5702
5802
|
"@typescript-eslint/no-extra-semi": "off",
|
|
5803
|
+
"@typescript-eslint/no-floating-promises": "error",
|
|
5703
5804
|
"@typescript-eslint/no-inferrable-types": "error",
|
|
5704
5805
|
"@typescript-eslint/no-misused-new": "error",
|
|
5806
|
+
"@typescript-eslint/no-misused-promises": "error",
|
|
5705
5807
|
"@typescript-eslint/no-namespace": "error",
|
|
5706
5808
|
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
5707
5809
|
"@typescript-eslint/no-require-imports": "error",
|
|
@@ -5712,7 +5814,9 @@
|
|
|
5712
5814
|
}
|
|
5713
5815
|
],
|
|
5714
5816
|
"@typescript-eslint/no-this-alias": "error",
|
|
5817
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
|
|
5715
5818
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
5819
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "warn",
|
|
5716
5820
|
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
5717
5821
|
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
5718
5822
|
"@typescript-eslint/no-unused-expressions": [
|
|
@@ -5735,6 +5839,12 @@
|
|
|
5735
5839
|
"@typescript-eslint/prefer-for-of": "error",
|
|
5736
5840
|
"@typescript-eslint/prefer-function-type": "error",
|
|
5737
5841
|
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
5842
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
5843
|
+
"warn",
|
|
5844
|
+
{
|
|
5845
|
+
"ignorePrimitives": true
|
|
5846
|
+
}
|
|
5847
|
+
],
|
|
5738
5848
|
"@typescript-eslint/quotes": "off",
|
|
5739
5849
|
"@typescript-eslint/semi": "off",
|
|
5740
5850
|
"@typescript-eslint/space-before-blocks": "off",
|
|
@@ -5786,6 +5896,13 @@
|
|
|
5786
5896
|
],
|
|
5787
5897
|
"dot-location": "off",
|
|
5788
5898
|
"eol-last": "off",
|
|
5899
|
+
"eqeqeq": [
|
|
5900
|
+
"error",
|
|
5901
|
+
"always",
|
|
5902
|
+
{
|
|
5903
|
+
"null": "ignore"
|
|
5904
|
+
}
|
|
5905
|
+
],
|
|
5789
5906
|
"flowtype/boolean-style": "off",
|
|
5790
5907
|
"flowtype/delimiter-dangle": "off",
|
|
5791
5908
|
"flowtype/generic-spacing": "off",
|
|
@@ -5891,11 +6008,15 @@
|
|
|
5891
6008
|
"off",
|
|
5892
6009
|
"always"
|
|
5893
6010
|
],
|
|
6011
|
+
"max-depth": [
|
|
6012
|
+
"warn",
|
|
6013
|
+
4
|
|
6014
|
+
],
|
|
5894
6015
|
"max-len": "off",
|
|
5895
6016
|
"max-statements-per-line": "off",
|
|
5896
6017
|
"multiline-ternary": "off",
|
|
5897
6018
|
"new-parens": "off",
|
|
5898
|
-
"newline-before-return": "
|
|
6019
|
+
"newline-before-return": "off",
|
|
5899
6020
|
"newline-per-chained-call": "off",
|
|
5900
6021
|
"no-array-constructor": "off",
|
|
5901
6022
|
"no-arrow-condition": "off",
|
|
@@ -5934,6 +6055,12 @@
|
|
|
5934
6055
|
"no-dupe-else-if": "error",
|
|
5935
6056
|
"no-dupe-keys": "off",
|
|
5936
6057
|
"no-duplicate-case": "error",
|
|
6058
|
+
"no-else-return": [
|
|
6059
|
+
"warn",
|
|
6060
|
+
{
|
|
6061
|
+
"allowElseIf": false
|
|
6062
|
+
}
|
|
6063
|
+
],
|
|
5937
6064
|
"no-empty": [
|
|
5938
6065
|
"error",
|
|
5939
6066
|
{
|
|
@@ -6243,6 +6370,7 @@
|
|
|
6243
6370
|
"sonarjs/assertions-in-test-cases": "error",
|
|
6244
6371
|
"sonarjs/assertions-in-tests": "error",
|
|
6245
6372
|
"sonarjs/async-test-assertions": "error",
|
|
6373
|
+
"sonarjs/avoid-mutating-nested-properties-of-shallow-clones": "error",
|
|
6246
6374
|
"sonarjs/aws-apigateway-public-api": "error",
|
|
6247
6375
|
"sonarjs/aws-ec2-rds-dms-public": "error",
|
|
6248
6376
|
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
|
|
@@ -6287,6 +6415,7 @@
|
|
|
6287
6415
|
"flags": ""
|
|
6288
6416
|
}
|
|
6289
6417
|
],
|
|
6418
|
+
"sonarjs/composite-assertions": "off",
|
|
6290
6419
|
"sonarjs/concise-regex": "error",
|
|
6291
6420
|
"sonarjs/conditional-indentation": "off",
|
|
6292
6421
|
"sonarjs/confidential-information-logging": "off",
|
|
@@ -6417,10 +6546,12 @@
|
|
|
6417
6546
|
"sonarjs/no-commented-code": "off",
|
|
6418
6547
|
"sonarjs/no-control-regex": "error",
|
|
6419
6548
|
"sonarjs/no-dead-store": "error",
|
|
6549
|
+
"sonarjs/no-debounce-throttle-in-render": "error",
|
|
6420
6550
|
"sonarjs/no-debug-commands-in-ui-tests": "error",
|
|
6421
6551
|
"sonarjs/no-default-utility-imports": "error",
|
|
6422
6552
|
"sonarjs/no-delete-var": "error",
|
|
6423
6553
|
"sonarjs/no-duplicate-in-composite": "error",
|
|
6554
|
+
"sonarjs/no-duplicate-parameterized-test-case": "error",
|
|
6424
6555
|
"sonarjs/no-duplicate-string": [
|
|
6425
6556
|
"off",
|
|
6426
6557
|
{
|
|
@@ -6436,6 +6567,7 @@
|
|
|
6436
6567
|
"sonarjs/no-empty-character-class": "error",
|
|
6437
6568
|
"sonarjs/no-empty-collection": "error",
|
|
6438
6569
|
"sonarjs/no-empty-group": "error",
|
|
6570
|
+
"sonarjs/no-empty-parameterized-test-dataset": "error",
|
|
6439
6571
|
"sonarjs/no-empty-test-file": "error",
|
|
6440
6572
|
"sonarjs/no-empty-test-title": "error",
|
|
6441
6573
|
"sonarjs/no-equals-in-for-termination": "error",
|
|
@@ -6509,19 +6641,21 @@
|
|
|
6509
6641
|
"sonarjs/no-mime-sniff": "error",
|
|
6510
6642
|
"sonarjs/no-misleading-array-reverse": "error",
|
|
6511
6643
|
"sonarjs/no-misleading-character-class": "error",
|
|
6512
|
-
"sonarjs/no-mixed-completion-style": "
|
|
6644
|
+
"sonarjs/no-mixed-completion-style": "off",
|
|
6513
6645
|
"sonarjs/no-mixed-content": "off",
|
|
6646
|
+
"sonarjs/no-mutate-reactive-state-in-updated-hook": "error",
|
|
6514
6647
|
"sonarjs/no-nested-assignment": "error",
|
|
6515
6648
|
"sonarjs/no-nested-conditional": "error",
|
|
6516
6649
|
"sonarjs/no-nested-functions": [
|
|
6517
6650
|
"error",
|
|
6518
6651
|
{
|
|
6519
|
-
"threshold":
|
|
6652
|
+
"threshold": 5
|
|
6520
6653
|
}
|
|
6521
6654
|
],
|
|
6522
6655
|
"sonarjs/no-nested-incdec": "off",
|
|
6523
6656
|
"sonarjs/no-nested-switch": "off",
|
|
6524
6657
|
"sonarjs/no-nested-template-literals": "error",
|
|
6658
|
+
"sonarjs/no-networkidle-wait": "off",
|
|
6525
6659
|
"sonarjs/no-os-command-from-path": "error",
|
|
6526
6660
|
"sonarjs/no-parameter-reassignment": "error",
|
|
6527
6661
|
"sonarjs/no-primitive-wrappers": "error",
|
|
@@ -6561,6 +6695,8 @@
|
|
|
6561
6695
|
"sonarjs/no-useless-intersection": "error",
|
|
6562
6696
|
"sonarjs/no-useless-react-setstate": "error",
|
|
6563
6697
|
"sonarjs/no-variable-usage-before-declaration": "off",
|
|
6698
|
+
"sonarjs/no-vue-class-component": "error",
|
|
6699
|
+
"sonarjs/no-vue-mixins": "error",
|
|
6564
6700
|
"sonarjs/no-weak-cipher": "error",
|
|
6565
6701
|
"sonarjs/no-weak-keys": "error",
|
|
6566
6702
|
"sonarjs/no-wildcard-import": "off",
|
|
@@ -6572,8 +6708,11 @@
|
|
|
6572
6708
|
"sonarjs/os-command": "off",
|
|
6573
6709
|
"sonarjs/parameterized-tests": "error",
|
|
6574
6710
|
"sonarjs/post-message": "error",
|
|
6711
|
+
"sonarjs/prefer-cypress-should": "error",
|
|
6575
6712
|
"sonarjs/prefer-default-last": "error",
|
|
6576
6713
|
"sonarjs/prefer-immediate-return": "off",
|
|
6714
|
+
"sonarjs/prefer-native-axios-alternative": "error",
|
|
6715
|
+
"sonarjs/prefer-native-jquery-alternative": "error",
|
|
6577
6716
|
"sonarjs/prefer-native-lodash-alternative": "error",
|
|
6578
6717
|
"sonarjs/prefer-object-literal": "off",
|
|
6579
6718
|
"sonarjs/prefer-promise-shorthand": "error",
|
|
@@ -6607,10 +6746,13 @@
|
|
|
6607
6746
|
"sonarjs/strict-transport-security": "error",
|
|
6608
6747
|
"sonarjs/strings-comparison": "off",
|
|
6609
6748
|
"sonarjs/super-linear-regex": "error",
|
|
6749
|
+
"sonarjs/synchronous-exception-assertions": "error",
|
|
6610
6750
|
"sonarjs/synchronous-suite-callback": "error",
|
|
6611
6751
|
"sonarjs/table-header": "error",
|
|
6612
6752
|
"sonarjs/table-header-reference": "error",
|
|
6613
6753
|
"sonarjs/test-check-exception": "error",
|
|
6754
|
+
"sonarjs/testing-library-prefer-query-by-disappearance": "error",
|
|
6755
|
+
"sonarjs/testing-library-query-assertion": "error",
|
|
6614
6756
|
"sonarjs/todo-tag": "warn",
|
|
6615
6757
|
"sonarjs/too-many-break-or-continue-in-loop": "off",
|
|
6616
6758
|
"sonarjs/unicode-aware-regex": "off",
|
|
@@ -6629,6 +6771,7 @@
|
|
|
6629
6771
|
"format": "^[_$A-Za-z][$A-Za-z0-9]*$|^[_$A-Z][_$A-Z0-9]+$"
|
|
6630
6772
|
}
|
|
6631
6773
|
],
|
|
6774
|
+
"sonarjs/vitest-mock-at-module-scope": "error",
|
|
6632
6775
|
"sonarjs/void-use": "error",
|
|
6633
6776
|
"sonarjs/weak-ssl": "error",
|
|
6634
6777
|
"sonarjs/web-sql-database": "off",
|
|
@@ -6728,7 +6871,7 @@
|
|
|
6728
6871
|
"logical"
|
|
6729
6872
|
],
|
|
6730
6873
|
"unicorn/consistent-date-clone": "error",
|
|
6731
|
-
"unicorn/consistent-destructuring": "
|
|
6874
|
+
"unicorn/consistent-destructuring": "off",
|
|
6732
6875
|
"unicorn/consistent-empty-array-spread": "error",
|
|
6733
6876
|
"unicorn/consistent-existence-index-check": "error",
|
|
6734
6877
|
"unicorn/consistent-export-decorator-position": [
|
|
@@ -6849,20 +6992,8 @@
|
|
|
6849
6992
|
}
|
|
6850
6993
|
],
|
|
6851
6994
|
"unicorn/name-replacements": [
|
|
6852
|
-
"
|
|
6853
|
-
{
|
|
6854
|
-
"replacements": {
|
|
6855
|
-
"dev": false,
|
|
6856
|
-
"prod": false,
|
|
6857
|
-
"props": false,
|
|
6858
|
-
"ref": false,
|
|
6859
|
-
"refs": false,
|
|
6860
|
-
"args": false,
|
|
6861
|
-
"params": false,
|
|
6862
|
-
"utils": false,
|
|
6863
|
-
"env": false
|
|
6864
|
-
}
|
|
6865
|
-
}
|
|
6995
|
+
"off",
|
|
6996
|
+
{}
|
|
6866
6997
|
],
|
|
6867
6998
|
"unicorn/new-for-builtins": "error",
|
|
6868
6999
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
@@ -7064,7 +7195,7 @@
|
|
|
7064
7195
|
"unicorn/no-unsafe-sqlite-interpolation": "error",
|
|
7065
7196
|
"unicorn/no-unsafe-string-replacement": "error",
|
|
7066
7197
|
"unicorn/no-unused-array-method-return": "error",
|
|
7067
|
-
"unicorn/no-unused-properties": "
|
|
7198
|
+
"unicorn/no-unused-properties": "off",
|
|
7068
7199
|
"unicorn/no-useless-boolean-cast": "error",
|
|
7069
7200
|
"unicorn/no-useless-coercion": "error",
|
|
7070
7201
|
"unicorn/no-useless-collection-argument": "error",
|
|
@@ -7524,10 +7655,92 @@
|
|
|
7524
7655
|
"eslint-next": {
|
|
7525
7656
|
"module": "src/eslint/eslint.config.next.js",
|
|
7526
7657
|
"sampleFile": "src/examples/example.ts",
|
|
7527
|
-
"ruleCount":
|
|
7658
|
+
"ruleCount": 1246,
|
|
7528
7659
|
"rules": {
|
|
7529
7660
|
"@babel/object-curly-spacing": "off",
|
|
7530
7661
|
"@babel/semi": "off",
|
|
7662
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
|
|
7663
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
|
|
7664
|
+
"@eslint-react/dom-no-find-dom-node": "error",
|
|
7665
|
+
"@eslint-react/dom-no-flush-sync": "error",
|
|
7666
|
+
"@eslint-react/dom-no-hydrate": "error",
|
|
7667
|
+
"@eslint-react/dom-no-missing-button-type": "error",
|
|
7668
|
+
"@eslint-react/dom-no-render": "error",
|
|
7669
|
+
"@eslint-react/dom-no-render-return-value": "error",
|
|
7670
|
+
"@eslint-react/dom-no-script-url": "warn",
|
|
7671
|
+
"@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
|
|
7672
|
+
"@eslint-react/dom-no-use-form-state": "error",
|
|
7673
|
+
"@eslint-react/dom-no-void-elements-with-children": "error",
|
|
7674
|
+
"@eslint-react/error-boundaries": "off",
|
|
7675
|
+
"@eslint-react/exhaustive-deps": "off",
|
|
7676
|
+
"@eslint-react/jsx-no-children-prop": "warn",
|
|
7677
|
+
"@eslint-react/jsx-no-children-prop-with-children": "error",
|
|
7678
|
+
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
7679
|
+
"@eslint-react/jsx-no-key-after-spread": "error",
|
|
7680
|
+
"@eslint-react/jsx-no-leaked-dollar": "warn",
|
|
7681
|
+
"@eslint-react/jsx-no-leaked-semicolon": "warn",
|
|
7682
|
+
"@eslint-react/jsx-no-namespace": "error",
|
|
7683
|
+
"@eslint-react/jsx-no-useless-fragment": [
|
|
7684
|
+
"error",
|
|
7685
|
+
{
|
|
7686
|
+
"allowEmptyFragment": false,
|
|
7687
|
+
"allowExpressions": true
|
|
7688
|
+
}
|
|
7689
|
+
],
|
|
7690
|
+
"@eslint-react/naming-convention-context-name": "warn",
|
|
7691
|
+
"@eslint-react/naming-convention-id-name": "warn",
|
|
7692
|
+
"@eslint-react/naming-convention-ref-name": "warn",
|
|
7693
|
+
"@eslint-react/no-access-state-in-setstate": "error",
|
|
7694
|
+
"@eslint-react/no-array-index-key": "warn",
|
|
7695
|
+
"@eslint-react/no-children-count": "warn",
|
|
7696
|
+
"@eslint-react/no-children-for-each": "warn",
|
|
7697
|
+
"@eslint-react/no-children-map": "warn",
|
|
7698
|
+
"@eslint-react/no-children-only": "warn",
|
|
7699
|
+
"@eslint-react/no-children-to-array": "warn",
|
|
7700
|
+
"@eslint-react/no-clone-element": "warn",
|
|
7701
|
+
"@eslint-react/no-component-will-mount": "error",
|
|
7702
|
+
"@eslint-react/no-component-will-receive-props": "error",
|
|
7703
|
+
"@eslint-react/no-component-will-update": "error",
|
|
7704
|
+
"@eslint-react/no-context-provider": "warn",
|
|
7705
|
+
"@eslint-react/no-create-ref": "error",
|
|
7706
|
+
"@eslint-react/no-direct-mutation-state": "error",
|
|
7707
|
+
"@eslint-react/no-forward-ref": "warn",
|
|
7708
|
+
"@eslint-react/no-missing-component-display-name": "error",
|
|
7709
|
+
"@eslint-react/no-missing-key": "error",
|
|
7710
|
+
"@eslint-react/no-nested-component-definitions": "error",
|
|
7711
|
+
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
7712
|
+
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
7713
|
+
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
7714
|
+
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
7715
|
+
"@eslint-react/no-unnecessary-use-prefix": "warn",
|
|
7716
|
+
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
7717
|
+
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
7718
|
+
"@eslint-react/no-unsafe-component-will-update": "warn",
|
|
7719
|
+
"@eslint-react/no-unstable-context-value": "error",
|
|
7720
|
+
"@eslint-react/no-unused-class-component-members": "warn",
|
|
7721
|
+
"@eslint-react/no-use-context": "warn",
|
|
7722
|
+
"@eslint-react/purity": "off",
|
|
7723
|
+
"@eslint-react/rsc-function-definition": "error",
|
|
7724
|
+
"@eslint-react/rules-of-hooks": "off",
|
|
7725
|
+
"@eslint-react/set-state-in-effect": "off",
|
|
7726
|
+
"@eslint-react/set-state-in-render": "off",
|
|
7727
|
+
"@eslint-react/static-components": "off",
|
|
7728
|
+
"@eslint-react/unsupported-syntax": "off",
|
|
7729
|
+
"@eslint-react/use-memo": "off",
|
|
7730
|
+
"@eslint-react/use-state": [
|
|
7731
|
+
"error",
|
|
7732
|
+
{
|
|
7733
|
+
"enforceAssignment": true,
|
|
7734
|
+
"enforceLazyInitialization": true,
|
|
7735
|
+
"enforceSetterName": true
|
|
7736
|
+
}
|
|
7737
|
+
],
|
|
7738
|
+
"@eslint-react/web-api-no-leaked-event-listener": "warn",
|
|
7739
|
+
"@eslint-react/web-api-no-leaked-fetch": "warn",
|
|
7740
|
+
"@eslint-react/web-api-no-leaked-intersection-observer": "warn",
|
|
7741
|
+
"@eslint-react/web-api-no-leaked-interval": "warn",
|
|
7742
|
+
"@eslint-react/web-api-no-leaked-resize-observer": "warn",
|
|
7743
|
+
"@eslint-react/web-api-no-leaked-timeout": "warn",
|
|
7531
7744
|
"@next/next/google-font-display": "warn",
|
|
7532
7745
|
"@next/next/google-font-preconnect": "warn",
|
|
7533
7746
|
"@next/next/inline-script-id": "error",
|
|
@@ -7781,11 +7994,18 @@
|
|
|
7781
7994
|
"allow": "none"
|
|
7782
7995
|
}
|
|
7783
7996
|
],
|
|
7784
|
-
"@stylistic/jsx-props-no-multi-spaces": "
|
|
7997
|
+
"@stylistic/jsx-props-no-multi-spaces": "off",
|
|
7785
7998
|
"@stylistic/jsx-quotes": [
|
|
7786
7999
|
"off",
|
|
7787
8000
|
"prefer-double"
|
|
7788
8001
|
],
|
|
8002
|
+
"@stylistic/jsx-self-closing-comp": [
|
|
8003
|
+
"error",
|
|
8004
|
+
{
|
|
8005
|
+
"component": true,
|
|
8006
|
+
"html": true
|
|
8007
|
+
}
|
|
8008
|
+
],
|
|
7789
8009
|
"@stylistic/jsx-tag-spacing": [
|
|
7790
8010
|
"error",
|
|
7791
8011
|
{
|
|
@@ -8182,6 +8402,7 @@
|
|
|
8182
8402
|
],
|
|
8183
8403
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
8184
8404
|
"@typescript-eslint/array-type": "error",
|
|
8405
|
+
"@typescript-eslint/await-thenable": "error",
|
|
8185
8406
|
"@typescript-eslint/ban-ts-comment": [
|
|
8186
8407
|
"error",
|
|
8187
8408
|
{
|
|
@@ -8228,8 +8449,10 @@
|
|
|
8228
8449
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
8229
8450
|
"@typescript-eslint/no-extra-parens": "off",
|
|
8230
8451
|
"@typescript-eslint/no-extra-semi": "off",
|
|
8452
|
+
"@typescript-eslint/no-floating-promises": "error",
|
|
8231
8453
|
"@typescript-eslint/no-inferrable-types": "error",
|
|
8232
8454
|
"@typescript-eslint/no-misused-new": "error",
|
|
8455
|
+
"@typescript-eslint/no-misused-promises": "error",
|
|
8233
8456
|
"@typescript-eslint/no-namespace": "error",
|
|
8234
8457
|
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
8235
8458
|
"@typescript-eslint/no-require-imports": "error",
|
|
@@ -8240,7 +8463,9 @@
|
|
|
8240
8463
|
}
|
|
8241
8464
|
],
|
|
8242
8465
|
"@typescript-eslint/no-this-alias": "error",
|
|
8466
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
|
|
8243
8467
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
8468
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "warn",
|
|
8244
8469
|
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
8245
8470
|
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
8246
8471
|
"@typescript-eslint/no-unused-expressions": [
|
|
@@ -8263,6 +8488,12 @@
|
|
|
8263
8488
|
"@typescript-eslint/prefer-for-of": "error",
|
|
8264
8489
|
"@typescript-eslint/prefer-function-type": "error",
|
|
8265
8490
|
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
8491
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
8492
|
+
"warn",
|
|
8493
|
+
{
|
|
8494
|
+
"ignorePrimitives": true
|
|
8495
|
+
}
|
|
8496
|
+
],
|
|
8266
8497
|
"@typescript-eslint/quotes": "off",
|
|
8267
8498
|
"@typescript-eslint/semi": "off",
|
|
8268
8499
|
"@typescript-eslint/space-before-blocks": "off",
|
|
@@ -8314,6 +8545,13 @@
|
|
|
8314
8545
|
],
|
|
8315
8546
|
"dot-location": "off",
|
|
8316
8547
|
"eol-last": "off",
|
|
8548
|
+
"eqeqeq": [
|
|
8549
|
+
"error",
|
|
8550
|
+
"always",
|
|
8551
|
+
{
|
|
8552
|
+
"null": "ignore"
|
|
8553
|
+
}
|
|
8554
|
+
],
|
|
8317
8555
|
"flowtype/boolean-style": "off",
|
|
8318
8556
|
"flowtype/delimiter-dangle": "off",
|
|
8319
8557
|
"flowtype/generic-spacing": "off",
|
|
@@ -8419,11 +8657,15 @@
|
|
|
8419
8657
|
"off",
|
|
8420
8658
|
"always"
|
|
8421
8659
|
],
|
|
8660
|
+
"max-depth": [
|
|
8661
|
+
"warn",
|
|
8662
|
+
4
|
|
8663
|
+
],
|
|
8422
8664
|
"max-len": "off",
|
|
8423
8665
|
"max-statements-per-line": "off",
|
|
8424
8666
|
"multiline-ternary": "off",
|
|
8425
8667
|
"new-parens": "off",
|
|
8426
|
-
"newline-before-return": "
|
|
8668
|
+
"newline-before-return": "off",
|
|
8427
8669
|
"newline-per-chained-call": "off",
|
|
8428
8670
|
"no-array-constructor": "off",
|
|
8429
8671
|
"no-arrow-condition": "off",
|
|
@@ -8462,6 +8704,12 @@
|
|
|
8462
8704
|
"no-dupe-else-if": "error",
|
|
8463
8705
|
"no-dupe-keys": "off",
|
|
8464
8706
|
"no-duplicate-case": "error",
|
|
8707
|
+
"no-else-return": [
|
|
8708
|
+
"warn",
|
|
8709
|
+
{
|
|
8710
|
+
"allowElseIf": false
|
|
8711
|
+
}
|
|
8712
|
+
],
|
|
8465
8713
|
"no-empty": [
|
|
8466
8714
|
"error",
|
|
8467
8715
|
{
|
|
@@ -8723,26 +8971,6 @@
|
|
|
8723
8971
|
"react-hooks/static-components": "error",
|
|
8724
8972
|
"react-hooks/unsupported-syntax": "warn",
|
|
8725
8973
|
"react-hooks/use-memo": "error",
|
|
8726
|
-
"react/boolean-prop-naming": "error",
|
|
8727
|
-
"react/button-has-type": "error",
|
|
8728
|
-
"react/checked-requires-onchange-or-readonly": "error",
|
|
8729
|
-
"react/default-props-match-prop-types": [
|
|
8730
|
-
"error",
|
|
8731
|
-
{
|
|
8732
|
-
"allowRequiredDefaults": true
|
|
8733
|
-
}
|
|
8734
|
-
],
|
|
8735
|
-
"react/destructuring-assignment": "error",
|
|
8736
|
-
"react/display-name": "error",
|
|
8737
|
-
"react/function-component-definition": [
|
|
8738
|
-
"error",
|
|
8739
|
-
{
|
|
8740
|
-
"namedComponents": "arrow-function",
|
|
8741
|
-
"unnamedComponents": "arrow-function"
|
|
8742
|
-
}
|
|
8743
|
-
],
|
|
8744
|
-
"react/hook-use-state": "error",
|
|
8745
|
-
"react/jsx-boolean-value": "error",
|
|
8746
8974
|
"react/jsx-child-element-spacing": "off",
|
|
8747
8975
|
"react/jsx-closing-bracket-location": "off",
|
|
8748
8976
|
"react/jsx-closing-tag-location": "off",
|
|
@@ -8750,49 +8978,15 @@
|
|
|
8750
8978
|
"react/jsx-curly-spacing": "off",
|
|
8751
8979
|
"react/jsx-equals-spacing": "off",
|
|
8752
8980
|
"react/jsx-first-prop-new-line": "off",
|
|
8753
|
-
"react/jsx-fragments": "error",
|
|
8754
|
-
"react/jsx-handler-names": "error",
|
|
8755
8981
|
"react/jsx-indent": "off",
|
|
8756
8982
|
"react/jsx-indent-props": "off",
|
|
8757
|
-
"react/jsx-key": "error",
|
|
8758
8983
|
"react/jsx-max-props-per-line": "off",
|
|
8759
8984
|
"react/jsx-newline": "off",
|
|
8760
|
-
"react/jsx-no-comment-textnodes": "error",
|
|
8761
|
-
"react/jsx-no-constructed-context-values": "error",
|
|
8762
|
-
"react/jsx-no-duplicate-props": "error",
|
|
8763
|
-
"react/jsx-no-leaked-render": "error",
|
|
8764
|
-
"react/jsx-no-target-blank": "error",
|
|
8765
|
-
"react/jsx-no-undef": "error",
|
|
8766
|
-
"react/jsx-no-useless-fragment": "error",
|
|
8767
8985
|
"react/jsx-one-expression-per-line": "off",
|
|
8768
8986
|
"react/jsx-props-no-multi-spaces": "off",
|
|
8769
8987
|
"react/jsx-space-before-closing": "off",
|
|
8770
8988
|
"react/jsx-tag-spacing": "off",
|
|
8771
|
-
"react/jsx-uses-react": "off",
|
|
8772
|
-
"react/jsx-uses-vars": "error",
|
|
8773
8989
|
"react/jsx-wrap-multilines": "off",
|
|
8774
|
-
"react/no-children-prop": "error",
|
|
8775
|
-
"react/no-danger-with-children": "error",
|
|
8776
|
-
"react/no-deprecated": "error",
|
|
8777
|
-
"react/no-direct-mutation-state": "error",
|
|
8778
|
-
"react/no-find-dom-node": "error",
|
|
8779
|
-
"react/no-is-mounted": "error",
|
|
8780
|
-
"react/no-multi-comp": "error",
|
|
8781
|
-
"react/no-render-return-value": "error",
|
|
8782
|
-
"react/no-string-refs": "error",
|
|
8783
|
-
"react/no-unescaped-entities": "error",
|
|
8784
|
-
"react/no-unknown-property": "error",
|
|
8785
|
-
"react/no-unsafe": "off",
|
|
8786
|
-
"react/prop-types": "error",
|
|
8787
|
-
"react/react-in-jsx-scope": "off",
|
|
8788
|
-
"react/require-render-return": "error",
|
|
8789
|
-
"react/self-closing-comp": [
|
|
8790
|
-
"error",
|
|
8791
|
-
{
|
|
8792
|
-
"component": true,
|
|
8793
|
-
"html": true
|
|
8794
|
-
}
|
|
8795
|
-
],
|
|
8796
8990
|
"require-yield": "error",
|
|
8797
8991
|
"rest-spread-spacing": "off",
|
|
8798
8992
|
"semi": "off",
|
|
@@ -8814,6 +9008,7 @@
|
|
|
8814
9008
|
"sonarjs/assertions-in-test-cases": "error",
|
|
8815
9009
|
"sonarjs/assertions-in-tests": "error",
|
|
8816
9010
|
"sonarjs/async-test-assertions": "error",
|
|
9011
|
+
"sonarjs/avoid-mutating-nested-properties-of-shallow-clones": "error",
|
|
8817
9012
|
"sonarjs/aws-apigateway-public-api": "error",
|
|
8818
9013
|
"sonarjs/aws-ec2-rds-dms-public": "error",
|
|
8819
9014
|
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
|
|
@@ -8858,6 +9053,7 @@
|
|
|
8858
9053
|
"flags": ""
|
|
8859
9054
|
}
|
|
8860
9055
|
],
|
|
9056
|
+
"sonarjs/composite-assertions": "off",
|
|
8861
9057
|
"sonarjs/concise-regex": "error",
|
|
8862
9058
|
"sonarjs/conditional-indentation": "off",
|
|
8863
9059
|
"sonarjs/confidential-information-logging": "off",
|
|
@@ -8988,10 +9184,12 @@
|
|
|
8988
9184
|
"sonarjs/no-commented-code": "off",
|
|
8989
9185
|
"sonarjs/no-control-regex": "error",
|
|
8990
9186
|
"sonarjs/no-dead-store": "error",
|
|
9187
|
+
"sonarjs/no-debounce-throttle-in-render": "error",
|
|
8991
9188
|
"sonarjs/no-debug-commands-in-ui-tests": "error",
|
|
8992
9189
|
"sonarjs/no-default-utility-imports": "error",
|
|
8993
9190
|
"sonarjs/no-delete-var": "error",
|
|
8994
9191
|
"sonarjs/no-duplicate-in-composite": "error",
|
|
9192
|
+
"sonarjs/no-duplicate-parameterized-test-case": "error",
|
|
8995
9193
|
"sonarjs/no-duplicate-string": [
|
|
8996
9194
|
"off",
|
|
8997
9195
|
{
|
|
@@ -9007,6 +9205,7 @@
|
|
|
9007
9205
|
"sonarjs/no-empty-character-class": "error",
|
|
9008
9206
|
"sonarjs/no-empty-collection": "error",
|
|
9009
9207
|
"sonarjs/no-empty-group": "error",
|
|
9208
|
+
"sonarjs/no-empty-parameterized-test-dataset": "error",
|
|
9010
9209
|
"sonarjs/no-empty-test-file": "error",
|
|
9011
9210
|
"sonarjs/no-empty-test-title": "error",
|
|
9012
9211
|
"sonarjs/no-equals-in-for-termination": "error",
|
|
@@ -9080,19 +9279,21 @@
|
|
|
9080
9279
|
"sonarjs/no-mime-sniff": "error",
|
|
9081
9280
|
"sonarjs/no-misleading-array-reverse": "error",
|
|
9082
9281
|
"sonarjs/no-misleading-character-class": "error",
|
|
9083
|
-
"sonarjs/no-mixed-completion-style": "
|
|
9282
|
+
"sonarjs/no-mixed-completion-style": "off",
|
|
9084
9283
|
"sonarjs/no-mixed-content": "off",
|
|
9284
|
+
"sonarjs/no-mutate-reactive-state-in-updated-hook": "error",
|
|
9085
9285
|
"sonarjs/no-nested-assignment": "error",
|
|
9086
9286
|
"sonarjs/no-nested-conditional": "error",
|
|
9087
9287
|
"sonarjs/no-nested-functions": [
|
|
9088
9288
|
"error",
|
|
9089
9289
|
{
|
|
9090
|
-
"threshold":
|
|
9290
|
+
"threshold": 5
|
|
9091
9291
|
}
|
|
9092
9292
|
],
|
|
9093
9293
|
"sonarjs/no-nested-incdec": "off",
|
|
9094
9294
|
"sonarjs/no-nested-switch": "off",
|
|
9095
9295
|
"sonarjs/no-nested-template-literals": "error",
|
|
9296
|
+
"sonarjs/no-networkidle-wait": "off",
|
|
9096
9297
|
"sonarjs/no-os-command-from-path": "error",
|
|
9097
9298
|
"sonarjs/no-parameter-reassignment": "error",
|
|
9098
9299
|
"sonarjs/no-primitive-wrappers": "error",
|
|
@@ -9132,6 +9333,8 @@
|
|
|
9132
9333
|
"sonarjs/no-useless-intersection": "error",
|
|
9133
9334
|
"sonarjs/no-useless-react-setstate": "error",
|
|
9134
9335
|
"sonarjs/no-variable-usage-before-declaration": "off",
|
|
9336
|
+
"sonarjs/no-vue-class-component": "error",
|
|
9337
|
+
"sonarjs/no-vue-mixins": "error",
|
|
9135
9338
|
"sonarjs/no-weak-cipher": "error",
|
|
9136
9339
|
"sonarjs/no-weak-keys": "error",
|
|
9137
9340
|
"sonarjs/no-wildcard-import": "off",
|
|
@@ -9143,8 +9346,11 @@
|
|
|
9143
9346
|
"sonarjs/os-command": "off",
|
|
9144
9347
|
"sonarjs/parameterized-tests": "error",
|
|
9145
9348
|
"sonarjs/post-message": "error",
|
|
9349
|
+
"sonarjs/prefer-cypress-should": "error",
|
|
9146
9350
|
"sonarjs/prefer-default-last": "error",
|
|
9147
9351
|
"sonarjs/prefer-immediate-return": "off",
|
|
9352
|
+
"sonarjs/prefer-native-axios-alternative": "error",
|
|
9353
|
+
"sonarjs/prefer-native-jquery-alternative": "error",
|
|
9148
9354
|
"sonarjs/prefer-native-lodash-alternative": "error",
|
|
9149
9355
|
"sonarjs/prefer-object-literal": "off",
|
|
9150
9356
|
"sonarjs/prefer-promise-shorthand": "error",
|
|
@@ -9178,10 +9384,13 @@
|
|
|
9178
9384
|
"sonarjs/strict-transport-security": "error",
|
|
9179
9385
|
"sonarjs/strings-comparison": "off",
|
|
9180
9386
|
"sonarjs/super-linear-regex": "error",
|
|
9387
|
+
"sonarjs/synchronous-exception-assertions": "error",
|
|
9181
9388
|
"sonarjs/synchronous-suite-callback": "error",
|
|
9182
9389
|
"sonarjs/table-header": "error",
|
|
9183
9390
|
"sonarjs/table-header-reference": "error",
|
|
9184
9391
|
"sonarjs/test-check-exception": "error",
|
|
9392
|
+
"sonarjs/testing-library-prefer-query-by-disappearance": "error",
|
|
9393
|
+
"sonarjs/testing-library-query-assertion": "error",
|
|
9185
9394
|
"sonarjs/todo-tag": "warn",
|
|
9186
9395
|
"sonarjs/too-many-break-or-continue-in-loop": "off",
|
|
9187
9396
|
"sonarjs/unicode-aware-regex": "off",
|
|
@@ -9200,6 +9409,7 @@
|
|
|
9200
9409
|
"format": "^[_$A-Za-z][$A-Za-z0-9]*$|^[_$A-Z][_$A-Z0-9]+$"
|
|
9201
9410
|
}
|
|
9202
9411
|
],
|
|
9412
|
+
"sonarjs/vitest-mock-at-module-scope": "error",
|
|
9203
9413
|
"sonarjs/void-use": "error",
|
|
9204
9414
|
"sonarjs/weak-ssl": "error",
|
|
9205
9415
|
"sonarjs/web-sql-database": "off",
|
|
@@ -9299,7 +9509,7 @@
|
|
|
9299
9509
|
"logical"
|
|
9300
9510
|
],
|
|
9301
9511
|
"unicorn/consistent-date-clone": "error",
|
|
9302
|
-
"unicorn/consistent-destructuring": "
|
|
9512
|
+
"unicorn/consistent-destructuring": "off",
|
|
9303
9513
|
"unicorn/consistent-empty-array-spread": "error",
|
|
9304
9514
|
"unicorn/consistent-existence-index-check": "error",
|
|
9305
9515
|
"unicorn/consistent-export-decorator-position": [
|
|
@@ -9420,20 +9630,8 @@
|
|
|
9420
9630
|
}
|
|
9421
9631
|
],
|
|
9422
9632
|
"unicorn/name-replacements": [
|
|
9423
|
-
"
|
|
9424
|
-
{
|
|
9425
|
-
"replacements": {
|
|
9426
|
-
"dev": false,
|
|
9427
|
-
"prod": false,
|
|
9428
|
-
"props": false,
|
|
9429
|
-
"ref": false,
|
|
9430
|
-
"refs": false,
|
|
9431
|
-
"args": false,
|
|
9432
|
-
"params": false,
|
|
9433
|
-
"utils": false,
|
|
9434
|
-
"env": false
|
|
9435
|
-
}
|
|
9436
|
-
}
|
|
9633
|
+
"off",
|
|
9634
|
+
{}
|
|
9437
9635
|
],
|
|
9438
9636
|
"unicorn/new-for-builtins": "error",
|
|
9439
9637
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
@@ -9635,7 +9833,7 @@
|
|
|
9635
9833
|
"unicorn/no-unsafe-sqlite-interpolation": "error",
|
|
9636
9834
|
"unicorn/no-unsafe-string-replacement": "error",
|
|
9637
9835
|
"unicorn/no-unused-array-method-return": "error",
|
|
9638
|
-
"unicorn/no-unused-properties": "
|
|
9836
|
+
"unicorn/no-unused-properties": "off",
|
|
9639
9837
|
"unicorn/no-useless-boolean-cast": "error",
|
|
9640
9838
|
"unicorn/no-useless-coercion": "error",
|
|
9641
9839
|
"unicorn/no-useless-collection-argument": "error",
|
|
@@ -10095,7 +10293,7 @@
|
|
|
10095
10293
|
"eslint-svelte": {
|
|
10096
10294
|
"module": "src/eslint/eslint-svelte.config.js",
|
|
10097
10295
|
"sampleFile": "src/examples/example.svelte",
|
|
10098
|
-
"ruleCount":
|
|
10296
|
+
"ruleCount": 1161,
|
|
10099
10297
|
"rules": {
|
|
10100
10298
|
"@babel/object-curly-spacing": "off",
|
|
10101
10299
|
"@babel/semi": "off",
|
|
@@ -10819,6 +11017,13 @@
|
|
|
10819
11017
|
],
|
|
10820
11018
|
"dot-location": "off",
|
|
10821
11019
|
"eol-last": "off",
|
|
11020
|
+
"eqeqeq": [
|
|
11021
|
+
"error",
|
|
11022
|
+
"always",
|
|
11023
|
+
{
|
|
11024
|
+
"null": "ignore"
|
|
11025
|
+
}
|
|
11026
|
+
],
|
|
10822
11027
|
"flowtype/boolean-style": "off",
|
|
10823
11028
|
"flowtype/delimiter-dangle": "off",
|
|
10824
11029
|
"flowtype/generic-spacing": "off",
|
|
@@ -10925,11 +11130,15 @@
|
|
|
10925
11130
|
"off",
|
|
10926
11131
|
"always"
|
|
10927
11132
|
],
|
|
11133
|
+
"max-depth": [
|
|
11134
|
+
"warn",
|
|
11135
|
+
4
|
|
11136
|
+
],
|
|
10928
11137
|
"max-len": "off",
|
|
10929
11138
|
"max-statements-per-line": "off",
|
|
10930
11139
|
"multiline-ternary": "off",
|
|
10931
11140
|
"new-parens": "off",
|
|
10932
|
-
"newline-before-return": "
|
|
11141
|
+
"newline-before-return": "off",
|
|
10933
11142
|
"newline-per-chained-call": "off",
|
|
10934
11143
|
"no-array-constructor": "off",
|
|
10935
11144
|
"no-arrow-condition": "off",
|
|
@@ -10968,6 +11177,12 @@
|
|
|
10968
11177
|
"no-dupe-else-if": "error",
|
|
10969
11178
|
"no-dupe-keys": "error",
|
|
10970
11179
|
"no-duplicate-case": "error",
|
|
11180
|
+
"no-else-return": [
|
|
11181
|
+
"warn",
|
|
11182
|
+
{
|
|
11183
|
+
"allowElseIf": false
|
|
11184
|
+
}
|
|
11185
|
+
],
|
|
10971
11186
|
"no-empty": [
|
|
10972
11187
|
"error",
|
|
10973
11188
|
{
|
|
@@ -11252,6 +11467,7 @@
|
|
|
11252
11467
|
"sonarjs/assertions-in-test-cases": "error",
|
|
11253
11468
|
"sonarjs/assertions-in-tests": "error",
|
|
11254
11469
|
"sonarjs/async-test-assertions": "error",
|
|
11470
|
+
"sonarjs/avoid-mutating-nested-properties-of-shallow-clones": "error",
|
|
11255
11471
|
"sonarjs/aws-apigateway-public-api": "error",
|
|
11256
11472
|
"sonarjs/aws-ec2-rds-dms-public": "error",
|
|
11257
11473
|
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
|
|
@@ -11296,6 +11512,7 @@
|
|
|
11296
11512
|
"flags": ""
|
|
11297
11513
|
}
|
|
11298
11514
|
],
|
|
11515
|
+
"sonarjs/composite-assertions": "off",
|
|
11299
11516
|
"sonarjs/concise-regex": "error",
|
|
11300
11517
|
"sonarjs/conditional-indentation": "off",
|
|
11301
11518
|
"sonarjs/confidential-information-logging": "off",
|
|
@@ -11426,10 +11643,12 @@
|
|
|
11426
11643
|
"sonarjs/no-commented-code": "off",
|
|
11427
11644
|
"sonarjs/no-control-regex": "error",
|
|
11428
11645
|
"sonarjs/no-dead-store": "error",
|
|
11646
|
+
"sonarjs/no-debounce-throttle-in-render": "error",
|
|
11429
11647
|
"sonarjs/no-debug-commands-in-ui-tests": "error",
|
|
11430
11648
|
"sonarjs/no-default-utility-imports": "error",
|
|
11431
11649
|
"sonarjs/no-delete-var": "error",
|
|
11432
11650
|
"sonarjs/no-duplicate-in-composite": "error",
|
|
11651
|
+
"sonarjs/no-duplicate-parameterized-test-case": "error",
|
|
11433
11652
|
"sonarjs/no-duplicate-string": [
|
|
11434
11653
|
"off",
|
|
11435
11654
|
{
|
|
@@ -11445,6 +11664,7 @@
|
|
|
11445
11664
|
"sonarjs/no-empty-character-class": "error",
|
|
11446
11665
|
"sonarjs/no-empty-collection": "error",
|
|
11447
11666
|
"sonarjs/no-empty-group": "error",
|
|
11667
|
+
"sonarjs/no-empty-parameterized-test-dataset": "error",
|
|
11448
11668
|
"sonarjs/no-empty-test-file": "error",
|
|
11449
11669
|
"sonarjs/no-empty-test-title": "error",
|
|
11450
11670
|
"sonarjs/no-equals-in-for-termination": "error",
|
|
@@ -11518,19 +11738,21 @@
|
|
|
11518
11738
|
"sonarjs/no-mime-sniff": "error",
|
|
11519
11739
|
"sonarjs/no-misleading-array-reverse": "error",
|
|
11520
11740
|
"sonarjs/no-misleading-character-class": "error",
|
|
11521
|
-
"sonarjs/no-mixed-completion-style": "
|
|
11741
|
+
"sonarjs/no-mixed-completion-style": "off",
|
|
11522
11742
|
"sonarjs/no-mixed-content": "off",
|
|
11743
|
+
"sonarjs/no-mutate-reactive-state-in-updated-hook": "error",
|
|
11523
11744
|
"sonarjs/no-nested-assignment": "error",
|
|
11524
11745
|
"sonarjs/no-nested-conditional": "error",
|
|
11525
11746
|
"sonarjs/no-nested-functions": [
|
|
11526
11747
|
"error",
|
|
11527
11748
|
{
|
|
11528
|
-
"threshold":
|
|
11749
|
+
"threshold": 5
|
|
11529
11750
|
}
|
|
11530
11751
|
],
|
|
11531
11752
|
"sonarjs/no-nested-incdec": "off",
|
|
11532
11753
|
"sonarjs/no-nested-switch": "off",
|
|
11533
11754
|
"sonarjs/no-nested-template-literals": "error",
|
|
11755
|
+
"sonarjs/no-networkidle-wait": "off",
|
|
11534
11756
|
"sonarjs/no-os-command-from-path": "error",
|
|
11535
11757
|
"sonarjs/no-parameter-reassignment": "error",
|
|
11536
11758
|
"sonarjs/no-primitive-wrappers": "error",
|
|
@@ -11570,6 +11792,8 @@
|
|
|
11570
11792
|
"sonarjs/no-useless-intersection": "error",
|
|
11571
11793
|
"sonarjs/no-useless-react-setstate": "error",
|
|
11572
11794
|
"sonarjs/no-variable-usage-before-declaration": "off",
|
|
11795
|
+
"sonarjs/no-vue-class-component": "error",
|
|
11796
|
+
"sonarjs/no-vue-mixins": "error",
|
|
11573
11797
|
"sonarjs/no-weak-cipher": "error",
|
|
11574
11798
|
"sonarjs/no-weak-keys": "error",
|
|
11575
11799
|
"sonarjs/no-wildcard-import": "off",
|
|
@@ -11581,8 +11805,11 @@
|
|
|
11581
11805
|
"sonarjs/os-command": "off",
|
|
11582
11806
|
"sonarjs/parameterized-tests": "error",
|
|
11583
11807
|
"sonarjs/post-message": "error",
|
|
11808
|
+
"sonarjs/prefer-cypress-should": "error",
|
|
11584
11809
|
"sonarjs/prefer-default-last": "error",
|
|
11585
11810
|
"sonarjs/prefer-immediate-return": "off",
|
|
11811
|
+
"sonarjs/prefer-native-axios-alternative": "error",
|
|
11812
|
+
"sonarjs/prefer-native-jquery-alternative": "error",
|
|
11586
11813
|
"sonarjs/prefer-native-lodash-alternative": "error",
|
|
11587
11814
|
"sonarjs/prefer-object-literal": "off",
|
|
11588
11815
|
"sonarjs/prefer-promise-shorthand": "error",
|
|
@@ -11616,10 +11843,13 @@
|
|
|
11616
11843
|
"sonarjs/strict-transport-security": "error",
|
|
11617
11844
|
"sonarjs/strings-comparison": "off",
|
|
11618
11845
|
"sonarjs/super-linear-regex": "error",
|
|
11846
|
+
"sonarjs/synchronous-exception-assertions": "error",
|
|
11619
11847
|
"sonarjs/synchronous-suite-callback": "error",
|
|
11620
11848
|
"sonarjs/table-header": "error",
|
|
11621
11849
|
"sonarjs/table-header-reference": "error",
|
|
11622
11850
|
"sonarjs/test-check-exception": "error",
|
|
11851
|
+
"sonarjs/testing-library-prefer-query-by-disappearance": "error",
|
|
11852
|
+
"sonarjs/testing-library-query-assertion": "error",
|
|
11623
11853
|
"sonarjs/todo-tag": "warn",
|
|
11624
11854
|
"sonarjs/too-many-break-or-continue-in-loop": "off",
|
|
11625
11855
|
"sonarjs/unicode-aware-regex": "off",
|
|
@@ -11638,6 +11868,7 @@
|
|
|
11638
11868
|
"format": "^[_$A-Za-z][$A-Za-z0-9]*$|^[_$A-Z][_$A-Z0-9]+$"
|
|
11639
11869
|
}
|
|
11640
11870
|
],
|
|
11871
|
+
"sonarjs/vitest-mock-at-module-scope": "error",
|
|
11641
11872
|
"sonarjs/void-use": "error",
|
|
11642
11873
|
"sonarjs/weak-ssl": "error",
|
|
11643
11874
|
"sonarjs/web-sql-database": "off",
|
|
@@ -11780,7 +12011,7 @@
|
|
|
11780
12011
|
"logical"
|
|
11781
12012
|
],
|
|
11782
12013
|
"unicorn/consistent-date-clone": "error",
|
|
11783
|
-
"unicorn/consistent-destructuring": "
|
|
12014
|
+
"unicorn/consistent-destructuring": "off",
|
|
11784
12015
|
"unicorn/consistent-empty-array-spread": "error",
|
|
11785
12016
|
"unicorn/consistent-existence-index-check": "error",
|
|
11786
12017
|
"unicorn/consistent-export-decorator-position": [
|
|
@@ -11901,20 +12132,8 @@
|
|
|
11901
12132
|
}
|
|
11902
12133
|
],
|
|
11903
12134
|
"unicorn/name-replacements": [
|
|
11904
|
-
"
|
|
11905
|
-
{
|
|
11906
|
-
"replacements": {
|
|
11907
|
-
"dev": false,
|
|
11908
|
-
"prod": false,
|
|
11909
|
-
"props": false,
|
|
11910
|
-
"ref": false,
|
|
11911
|
-
"refs": false,
|
|
11912
|
-
"args": false,
|
|
11913
|
-
"params": false,
|
|
11914
|
-
"utils": false,
|
|
11915
|
-
"env": false
|
|
11916
|
-
}
|
|
11917
|
-
}
|
|
12135
|
+
"off",
|
|
12136
|
+
{}
|
|
11918
12137
|
],
|
|
11919
12138
|
"unicorn/new-for-builtins": "error",
|
|
11920
12139
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
@@ -12116,7 +12335,7 @@
|
|
|
12116
12335
|
"unicorn/no-unsafe-sqlite-interpolation": "error",
|
|
12117
12336
|
"unicorn/no-unsafe-string-replacement": "error",
|
|
12118
12337
|
"unicorn/no-unused-array-method-return": "error",
|
|
12119
|
-
"unicorn/no-unused-properties": "
|
|
12338
|
+
"unicorn/no-unused-properties": "off",
|
|
12120
12339
|
"unicorn/no-useless-boolean-cast": "error",
|
|
12121
12340
|
"unicorn/no-useless-coercion": "error",
|
|
12122
12341
|
"unicorn/no-useless-collection-argument": "error",
|
|
@@ -12576,7 +12795,7 @@
|
|
|
12576
12795
|
"eslint-astro": {
|
|
12577
12796
|
"module": "src/eslint/eslint.config.astro.js",
|
|
12578
12797
|
"sampleFile": "src/examples/example.astro",
|
|
12579
|
-
"ruleCount":
|
|
12798
|
+
"ruleCount": 1110,
|
|
12580
12799
|
"rules": {
|
|
12581
12800
|
"@babel/object-curly-spacing": "off",
|
|
12582
12801
|
"@babel/semi": "off",
|
|
@@ -13529,6 +13748,7 @@
|
|
|
13529
13748
|
"sonarjs/assertions-in-test-cases": "error",
|
|
13530
13749
|
"sonarjs/assertions-in-tests": "error",
|
|
13531
13750
|
"sonarjs/async-test-assertions": "error",
|
|
13751
|
+
"sonarjs/avoid-mutating-nested-properties-of-shallow-clones": "error",
|
|
13532
13752
|
"sonarjs/aws-apigateway-public-api": "error",
|
|
13533
13753
|
"sonarjs/aws-ec2-rds-dms-public": "error",
|
|
13534
13754
|
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
|
|
@@ -13573,6 +13793,7 @@
|
|
|
13573
13793
|
"flags": ""
|
|
13574
13794
|
}
|
|
13575
13795
|
],
|
|
13796
|
+
"sonarjs/composite-assertions": "off",
|
|
13576
13797
|
"sonarjs/concise-regex": "error",
|
|
13577
13798
|
"sonarjs/conditional-indentation": "off",
|
|
13578
13799
|
"sonarjs/confidential-information-logging": "off",
|
|
@@ -13703,10 +13924,12 @@
|
|
|
13703
13924
|
"sonarjs/no-commented-code": "off",
|
|
13704
13925
|
"sonarjs/no-control-regex": "error",
|
|
13705
13926
|
"sonarjs/no-dead-store": "error",
|
|
13927
|
+
"sonarjs/no-debounce-throttle-in-render": "error",
|
|
13706
13928
|
"sonarjs/no-debug-commands-in-ui-tests": "error",
|
|
13707
13929
|
"sonarjs/no-default-utility-imports": "error",
|
|
13708
13930
|
"sonarjs/no-delete-var": "error",
|
|
13709
13931
|
"sonarjs/no-duplicate-in-composite": "error",
|
|
13932
|
+
"sonarjs/no-duplicate-parameterized-test-case": "error",
|
|
13710
13933
|
"sonarjs/no-duplicate-string": [
|
|
13711
13934
|
"off",
|
|
13712
13935
|
{
|
|
@@ -13722,6 +13945,7 @@
|
|
|
13722
13945
|
"sonarjs/no-empty-character-class": "error",
|
|
13723
13946
|
"sonarjs/no-empty-collection": "error",
|
|
13724
13947
|
"sonarjs/no-empty-group": "error",
|
|
13948
|
+
"sonarjs/no-empty-parameterized-test-dataset": "error",
|
|
13725
13949
|
"sonarjs/no-empty-test-file": "error",
|
|
13726
13950
|
"sonarjs/no-empty-test-title": "error",
|
|
13727
13951
|
"sonarjs/no-equals-in-for-termination": "error",
|
|
@@ -13795,19 +14019,21 @@
|
|
|
13795
14019
|
"sonarjs/no-mime-sniff": "error",
|
|
13796
14020
|
"sonarjs/no-misleading-array-reverse": "error",
|
|
13797
14021
|
"sonarjs/no-misleading-character-class": "error",
|
|
13798
|
-
"sonarjs/no-mixed-completion-style": "
|
|
14022
|
+
"sonarjs/no-mixed-completion-style": "off",
|
|
13799
14023
|
"sonarjs/no-mixed-content": "off",
|
|
14024
|
+
"sonarjs/no-mutate-reactive-state-in-updated-hook": "error",
|
|
13800
14025
|
"sonarjs/no-nested-assignment": "error",
|
|
13801
14026
|
"sonarjs/no-nested-conditional": "error",
|
|
13802
14027
|
"sonarjs/no-nested-functions": [
|
|
13803
14028
|
"error",
|
|
13804
14029
|
{
|
|
13805
|
-
"threshold":
|
|
14030
|
+
"threshold": 5
|
|
13806
14031
|
}
|
|
13807
14032
|
],
|
|
13808
14033
|
"sonarjs/no-nested-incdec": "off",
|
|
13809
14034
|
"sonarjs/no-nested-switch": "off",
|
|
13810
14035
|
"sonarjs/no-nested-template-literals": "error",
|
|
14036
|
+
"sonarjs/no-networkidle-wait": "off",
|
|
13811
14037
|
"sonarjs/no-os-command-from-path": "error",
|
|
13812
14038
|
"sonarjs/no-parameter-reassignment": "error",
|
|
13813
14039
|
"sonarjs/no-primitive-wrappers": "error",
|
|
@@ -13847,6 +14073,8 @@
|
|
|
13847
14073
|
"sonarjs/no-useless-intersection": "error",
|
|
13848
14074
|
"sonarjs/no-useless-react-setstate": "error",
|
|
13849
14075
|
"sonarjs/no-variable-usage-before-declaration": "off",
|
|
14076
|
+
"sonarjs/no-vue-class-component": "error",
|
|
14077
|
+
"sonarjs/no-vue-mixins": "error",
|
|
13850
14078
|
"sonarjs/no-weak-cipher": "error",
|
|
13851
14079
|
"sonarjs/no-weak-keys": "error",
|
|
13852
14080
|
"sonarjs/no-wildcard-import": "off",
|
|
@@ -13858,8 +14086,11 @@
|
|
|
13858
14086
|
"sonarjs/os-command": "off",
|
|
13859
14087
|
"sonarjs/parameterized-tests": "error",
|
|
13860
14088
|
"sonarjs/post-message": "error",
|
|
14089
|
+
"sonarjs/prefer-cypress-should": "error",
|
|
13861
14090
|
"sonarjs/prefer-default-last": "error",
|
|
13862
14091
|
"sonarjs/prefer-immediate-return": "off",
|
|
14092
|
+
"sonarjs/prefer-native-axios-alternative": "error",
|
|
14093
|
+
"sonarjs/prefer-native-jquery-alternative": "error",
|
|
13863
14094
|
"sonarjs/prefer-native-lodash-alternative": "error",
|
|
13864
14095
|
"sonarjs/prefer-object-literal": "off",
|
|
13865
14096
|
"sonarjs/prefer-promise-shorthand": "error",
|
|
@@ -13893,10 +14124,13 @@
|
|
|
13893
14124
|
"sonarjs/strict-transport-security": "error",
|
|
13894
14125
|
"sonarjs/strings-comparison": "off",
|
|
13895
14126
|
"sonarjs/super-linear-regex": "error",
|
|
14127
|
+
"sonarjs/synchronous-exception-assertions": "error",
|
|
13896
14128
|
"sonarjs/synchronous-suite-callback": "error",
|
|
13897
14129
|
"sonarjs/table-header": "error",
|
|
13898
14130
|
"sonarjs/table-header-reference": "error",
|
|
13899
14131
|
"sonarjs/test-check-exception": "error",
|
|
14132
|
+
"sonarjs/testing-library-prefer-query-by-disappearance": "error",
|
|
14133
|
+
"sonarjs/testing-library-query-assertion": "error",
|
|
13900
14134
|
"sonarjs/todo-tag": "error",
|
|
13901
14135
|
"sonarjs/too-many-break-or-continue-in-loop": "off",
|
|
13902
14136
|
"sonarjs/unicode-aware-regex": "off",
|
|
@@ -13915,6 +14149,7 @@
|
|
|
13915
14149
|
"format": "^[_$A-Za-z][$A-Za-z0-9]*$|^[_$A-Z][_$A-Z0-9]+$"
|
|
13916
14150
|
}
|
|
13917
14151
|
],
|
|
14152
|
+
"sonarjs/vitest-mock-at-module-scope": "error",
|
|
13918
14153
|
"sonarjs/void-use": "error",
|
|
13919
14154
|
"sonarjs/weak-ssl": "error",
|
|
13920
14155
|
"sonarjs/web-sql-database": "off",
|
|
@@ -14120,7 +14355,7 @@
|
|
|
14120
14355
|
}
|
|
14121
14356
|
],
|
|
14122
14357
|
"unicorn/name-replacements": [
|
|
14123
|
-
"
|
|
14358
|
+
"off",
|
|
14124
14359
|
{}
|
|
14125
14360
|
],
|
|
14126
14361
|
"unicorn/new-for-builtins": "error",
|