eslint-config-silverwind 96.0.6 → 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
@@ -61,10 +61,10 @@ const eslintrc = {
61
61
  "import/parsers": {
62
62
  "@typescript-eslint/parser": [".js", ".jsx", ".ts", ".tsx"]
63
63
  },
64
- // avoid warning when react dependency is not there
65
- // "react": { // used by eslint-plugin-react
66
- // version: "detect",
67
- // },
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: {
@@ -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],
@@ -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
@@ -50,6 +50,7 @@
50
50
  ".tsx"
51
51
  ]
52
52
  },
53
+ "import/resolver": "typescript",
53
54
  "react": {
54
55
  "version": "19"
55
56
  },
@@ -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.6",
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",