eslint-config-silverwind 96.0.5 → 96.0.7

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
@@ -63,7 +63,7 @@ const eslintrc = {
63
63
  },
64
64
  "react": {
65
65
  // used by eslint-plugin-react
66
- version: "detect"
66
+ version: "19"
67
67
  },
68
68
  "linkComponents": [
69
69
  // used by eslint-plugin-react
@@ -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: {
@@ -563,7 +546,8 @@ const eslintrc = {
563
546
  "id-length": [0],
564
547
  "id-match": [0],
565
548
  "import/consistent-type-specifier-style": [0],
566
- "import/default": [2],
549
+ "import/default": [0],
550
+ // has bugs, at least with monaco-editor package
567
551
  "import/dynamic-import-chunkname": [0],
568
552
  "import/export": [2],
569
553
  "import/exports-last": [0],
@@ -619,7 +603,7 @@ const eslintrc = {
619
603
  "multiline-comment-style": [0],
620
604
  "new-cap": [0],
621
605
  "no-alert": [0],
622
- "no-array-constructor": [2],
606
+ "no-array-constructor": [0],
623
607
  "no-async-promise-executor": [0],
624
608
  "no-await-in-loop": [0],
625
609
  "no-bitwise": [0],
@@ -663,7 +647,7 @@ const eslintrc = {
663
647
  "no-global-assign": [2],
664
648
  "no-implicit-coercion": [2],
665
649
  "no-implicit-globals": [0],
666
- "no-implied-eval": [2],
650
+ "no-implied-eval": [0],
667
651
  "no-import-assign": [2],
668
652
  "no-inline-comments": [0],
669
653
  "no-inner-declarations": [2],
@@ -698,7 +682,7 @@ const eslintrc = {
698
682
  "no-promise-executor-return": [0],
699
683
  "no-proto": [2],
700
684
  "no-prototype-builtins": [2],
701
- "no-redeclare": [2],
685
+ "no-redeclare": [0],
702
686
  "no-regex-spaces": [2],
703
687
  "no-restricted-exports": [0],
704
688
  "no-restricted-globals": [2, ...restrictedGlobals],
@@ -734,8 +718,8 @@ const eslintrc = {
734
718
  "no-unused-expressions": [2],
735
719
  "no-unused-labels": [2],
736
720
  "no-unused-private-class-members": [2],
737
- "no-unused-vars": [2, { "vars": "all", "args": "all", "caughtErrors": "all", "ignoreRestSiblings": false, "argsIgnorePattern": "^_", "varsIgnorePattern": "^_[^_]*$", "caughtErrorsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_" }],
738
- "no-use-before-define": [2, { "functions": false, "classes": true, "variables": true, "allowNamedExports": true }],
721
+ "no-unused-vars": [0],
722
+ "no-use-before-define": [0],
739
723
  "no-useless-backreference": [2],
740
724
  "no-useless-call": [2],
741
725
  "no-useless-catch": [2],
@@ -1151,7 +1135,6 @@ const common = {
1151
1135
  }
1152
1136
  };
1153
1137
  const [
1154
- tsOverride,
1155
1138
  dtsOverride,
1156
1139
  workerOverride,
1157
1140
  testOverride,
@@ -1165,10 +1148,6 @@ const index = [
1165
1148
  files: [...jsExts, ...tsExts].map((ext) => `**/*${ext}`),
1166
1149
  rules: baseRules
1167
1150
  }, { arrayExtend: true }),
1168
- deepMerge(common, {
1169
- files: tsOverride.files,
1170
- rules: tsOverride.rules
1171
- }, { arrayExtend: true }),
1172
1151
  deepMerge(common, {
1173
1152
  files: dtsOverride.files,
1174
1153
  rules: dtsOverride.rules
package/dist/index.json CHANGED
@@ -50,8 +50,9 @@
50
50
  ".tsx"
51
51
  ]
52
52
  },
53
+ "import/resolver": "typescript",
53
54
  "react": {
54
- "version": "detect"
55
+ "version": "19"
55
56
  },
56
57
  "linkComponents": [
57
58
  {
@@ -72,36 +73,6 @@
72
73
  "!.storybook"
73
74
  ],
74
75
  "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
76
  {
106
77
  "files": [
107
78
  "**/*.d.ts"
@@ -1771,7 +1742,7 @@
1771
1742
  0
1772
1743
  ],
1773
1744
  "no-array-constructor": [
1774
- 2
1745
+ 0
1775
1746
  ],
1776
1747
  "no-async-promise-executor": [
1777
1748
  0
@@ -1915,7 +1886,7 @@
1915
1886
  0
1916
1887
  ],
1917
1888
  "no-implied-eval": [
1918
- 2
1889
+ 0
1919
1890
  ],
1920
1891
  "no-import-assign": [
1921
1892
  2
@@ -2020,7 +1991,7 @@
2020
1991
  2
2021
1992
  ],
2022
1993
  "no-redeclare": [
2023
- 2
1994
+ 0
2024
1995
  ],
2025
1996
  "no-regex-spaces": [
2026
1997
  2
@@ -2205,26 +2176,10 @@
2205
2176
  2
2206
2177
  ],
2207
2178
  "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
- }
2179
+ 0
2219
2180
  ],
2220
2181
  "no-use-before-define": [
2221
- 2,
2222
- {
2223
- "functions": false,
2224
- "classes": true,
2225
- "variables": true,
2226
- "allowNamedExports": true
2227
- }
2182
+ 0
2228
2183
  ],
2229
2184
  "no-useless-backreference": [
2230
2185
  2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-silverwind",
3
- "version": "96.0.5",
3
+ "version": "96.0.7",
4
4
  "description": "Exhaustive ESLint configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/eslint-config-silverwind",
@@ -32,7 +32,7 @@
32
32
  "eslint-plugin-react-hooks": "5.1.0",
33
33
  "eslint-plugin-react-refresh": "0.4.16",
34
34
  "eslint-plugin-regexp": "2.7.0",
35
- "eslint-plugin-sonarjs": "2.0.4",
35
+ "eslint-plugin-sonarjs": "3.0.1",
36
36
  "eslint-plugin-storybook": "0.11.1",
37
37
  "eslint-plugin-unicorn": "56.0.1",
38
38
  "eslint-plugin-validate-jsx-nesting": "0.1.1",
@@ -46,7 +46,6 @@
46
46
  "@types/eslint-plugin-jsx-a11y": "6.10.0",
47
47
  "@types/node": "22.10.1",
48
48
  "eslint": "9.16.0",
49
- "react": "19.0.0",
50
49
  "typescript": "5.7.2",
51
50
  "typescript-config-silverwind": "6.2.0",
52
51
  "updates": "16.4.0",