@josundt/eslint-config 5.8.1 → 5.9.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@josundt/eslint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.9.3",
|
|
4
4
|
"description": "ESLint ruleset with required plugins for josundt TypeScript projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"main": "index.js",
|
|
14
14
|
"engines": {
|
|
15
|
-
"node": "
|
|
15
|
+
"node": ">=24.0.0"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"lint": "echo \"No linting for this project\"",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
"utils/**/*.js"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"typescript": ">=5.
|
|
41
|
+
"typescript": ">=5.9.3"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@eslint/js": "9.
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
47
|
-
"@typescript-eslint/parser": "8.
|
|
48
|
-
"eslint": "9.
|
|
49
|
-
"eslint-formatter-visualstudio": "
|
|
44
|
+
"@adra/prettier-config": "^3.7.4",
|
|
45
|
+
"@eslint/js": "9.39.2",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "8.53.0",
|
|
47
|
+
"@typescript-eslint/parser": "8.53.0",
|
|
48
|
+
"eslint": "9.39.2",
|
|
49
|
+
"eslint-formatter-visualstudio": "9.0.1",
|
|
50
50
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
51
51
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
52
52
|
"eslint-plugin-import": "2.32.0",
|
|
53
53
|
"eslint-plugin-jasmine": "4.2.2",
|
|
54
|
-
"eslint-plugin-jest": "29.
|
|
55
|
-
"eslint-plugin-jsdoc": "
|
|
56
|
-
"eslint-plugin-prettier": "5.5.
|
|
57
|
-
"eslint-plugin-unicorn": "
|
|
54
|
+
"eslint-plugin-jest": "29.12.1",
|
|
55
|
+
"eslint-plugin-jsdoc": "62.0.0",
|
|
56
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
57
|
+
"eslint-plugin-unicorn": "62.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/eslint__js": "9.14.0"
|
package/rules/eslint.js
CHANGED
|
@@ -90,7 +90,8 @@ export default {
|
|
|
90
90
|
// importNames: ["Bar"], // optional - if only certain exports are restricted
|
|
91
91
|
// message: "Please use Bar from /import-bar/baz/ instead."
|
|
92
92
|
// }
|
|
93
|
-
// ]
|
|
93
|
+
// ],
|
|
94
|
+
// allowTypeImports: true
|
|
94
95
|
}
|
|
95
96
|
],
|
|
96
97
|
"no-restricted-syntax": [
|
|
@@ -198,6 +199,12 @@ export default {
|
|
|
198
199
|
"prefer-object-spread": "error",
|
|
199
200
|
"prefer-promise-reject-errors": "error",
|
|
200
201
|
"prefer-template": "error",
|
|
202
|
+
"preserve-caught-error": [
|
|
203
|
+
"error",
|
|
204
|
+
{
|
|
205
|
+
requireCatchParameter: false // make catch block error parameter mandatory
|
|
206
|
+
}
|
|
207
|
+
],
|
|
201
208
|
"quote-props": ["error", "consistent-as-needed"],
|
|
202
209
|
"radix": "error",
|
|
203
210
|
"require-await": "error",
|
|
@@ -74,6 +74,7 @@ const extensions = new Map([
|
|
|
74
74
|
],
|
|
75
75
|
["no-undef", false], // Causes problems when scanning type annotations in TS code (v8.10.0)
|
|
76
76
|
["no-unused-expressions", true],
|
|
77
|
+
["no-unused-private-class-members", false], // Buggy rule, false positives (13.01.2026)
|
|
77
78
|
["no-unused-vars", true],
|
|
78
79
|
["no-use-before-define", false],
|
|
79
80
|
["no-useless-constructor", false],
|
|
@@ -81,10 +82,13 @@ const extensions = new Map([
|
|
|
81
82
|
"prefer-destructuring",
|
|
82
83
|
[{}, { enforceForDeclarationWithTypeAnnotation: false }]
|
|
83
84
|
],
|
|
84
|
-
[
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
[
|
|
86
|
+
"prefer-promise-reject-errors",
|
|
87
|
+
{
|
|
88
|
+
allowThrowingAny: false,
|
|
89
|
+
allowThrowingUnknown: false
|
|
90
|
+
}
|
|
91
|
+
],
|
|
88
92
|
["require-await", true],
|
|
89
93
|
["return-await", true]
|
|
90
94
|
]);
|
|
@@ -224,12 +224,18 @@ const rules = {
|
|
|
224
224
|
"no-unsafe-argument": "error",
|
|
225
225
|
"no-unsafe-assignment": "error",
|
|
226
226
|
"no-unsafe-call": "error",
|
|
227
|
-
"no-unsafe-member-access":
|
|
227
|
+
"no-unsafe-member-access": [
|
|
228
|
+
"error",
|
|
229
|
+
{
|
|
230
|
+
allowOptionalChaining: false
|
|
231
|
+
}
|
|
232
|
+
],
|
|
228
233
|
"no-unsafe-return": "error",
|
|
229
234
|
"no-unsafe-type-assertion": "off", // This rule will be difficult to enable because we sometimes need to force a type assertion
|
|
230
235
|
"no-useless-empty-export": "error",
|
|
231
236
|
"no-unnecessary-template-expression": "error",
|
|
232
237
|
"no-unnecessary-type-conversion": "error",
|
|
238
|
+
"no-useless-default-assignment": "error",
|
|
233
239
|
"no-var-requires": "error",
|
|
234
240
|
"non-nullable-type-assertion-style": "error",
|
|
235
241
|
"only-throw-error": [
|
|
@@ -326,6 +332,12 @@ const rules = {
|
|
|
326
332
|
//allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
|
327
333
|
}
|
|
328
334
|
],
|
|
335
|
+
"strict-void-return": [
|
|
336
|
+
"error",
|
|
337
|
+
{
|
|
338
|
+
allowReturnAny: false
|
|
339
|
+
}
|
|
340
|
+
],
|
|
329
341
|
"switch-exhaustiveness-check": [
|
|
330
342
|
"error",
|
|
331
343
|
{
|