@josundt/eslint-config 5.4.1 → 5.5.1
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 +13 -10
- package/rules/eslint.js +1 -0
- package/rules/jasmine.js +1 -1
- package/rules/typescript-eslint/rules.js +11 -11
package/package.json
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@josundt/eslint-config",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.5.1",
|
4
4
|
"description": "ESLint ruleset with required plugins for josundt TypeScript projects",
|
5
5
|
"main": "index.js",
|
6
|
+
"engines": {
|
7
|
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
8
|
+
},
|
6
9
|
"scripts": {
|
7
10
|
"lint": "echo \"No linting for this project\"",
|
8
11
|
"build": "echo \"No build for this project\"",
|
@@ -27,22 +30,22 @@
|
|
27
30
|
"utils/**/*.js"
|
28
31
|
],
|
29
32
|
"peerDependencies": {
|
30
|
-
"typescript": ">=5.
|
33
|
+
"typescript": ">=5.5.2"
|
31
34
|
},
|
32
35
|
"dependencies": {
|
33
|
-
"@josundt/prettier-config": "^3.2
|
34
|
-
"@typescript-eslint/eslint-plugin": "7.
|
35
|
-
"@typescript-eslint/parser": "7.
|
36
|
+
"@josundt/prettier-config": "^3.3.2",
|
37
|
+
"@typescript-eslint/eslint-plugin": "7.14.1",
|
38
|
+
"@typescript-eslint/parser": "7.14.1",
|
36
39
|
"eslint": "8.57.0",
|
37
40
|
"eslint-import-resolver-typescript": "3.6.1",
|
38
|
-
"eslint-plugin-deprecation": "
|
41
|
+
"eslint-plugin-deprecation": "3.0.0",
|
39
42
|
"eslint-plugin-eslint-comments": "3.2.0",
|
40
43
|
"eslint-plugin-import": "2.29.1",
|
41
|
-
"eslint-plugin-jasmine": "4.
|
42
|
-
"eslint-plugin-jest": "
|
43
|
-
"eslint-plugin-jsdoc": "48.
|
44
|
+
"eslint-plugin-jasmine": "4.2.0",
|
45
|
+
"eslint-plugin-jest": "28.6.0",
|
46
|
+
"eslint-plugin-jsdoc": "48.5.0",
|
44
47
|
"eslint-plugin-no-lookahead-lookbehind-regexp": "0.3.0",
|
45
48
|
"eslint-plugin-prettier": "5.1.3",
|
46
|
-
"eslint-plugin-unicorn": "
|
49
|
+
"eslint-plugin-unicorn": "54.0.0"
|
47
50
|
}
|
48
51
|
}
|
package/rules/eslint.js
CHANGED
package/rules/jasmine.js
CHANGED
@@ -7,7 +7,7 @@ module.exports = {
|
|
7
7
|
rules: {
|
8
8
|
"jasmine/no-suite-dupes": ["error", "branch"],
|
9
9
|
"jasmine/no-spec-dupes": ["error", "branch"],
|
10
|
-
"jasmine/no-describe-variables": "
|
10
|
+
"jasmine/no-describe-variables": "off",
|
11
11
|
"jasmine/new-line-between-declarations": "off", // formatting rule conflicting with formatters (e.g. prettier)
|
12
12
|
"jasmine/new-line-before-expect": "off" // formatting rule conflicting with formatters (e.g. prettier)
|
13
13
|
}
|
@@ -195,13 +195,6 @@ const rules = {
|
|
195
195
|
"no-unsafe-enum-comparison": "error",
|
196
196
|
"no-unsafe-unary-minus": "error",
|
197
197
|
"no-this-alias": "error",
|
198
|
-
"no-throw-literal": [
|
199
|
-
"error",
|
200
|
-
{
|
201
|
-
allowThrowingAny: false, // Default is to allow throwing values of type any
|
202
|
-
allowThrowingUnknown: true // Default is to allow throwing values of type unknown
|
203
|
-
}
|
204
|
-
],
|
205
198
|
"no-unnecessary-boolean-literal-compare": "error",
|
206
199
|
"no-unnecessary-condition": "off", // allow runtime null checks etc even if reported not necessary by type system
|
207
200
|
"no-unnecessary-qualifier": "error",
|
@@ -215,9 +208,16 @@ const rules = {
|
|
215
208
|
"no-unsafe-return": "error",
|
216
209
|
"no-unused-vars-experimental": "off", // to strict with method params...
|
217
210
|
"no-useless-empty-export": "error",
|
218
|
-
"no-
|
211
|
+
"no-unnecessary-template-expression": "error",
|
219
212
|
"no-var-requires": "error",
|
220
213
|
"non-nullable-type-assertion-style": "error",
|
214
|
+
"only-throw-error": [
|
215
|
+
"error",
|
216
|
+
{
|
217
|
+
allowThrowingAny: false, // Default is to allow throwing values of type any
|
218
|
+
allowThrowingUnknown: true // Default is to allow throwing values of type unknown
|
219
|
+
}
|
220
|
+
],
|
221
221
|
"parameter-properties": [
|
222
222
|
"error",
|
223
223
|
{
|
@@ -259,7 +259,6 @@ const rules = {
|
|
259
259
|
allowSingleElementEquality: "never"
|
260
260
|
}
|
261
261
|
],
|
262
|
-
"prefer-ts-expect-error": "error",
|
263
262
|
"promise-function-async": "off",
|
264
263
|
"require-array-sort-compare": [
|
265
264
|
"error",
|
@@ -278,6 +277,7 @@ const rules = {
|
|
278
277
|
"error",
|
279
278
|
{
|
280
279
|
allowAny: false,
|
280
|
+
allowArray: false,
|
281
281
|
allowBoolean: false,
|
282
282
|
allowNever: false,
|
283
283
|
allowNullish: false,
|
@@ -285,7 +285,6 @@ const rules = {
|
|
285
285
|
allowRegExp: false
|
286
286
|
}
|
287
287
|
],
|
288
|
-
"sort-type-constituents": "off",
|
289
288
|
"strict-boolean-expressions": [
|
290
289
|
"off",
|
291
290
|
{
|
@@ -320,7 +319,8 @@ const rules = {
|
|
320
319
|
}
|
321
320
|
],
|
322
321
|
"unbound-method": "error",
|
323
|
-
"unified-signatures": "off"
|
322
|
+
"unified-signatures": "off",
|
323
|
+
"use-unknown-in-catch-callback-variable": "error"
|
324
324
|
};
|
325
325
|
|
326
326
|
// Rules - append "@typescript-eslint/" to rule names
|