@nihalgonsalves/esconfig 0.10.22 → 0.10.24
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/eslint.config.shared.js +16 -1
- package/package.json +8 -8
package/eslint.config.shared.js
CHANGED
|
@@ -129,6 +129,8 @@ export default tseslint.config(
|
|
|
129
129
|
alphabetize: { order: "asc" },
|
|
130
130
|
},
|
|
131
131
|
],
|
|
132
|
+
"import/no-duplicates": ["error", { "prefer-inline": true }],
|
|
133
|
+
"import/no-unresolved": "off",
|
|
132
134
|
"func-style": ["error", "expression"],
|
|
133
135
|
"arrow-body-style": "error",
|
|
134
136
|
"object-shorthand": "error",
|
|
@@ -137,6 +139,10 @@ export default tseslint.config(
|
|
|
137
139
|
"error",
|
|
138
140
|
{ fixStyle: "inline-type-imports" },
|
|
139
141
|
],
|
|
142
|
+
"@typescript-eslint/consistent-type-exports": [
|
|
143
|
+
"error",
|
|
144
|
+
{ fixMixedExportsWithInlineTypeSpecifier: true },
|
|
145
|
+
],
|
|
140
146
|
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
|
|
141
147
|
"@typescript-eslint/ban-ts-comment": [
|
|
142
148
|
"error",
|
|
@@ -169,8 +175,17 @@ export default tseslint.config(
|
|
|
169
175
|
"@typescript-eslint/method-signature-style": "error",
|
|
170
176
|
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
171
177
|
"@typescript-eslint/require-array-sort-compare": "error",
|
|
172
|
-
"@typescript-eslint/switch-exhaustiveness-check":
|
|
178
|
+
"@typescript-eslint/switch-exhaustiveness-check": [
|
|
179
|
+
"error",
|
|
180
|
+
{
|
|
181
|
+
allowDefaultCaseForExhaustiveSwitch: true,
|
|
182
|
+
requireDefaultForNonUnion: true,
|
|
183
|
+
considerDefaultExhaustiveForUnions: false,
|
|
184
|
+
},
|
|
185
|
+
],
|
|
173
186
|
"@typescript-eslint/require-await": "off",
|
|
187
|
+
"@typescript-eslint/prefer-enum-initializers": "error",
|
|
188
|
+
"@typescript-eslint/consistent-return": "error",
|
|
174
189
|
},
|
|
175
190
|
settings: {
|
|
176
191
|
"import/extensions": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nihalgonsalves/esconfig",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.24",
|
|
4
4
|
"description": "Shared ECMAScript Config (TS, Lint, Prettier)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "git@github.com:nihalgonsalves/esconfig.git",
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
"format:check": "prettier . --check"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@eslint/js": "^9.
|
|
25
|
+
"@eslint/js": "^9.21.0",
|
|
26
26
|
"eslint-config-prettier": "^10.0.1",
|
|
27
27
|
"eslint-plugin-import": "^2.31.0",
|
|
28
28
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
29
29
|
"eslint-plugin-react": "^7.37.4",
|
|
30
30
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
31
|
-
"typescript-eslint": "^8.24.
|
|
31
|
+
"typescript-eslint": "^8.24.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@commitlint/cli": "^19.7.1",
|
|
35
35
|
"@commitlint/config-conventional": "^19.7.1",
|
|
36
|
-
"@types/node": "^22.13.
|
|
37
|
-
"eslint": "^9.
|
|
38
|
-
"knip": "^5.44.
|
|
39
|
-
"lefthook": "^1.
|
|
40
|
-
"prettier": "^3.5.
|
|
36
|
+
"@types/node": "^22.13.5",
|
|
37
|
+
"eslint": "^9.21.0",
|
|
38
|
+
"knip": "^5.44.5",
|
|
39
|
+
"lefthook": "^1.11.0",
|
|
40
|
+
"prettier": "^3.5.2",
|
|
41
41
|
"typescript": "^5.7.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|