eslint-config-silverwind 96.0.6 → 96.0.8

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 CHANGED
@@ -9,7 +9,6 @@ import sonarjs from "eslint-plugin-sonarjs";
9
9
  import unicorn from "eslint-plugin-unicorn";
10
10
  import vitest from "eslint-plugin-vitest";
11
11
  import playwright from "eslint-plugin-playwright";
12
- import github from "eslint-plugin-github";
13
12
  import globals from "globals";
14
13
  import { deepMerge } from "deepie-merge";
15
14
  import vitestGlobalsPlugin from "eslint-plugin-vitest-globals";
@@ -32,7 +31,7 @@ const eslintrc = {
32
31
  "@stylistic/eslint-plugin-js",
33
32
  "@typescript-eslint/eslint-plugin",
34
33
  "eslint-plugin-array-func",
35
- "eslint-plugin-github",
34
+ // "eslint-plugin-github", // causes peerDependency error with eslint 8 - https://github.com/github/eslint-plugin-github/issues/585
36
35
  "eslint-plugin-import",
37
36
  "eslint-plugin-no-use-extend-native",
38
37
  "eslint-plugin-react",
@@ -61,10 +60,11 @@ const eslintrc = {
61
60
  "import/parsers": {
62
61
  "@typescript-eslint/parser": [".js", ".jsx", ".ts", ".tsx"]
63
62
  },
64
- // avoid warning when react dependency is not there
65
- // "react": { // used by eslint-plugin-react
66
- // version: "detect",
67
- // },
63
+ "import/resolver": "typescript",
64
+ "react": {
65
+ // used by eslint-plugin-react
66
+ version: "19"
67
+ },
68
68
  "linkComponents": [
69
69
  // used by eslint-plugin-react
70
70
  { name: "Link", linkAttribute: "href" }
@@ -82,23 +82,6 @@ const eslintrc = {
82
82
  "!.storybook"
83
83
  ],
84
84
  "overrides": [
85
- {
86
- files: ["**/*.ts"],
87
- rules: {
88
- "no-array-constructor": [0],
89
- "no-implied-eval": [0],
90
- "no-redeclare": [0],
91
- // for overloads
92
- "no-unused-vars": [0],
93
- "no-use-before-define": [0],
94
- "require-await": [0]
95
- },
96
- settings: {
97
- "import/resolver": {
98
- "typescript": true
99
- }
100
- }
101
- },
102
85
  {
103
86
  files: ["**/*.d.ts"],
104
87
  rules: {
@@ -533,29 +516,29 @@ const eslintrc = {
533
516
  "func-names": [0],
534
517
  "func-style": [0],
535
518
  "getter-return": [2],
536
- "github/a11y-aria-label-is-well-formatted": [0],
537
- "github/a11y-no-title-attribute": [0],
538
- "github/a11y-no-visually-hidden-interactive-element": [0],
539
- "github/a11y-role-supports-aria-props": [0],
540
- "github/a11y-svg-has-accessible-name": [0],
541
- "github/array-foreach": [0],
542
- "github/async-currenttarget": [2],
543
- "github/async-preventdefault": [2],
544
- "github/authenticity-token": [0],
545
- "github/get-attribute": [0],
546
- "github/js-class-name": [0],
547
- "github/no-blur": [0],
548
- "github/no-d-none": [0],
549
- "github/no-dataset": [2],
550
- "github/no-dynamic-script-tag": [2],
551
- "github/no-implicit-buggy-globals": [2],
552
- "github/no-inner-html": [0],
553
- "github/no-innerText": [2],
554
- "github/no-then": [0],
555
- "github/no-useless-passive": [2],
556
- "github/prefer-observers": [0],
557
- "github/require-passive-events": [2],
558
- "github/unescaped-html-literal": [0],
519
+ // "github/a11y-aria-label-is-well-formatted": [0],
520
+ // "github/a11y-no-title-attribute": [0],
521
+ // "github/a11y-no-visually-hidden-interactive-element": [0],
522
+ // "github/a11y-role-supports-aria-props": [0],
523
+ // "github/a11y-svg-has-accessible-name": [0],
524
+ // "github/array-foreach": [0],
525
+ // "github/async-currenttarget": [2],
526
+ // "github/async-preventdefault": [2],
527
+ // "github/authenticity-token": [0],
528
+ // "github/get-attribute": [0],
529
+ // "github/js-class-name": [0],
530
+ // "github/no-blur": [0],
531
+ // "github/no-d-none": [0],
532
+ // "github/no-dataset": [2],
533
+ // "github/no-dynamic-script-tag": [2],
534
+ // "github/no-implicit-buggy-globals": [2],
535
+ // "github/no-inner-html": [0],
536
+ // "github/no-innerText": [2],
537
+ // "github/no-then": [0],
538
+ // "github/no-useless-passive": [2],
539
+ // "github/prefer-observers": [0],
540
+ // "github/require-passive-events": [2],
541
+ // "github/unescaped-html-literal": [0],
559
542
  "grouped-accessor-pairs": [2],
560
543
  "guard-for-in": [0],
561
544
  "id-blacklist": [0],
@@ -620,7 +603,7 @@ const eslintrc = {
620
603
  "multiline-comment-style": [0],
621
604
  "new-cap": [0],
622
605
  "no-alert": [0],
623
- "no-array-constructor": [2],
606
+ "no-array-constructor": [0],
624
607
  "no-async-promise-executor": [0],
625
608
  "no-await-in-loop": [0],
626
609
  "no-bitwise": [0],
@@ -664,7 +647,7 @@ const eslintrc = {
664
647
  "no-global-assign": [2],
665
648
  "no-implicit-coercion": [2],
666
649
  "no-implicit-globals": [0],
667
- "no-implied-eval": [2],
650
+ "no-implied-eval": [0],
668
651
  "no-import-assign": [2],
669
652
  "no-inline-comments": [0],
670
653
  "no-inner-declarations": [2],
@@ -699,7 +682,7 @@ const eslintrc = {
699
682
  "no-promise-executor-return": [0],
700
683
  "no-proto": [2],
701
684
  "no-prototype-builtins": [2],
702
- "no-redeclare": [2],
685
+ "no-redeclare": [0],
703
686
  "no-regex-spaces": [2],
704
687
  "no-restricted-exports": [0],
705
688
  "no-restricted-globals": [2, ...restrictedGlobals],
@@ -735,8 +718,8 @@ const eslintrc = {
735
718
  "no-unused-expressions": [2],
736
719
  "no-unused-labels": [2],
737
720
  "no-unused-private-class-members": [2],
738
- "no-unused-vars": [2, { "vars": "all", "args": "all", "caughtErrors": "all", "ignoreRestSiblings": false, "argsIgnorePattern": "^_", "varsIgnorePattern": "^_[^_]*$", "caughtErrorsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_" }],
739
- "no-use-before-define": [2, { "functions": false, "classes": true, "variables": true, "allowNamedExports": true }],
721
+ "no-unused-vars": [0],
722
+ "no-use-before-define": [0],
740
723
  "no-useless-backreference": [2],
741
724
  "no-useless-call": [2],
742
725
  "no-useless-catch": [2],
@@ -1140,8 +1123,8 @@ const common = {
1140
1123
  "react-refresh": reactRefresh,
1141
1124
  regexp,
1142
1125
  sonarjs,
1143
- unicorn,
1144
- github
1126
+ unicorn
1127
+ // github,
1145
1128
  },
1146
1129
  settings: {
1147
1130
  "import/extensions": [...jsExts, tsExts],
@@ -1152,7 +1135,6 @@ const common = {
1152
1135
  }
1153
1136
  };
1154
1137
  const [
1155
- tsOverride,
1156
1138
  dtsOverride,
1157
1139
  workerOverride,
1158
1140
  testOverride,
@@ -1166,10 +1148,6 @@ const index = [
1166
1148
  files: [...jsExts, ...tsExts].map((ext) => `**/*${ext}`),
1167
1149
  rules: baseRules
1168
1150
  }, { arrayExtend: true }),
1169
- deepMerge(common, {
1170
- files: tsOverride.files,
1171
- rules: tsOverride.rules
1172
- }, { arrayExtend: true }),
1173
1151
  deepMerge(common, {
1174
1152
  files: dtsOverride.files,
1175
1153
  rules: dtsOverride.rules
package/dist/index.json CHANGED
@@ -6,7 +6,6 @@
6
6
  "@stylistic/eslint-plugin-js",
7
7
  "@typescript-eslint/eslint-plugin",
8
8
  "eslint-plugin-array-func",
9
- "eslint-plugin-github",
10
9
  "eslint-plugin-import",
11
10
  "eslint-plugin-no-use-extend-native",
12
11
  "eslint-plugin-react",
@@ -50,6 +49,7 @@
50
49
  ".tsx"
51
50
  ]
52
51
  },
52
+ "import/resolver": "typescript",
53
53
  "react": {
54
54
  "version": "19"
55
55
  },
@@ -72,36 +72,6 @@
72
72
  "!.storybook"
73
73
  ],
74
74
  "overrides": [
75
- {
76
- "files": [
77
- "**/*.ts"
78
- ],
79
- "rules": {
80
- "no-array-constructor": [
81
- 0
82
- ],
83
- "no-implied-eval": [
84
- 0
85
- ],
86
- "no-redeclare": [
87
- 0
88
- ],
89
- "no-unused-vars": [
90
- 0
91
- ],
92
- "no-use-before-define": [
93
- 0
94
- ],
95
- "require-await": [
96
- 0
97
- ]
98
- },
99
- "settings": {
100
- "import/resolver": {
101
- "typescript": true
102
- }
103
- }
104
- },
105
75
  {
106
76
  "files": [
107
77
  "**/*.d.ts"
@@ -1491,75 +1461,6 @@
1491
1461
  "getter-return": [
1492
1462
  2
1493
1463
  ],
1494
- "github/a11y-aria-label-is-well-formatted": [
1495
- 0
1496
- ],
1497
- "github/a11y-no-title-attribute": [
1498
- 0
1499
- ],
1500
- "github/a11y-no-visually-hidden-interactive-element": [
1501
- 0
1502
- ],
1503
- "github/a11y-role-supports-aria-props": [
1504
- 0
1505
- ],
1506
- "github/a11y-svg-has-accessible-name": [
1507
- 0
1508
- ],
1509
- "github/array-foreach": [
1510
- 0
1511
- ],
1512
- "github/async-currenttarget": [
1513
- 2
1514
- ],
1515
- "github/async-preventdefault": [
1516
- 2
1517
- ],
1518
- "github/authenticity-token": [
1519
- 0
1520
- ],
1521
- "github/get-attribute": [
1522
- 0
1523
- ],
1524
- "github/js-class-name": [
1525
- 0
1526
- ],
1527
- "github/no-blur": [
1528
- 0
1529
- ],
1530
- "github/no-d-none": [
1531
- 0
1532
- ],
1533
- "github/no-dataset": [
1534
- 2
1535
- ],
1536
- "github/no-dynamic-script-tag": [
1537
- 2
1538
- ],
1539
- "github/no-implicit-buggy-globals": [
1540
- 2
1541
- ],
1542
- "github/no-inner-html": [
1543
- 0
1544
- ],
1545
- "github/no-innerText": [
1546
- 2
1547
- ],
1548
- "github/no-then": [
1549
- 0
1550
- ],
1551
- "github/no-useless-passive": [
1552
- 2
1553
- ],
1554
- "github/prefer-observers": [
1555
- 0
1556
- ],
1557
- "github/require-passive-events": [
1558
- 2
1559
- ],
1560
- "github/unescaped-html-literal": [
1561
- 0
1562
- ],
1563
1464
  "grouped-accessor-pairs": [
1564
1465
  2
1565
1466
  ],
@@ -1771,7 +1672,7 @@
1771
1672
  0
1772
1673
  ],
1773
1674
  "no-array-constructor": [
1774
- 2
1675
+ 0
1775
1676
  ],
1776
1677
  "no-async-promise-executor": [
1777
1678
  0
@@ -1915,7 +1816,7 @@
1915
1816
  0
1916
1817
  ],
1917
1818
  "no-implied-eval": [
1918
- 2
1819
+ 0
1919
1820
  ],
1920
1821
  "no-import-assign": [
1921
1822
  2
@@ -2020,7 +1921,7 @@
2020
1921
  2
2021
1922
  ],
2022
1923
  "no-redeclare": [
2023
- 2
1924
+ 0
2024
1925
  ],
2025
1926
  "no-regex-spaces": [
2026
1927
  2
@@ -2205,26 +2106,10 @@
2205
2106
  2
2206
2107
  ],
2207
2108
  "no-unused-vars": [
2208
- 2,
2209
- {
2210
- "vars": "all",
2211
- "args": "all",
2212
- "caughtErrors": "all",
2213
- "ignoreRestSiblings": false,
2214
- "argsIgnorePattern": "^_",
2215
- "varsIgnorePattern": "^_[^_]*$",
2216
- "caughtErrorsIgnorePattern": "^_",
2217
- "destructuredArrayIgnorePattern": "^_"
2218
- }
2109
+ 0
2219
2110
  ],
2220
2111
  "no-use-before-define": [
2221
- 2,
2222
- {
2223
- "functions": false,
2224
- "classes": true,
2225
- "variables": true,
2226
- "allowNamedExports": true
2227
- }
2112
+ 0
2228
2113
  ],
2229
2114
  "no-useless-backreference": [
2230
2115
  2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-silverwind",
3
- "version": "96.0.6",
3
+ "version": "96.0.8",
4
4
  "description": "Exhaustive ESLint configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/eslint-config-silverwind",
@@ -23,7 +23,6 @@
23
23
  "deepie-merge": "1.3.0",
24
24
  "eslint-import-resolver-typescript": "3.7.0",
25
25
  "eslint-plugin-array-func": "4.0.0",
26
- "eslint-plugin-github": "5.1.4",
27
26
  "eslint-plugin-import": "2.31.0",
28
27
  "eslint-plugin-jsx-a11y": "6.10.2",
29
28
  "eslint-plugin-no-use-extend-native": "0.5.0",