eslint-config-silverwind 94.3.0 → 94.4.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/dist/index.js +61 -0
- package/dist/index.json +168 -0
- package/package.json +7 -4
package/dist/index.js
CHANGED
|
@@ -5,9 +5,11 @@ import arrayFunc from "eslint-plugin-array-func";
|
|
|
5
5
|
import importPlugin from "eslint-plugin-import";
|
|
6
6
|
import noUseExtendNative from "eslint-plugin-no-use-extend-native";
|
|
7
7
|
import regexp from "eslint-plugin-regexp";
|
|
8
|
+
import sonarjs from "eslint-plugin-sonarjs";
|
|
8
9
|
import unicorn from "eslint-plugin-unicorn";
|
|
9
10
|
import vitest from "eslint-plugin-vitest";
|
|
10
11
|
import playwright from "eslint-plugin-playwright";
|
|
12
|
+
import github from "eslint-plugin-github";
|
|
11
13
|
import globals from "globals";
|
|
12
14
|
import { deepMerge } from "deepie-merge";
|
|
13
15
|
import vitestGlobalsPlugin from "eslint-plugin-vitest-globals";
|
|
@@ -33,9 +35,11 @@ const eslintrc = {
|
|
|
33
35
|
"@eslint-community/eslint-plugin-eslint-comments",
|
|
34
36
|
"@stylistic/eslint-plugin-js",
|
|
35
37
|
"eslint-plugin-array-func",
|
|
38
|
+
"eslint-plugin-github",
|
|
36
39
|
"eslint-plugin-import",
|
|
37
40
|
"eslint-plugin-no-use-extend-native",
|
|
38
41
|
"eslint-plugin-regexp",
|
|
42
|
+
"eslint-plugin-sonarjs",
|
|
39
43
|
"eslint-plugin-unicorn",
|
|
40
44
|
"eslint-plugin-vitest",
|
|
41
45
|
"eslint-plugin-vitest-globals"
|
|
@@ -271,6 +275,29 @@ const eslintrc = {
|
|
|
271
275
|
"func-names": [0],
|
|
272
276
|
"func-style": [0],
|
|
273
277
|
"getter-return": [2],
|
|
278
|
+
"github/a11y-aria-label-is-well-formatted": [0],
|
|
279
|
+
"github/a11y-no-title-attribute": [0],
|
|
280
|
+
"github/a11y-no-visually-hidden-interactive-element": [0],
|
|
281
|
+
"github/a11y-role-supports-aria-props": [0],
|
|
282
|
+
"github/a11y-svg-has-accessible-name": [0],
|
|
283
|
+
"github/array-foreach": [0],
|
|
284
|
+
"github/async-currenttarget": [2],
|
|
285
|
+
"github/async-preventdefault": [2],
|
|
286
|
+
"github/authenticity-token": [0],
|
|
287
|
+
"github/get-attribute": [0],
|
|
288
|
+
"github/js-class-name": [0],
|
|
289
|
+
"github/no-blur": [0],
|
|
290
|
+
"github/no-d-none": [0],
|
|
291
|
+
"github/no-dataset": [2],
|
|
292
|
+
"github/no-dynamic-script-tag": [2],
|
|
293
|
+
"github/no-implicit-buggy-globals": [2],
|
|
294
|
+
"github/no-inner-html": [0],
|
|
295
|
+
"github/no-innerText": [2],
|
|
296
|
+
"github/no-then": [2],
|
|
297
|
+
"github/no-useless-passive": [2],
|
|
298
|
+
"github/prefer-observers": [2],
|
|
299
|
+
"github/require-passive-events": [2],
|
|
300
|
+
"github/unescaped-html-literal": [0],
|
|
274
301
|
"grouped-accessor-pairs": [2],
|
|
275
302
|
"guard-for-in": [0],
|
|
276
303
|
"import/consistent-type-specifier-style": [0],
|
|
@@ -569,6 +596,38 @@ const eslintrc = {
|
|
|
569
596
|
"require-await": [0],
|
|
570
597
|
"require-unicode-regexp": [0],
|
|
571
598
|
"require-yield": [2],
|
|
599
|
+
"sonarjs/cognitive-complexity": [0],
|
|
600
|
+
"sonarjs/elseif-without-else": [0],
|
|
601
|
+
"sonarjs/max-switch-cases": [0],
|
|
602
|
+
"sonarjs/no-all-duplicated-branches": [2],
|
|
603
|
+
"sonarjs/no-collapsible-if": [0],
|
|
604
|
+
"sonarjs/no-collection-size-mischeck": [2],
|
|
605
|
+
"sonarjs/no-duplicate-string": [0],
|
|
606
|
+
"sonarjs/no-duplicated-branches": [0],
|
|
607
|
+
"sonarjs/no-element-overwrite": [2],
|
|
608
|
+
"sonarjs/no-empty-collection": [2],
|
|
609
|
+
"sonarjs/no-extra-arguments": [2],
|
|
610
|
+
"sonarjs/no-gratuitous-expressions": [2],
|
|
611
|
+
"sonarjs/no-identical-conditions": [2],
|
|
612
|
+
"sonarjs/no-identical-expressions": [2],
|
|
613
|
+
"sonarjs/no-identical-functions": [2, 5],
|
|
614
|
+
"sonarjs/no-ignored-return": [2],
|
|
615
|
+
"sonarjs/no-inverted-boolean-check": [2],
|
|
616
|
+
"sonarjs/no-nested-switch": [0],
|
|
617
|
+
"sonarjs/no-nested-template-literals": [0],
|
|
618
|
+
"sonarjs/no-one-iteration-loop": [2],
|
|
619
|
+
"sonarjs/no-redundant-boolean": [2],
|
|
620
|
+
"sonarjs/no-redundant-jump": [0],
|
|
621
|
+
"sonarjs/no-same-line-conditional": [2],
|
|
622
|
+
"sonarjs/no-small-switch": [0],
|
|
623
|
+
"sonarjs/no-unused-collection": [2],
|
|
624
|
+
"sonarjs/no-use-of-empty-return-value": [2],
|
|
625
|
+
"sonarjs/no-useless-catch": [2],
|
|
626
|
+
"sonarjs/non-existent-operator": [2],
|
|
627
|
+
"sonarjs/prefer-immediate-return": [0],
|
|
628
|
+
"sonarjs/prefer-object-literal": [0],
|
|
629
|
+
"sonarjs/prefer-single-boolean-return": [0],
|
|
630
|
+
"sonarjs/prefer-while": [2],
|
|
572
631
|
"sort-imports": [0],
|
|
573
632
|
"sort-keys": [0],
|
|
574
633
|
"sort-vars": [0],
|
|
@@ -759,7 +818,9 @@ const common = {
|
|
|
759
818
|
"react-hooks": reactHooks,
|
|
760
819
|
"react-refresh": reactRefresh,
|
|
761
820
|
regexp,
|
|
821
|
+
sonarjs,
|
|
762
822
|
unicorn,
|
|
823
|
+
github,
|
|
763
824
|
"validate-jsx-nesting": validateJsxNesting
|
|
764
825
|
},
|
|
765
826
|
settings: {
|
package/dist/index.json
CHANGED
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
"@eslint-community/eslint-plugin-eslint-comments",
|
|
6
6
|
"@stylistic/eslint-plugin-js",
|
|
7
7
|
"eslint-plugin-array-func",
|
|
8
|
+
"eslint-plugin-github",
|
|
8
9
|
"eslint-plugin-import",
|
|
9
10
|
"eslint-plugin-no-use-extend-native",
|
|
10
11
|
"eslint-plugin-regexp",
|
|
12
|
+
"eslint-plugin-sonarjs",
|
|
11
13
|
"eslint-plugin-unicorn",
|
|
12
14
|
"eslint-plugin-vitest",
|
|
13
15
|
"eslint-plugin-vitest-globals"
|
|
@@ -703,6 +705,75 @@
|
|
|
703
705
|
"getter-return": [
|
|
704
706
|
2
|
|
705
707
|
],
|
|
708
|
+
"github/a11y-aria-label-is-well-formatted": [
|
|
709
|
+
0
|
|
710
|
+
],
|
|
711
|
+
"github/a11y-no-title-attribute": [
|
|
712
|
+
0
|
|
713
|
+
],
|
|
714
|
+
"github/a11y-no-visually-hidden-interactive-element": [
|
|
715
|
+
0
|
|
716
|
+
],
|
|
717
|
+
"github/a11y-role-supports-aria-props": [
|
|
718
|
+
0
|
|
719
|
+
],
|
|
720
|
+
"github/a11y-svg-has-accessible-name": [
|
|
721
|
+
0
|
|
722
|
+
],
|
|
723
|
+
"github/array-foreach": [
|
|
724
|
+
0
|
|
725
|
+
],
|
|
726
|
+
"github/async-currenttarget": [
|
|
727
|
+
2
|
|
728
|
+
],
|
|
729
|
+
"github/async-preventdefault": [
|
|
730
|
+
2
|
|
731
|
+
],
|
|
732
|
+
"github/authenticity-token": [
|
|
733
|
+
0
|
|
734
|
+
],
|
|
735
|
+
"github/get-attribute": [
|
|
736
|
+
0
|
|
737
|
+
],
|
|
738
|
+
"github/js-class-name": [
|
|
739
|
+
0
|
|
740
|
+
],
|
|
741
|
+
"github/no-blur": [
|
|
742
|
+
0
|
|
743
|
+
],
|
|
744
|
+
"github/no-d-none": [
|
|
745
|
+
0
|
|
746
|
+
],
|
|
747
|
+
"github/no-dataset": [
|
|
748
|
+
2
|
|
749
|
+
],
|
|
750
|
+
"github/no-dynamic-script-tag": [
|
|
751
|
+
2
|
|
752
|
+
],
|
|
753
|
+
"github/no-implicit-buggy-globals": [
|
|
754
|
+
2
|
|
755
|
+
],
|
|
756
|
+
"github/no-inner-html": [
|
|
757
|
+
0
|
|
758
|
+
],
|
|
759
|
+
"github/no-innerText": [
|
|
760
|
+
2
|
|
761
|
+
],
|
|
762
|
+
"github/no-then": [
|
|
763
|
+
2
|
|
764
|
+
],
|
|
765
|
+
"github/no-useless-passive": [
|
|
766
|
+
2
|
|
767
|
+
],
|
|
768
|
+
"github/prefer-observers": [
|
|
769
|
+
2
|
|
770
|
+
],
|
|
771
|
+
"github/require-passive-events": [
|
|
772
|
+
2
|
|
773
|
+
],
|
|
774
|
+
"github/unescaped-html-literal": [
|
|
775
|
+
0
|
|
776
|
+
],
|
|
706
777
|
"grouped-accessor-pairs": [
|
|
707
778
|
2
|
|
708
779
|
],
|
|
@@ -1731,6 +1802,103 @@
|
|
|
1731
1802
|
"require-yield": [
|
|
1732
1803
|
2
|
|
1733
1804
|
],
|
|
1805
|
+
"sonarjs/cognitive-complexity": [
|
|
1806
|
+
0
|
|
1807
|
+
],
|
|
1808
|
+
"sonarjs/elseif-without-else": [
|
|
1809
|
+
0
|
|
1810
|
+
],
|
|
1811
|
+
"sonarjs/max-switch-cases": [
|
|
1812
|
+
0
|
|
1813
|
+
],
|
|
1814
|
+
"sonarjs/no-all-duplicated-branches": [
|
|
1815
|
+
2
|
|
1816
|
+
],
|
|
1817
|
+
"sonarjs/no-collapsible-if": [
|
|
1818
|
+
0
|
|
1819
|
+
],
|
|
1820
|
+
"sonarjs/no-collection-size-mischeck": [
|
|
1821
|
+
2
|
|
1822
|
+
],
|
|
1823
|
+
"sonarjs/no-duplicate-string": [
|
|
1824
|
+
0
|
|
1825
|
+
],
|
|
1826
|
+
"sonarjs/no-duplicated-branches": [
|
|
1827
|
+
0
|
|
1828
|
+
],
|
|
1829
|
+
"sonarjs/no-element-overwrite": [
|
|
1830
|
+
2
|
|
1831
|
+
],
|
|
1832
|
+
"sonarjs/no-empty-collection": [
|
|
1833
|
+
2
|
|
1834
|
+
],
|
|
1835
|
+
"sonarjs/no-extra-arguments": [
|
|
1836
|
+
2
|
|
1837
|
+
],
|
|
1838
|
+
"sonarjs/no-gratuitous-expressions": [
|
|
1839
|
+
2
|
|
1840
|
+
],
|
|
1841
|
+
"sonarjs/no-identical-conditions": [
|
|
1842
|
+
2
|
|
1843
|
+
],
|
|
1844
|
+
"sonarjs/no-identical-expressions": [
|
|
1845
|
+
2
|
|
1846
|
+
],
|
|
1847
|
+
"sonarjs/no-identical-functions": [
|
|
1848
|
+
2,
|
|
1849
|
+
5
|
|
1850
|
+
],
|
|
1851
|
+
"sonarjs/no-ignored-return": [
|
|
1852
|
+
2
|
|
1853
|
+
],
|
|
1854
|
+
"sonarjs/no-inverted-boolean-check": [
|
|
1855
|
+
2
|
|
1856
|
+
],
|
|
1857
|
+
"sonarjs/no-nested-switch": [
|
|
1858
|
+
0
|
|
1859
|
+
],
|
|
1860
|
+
"sonarjs/no-nested-template-literals": [
|
|
1861
|
+
0
|
|
1862
|
+
],
|
|
1863
|
+
"sonarjs/no-one-iteration-loop": [
|
|
1864
|
+
2
|
|
1865
|
+
],
|
|
1866
|
+
"sonarjs/no-redundant-boolean": [
|
|
1867
|
+
2
|
|
1868
|
+
],
|
|
1869
|
+
"sonarjs/no-redundant-jump": [
|
|
1870
|
+
0
|
|
1871
|
+
],
|
|
1872
|
+
"sonarjs/no-same-line-conditional": [
|
|
1873
|
+
2
|
|
1874
|
+
],
|
|
1875
|
+
"sonarjs/no-small-switch": [
|
|
1876
|
+
0
|
|
1877
|
+
],
|
|
1878
|
+
"sonarjs/no-unused-collection": [
|
|
1879
|
+
2
|
|
1880
|
+
],
|
|
1881
|
+
"sonarjs/no-use-of-empty-return-value": [
|
|
1882
|
+
2
|
|
1883
|
+
],
|
|
1884
|
+
"sonarjs/no-useless-catch": [
|
|
1885
|
+
2
|
|
1886
|
+
],
|
|
1887
|
+
"sonarjs/non-existent-operator": [
|
|
1888
|
+
2
|
|
1889
|
+
],
|
|
1890
|
+
"sonarjs/prefer-immediate-return": [
|
|
1891
|
+
0
|
|
1892
|
+
],
|
|
1893
|
+
"sonarjs/prefer-object-literal": [
|
|
1894
|
+
0
|
|
1895
|
+
],
|
|
1896
|
+
"sonarjs/prefer-single-boolean-return": [
|
|
1897
|
+
0
|
|
1898
|
+
],
|
|
1899
|
+
"sonarjs/prefer-while": [
|
|
1900
|
+
2
|
|
1901
|
+
],
|
|
1734
1902
|
"sort-imports": [
|
|
1735
1903
|
0
|
|
1736
1904
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-silverwind",
|
|
3
|
-
"version": "94.
|
|
3
|
+
"version": "94.4.0",
|
|
4
4
|
"description": "Exhaustive ESLint configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/eslint-config-silverwind",
|
|
@@ -21,19 +21,21 @@
|
|
|
21
21
|
"@stylistic/eslint-plugin-jsx": "2.11.0",
|
|
22
22
|
"@typescript-eslint/parser": "8.17.0",
|
|
23
23
|
"deepie-merge": "1.3.0",
|
|
24
|
-
"eslint-config-silverwind-react": "32.0.
|
|
24
|
+
"eslint-config-silverwind-react": "32.0.5",
|
|
25
25
|
"eslint-config-silverwind-typescript": "9.2.1",
|
|
26
26
|
"eslint-import-resolver-typescript": "3.7.0",
|
|
27
27
|
"eslint-plugin-array-func": "4.0.0",
|
|
28
28
|
"eslint-plugin-deprecation": "3.0.0",
|
|
29
|
+
"eslint-plugin-github": "5.1.4",
|
|
29
30
|
"eslint-plugin-import": "2.31.0",
|
|
30
31
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
31
32
|
"eslint-plugin-no-use-extend-native": "0.5.0",
|
|
32
33
|
"eslint-plugin-playwright": "2.1.0",
|
|
33
34
|
"eslint-plugin-react": "7.37.2",
|
|
34
|
-
"eslint-plugin-react-hooks": "5.
|
|
35
|
+
"eslint-plugin-react-hooks": "5.1.0",
|
|
35
36
|
"eslint-plugin-react-refresh": "0.4.16",
|
|
36
37
|
"eslint-plugin-regexp": "2.7.0",
|
|
38
|
+
"eslint-plugin-sonarjs": "1.0.4",
|
|
37
39
|
"eslint-plugin-storybook": "0.11.1",
|
|
38
40
|
"eslint-plugin-unicorn": "56.0.1",
|
|
39
41
|
"eslint-plugin-validate-jsx-nesting": "0.1.1",
|
|
@@ -44,10 +46,11 @@
|
|
|
44
46
|
},
|
|
45
47
|
"devDependencies": {
|
|
46
48
|
"@types/eslint": "9.6.1",
|
|
49
|
+
"@types/eslint-plugin-jsx-a11y": "6.10.0",
|
|
47
50
|
"@types/node": "22.10.1",
|
|
48
51
|
"eslint": "8.57.1",
|
|
49
52
|
"typescript": "5.7.2",
|
|
50
|
-
"typescript-config-silverwind": "6.1.
|
|
53
|
+
"typescript-config-silverwind": "6.1.3",
|
|
51
54
|
"updates": "16.4.0",
|
|
52
55
|
"versions": "12.1.2",
|
|
53
56
|
"vite": "5.4.11",
|