@forsakringskassan/eslint-config-typescript 12.2.2 → 13.0.0
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 +7 -8
- package/index.cjs +0 -77
- /package/{flat.d.mts → index.d.mts} +0 -0
- /package/{flat.mjs → index.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/eslint-config-typescript",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Försäkringskassans eslint shareable typescript config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -14,11 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"author": "Försäkringskassan",
|
|
17
|
-
"main": "index.
|
|
17
|
+
"main": "index.mjs",
|
|
18
18
|
"files": [
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"index.cjs"
|
|
19
|
+
"index.mjs",
|
|
20
|
+
"index.d.mts"
|
|
22
21
|
],
|
|
23
22
|
"dependencies": {
|
|
24
23
|
"@typescript-eslint/eslint-plugin": "8.43.0",
|
|
@@ -27,11 +26,11 @@
|
|
|
27
26
|
"typescript-eslint": "8.43.0"
|
|
28
27
|
},
|
|
29
28
|
"peerDependencies": {
|
|
30
|
-
"eslint": "^
|
|
29
|
+
"eslint": "^9.0.0",
|
|
31
30
|
"typescript": "^3.0.1 || ^4.0.2 || ^5.0.2"
|
|
32
31
|
},
|
|
33
32
|
"engines": {
|
|
34
|
-
"node": ">=
|
|
33
|
+
"node": ">= 22.0"
|
|
35
34
|
},
|
|
36
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "6e466e321dc87d4d3e525bbf1711e8ae9f6b8742"
|
|
37
36
|
}
|
package/index.cjs
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: "@typescript-eslint/parser",
|
|
3
|
-
|
|
4
|
-
plugins: ["@typescript-eslint", "tsdoc"],
|
|
5
|
-
|
|
6
|
-
extends: [
|
|
7
|
-
"plugin:@typescript-eslint/strict",
|
|
8
|
-
"plugin:@typescript-eslint/stylistic",
|
|
9
|
-
],
|
|
10
|
-
|
|
11
|
-
rules: {
|
|
12
|
-
/* Disabled as it is better to let typescript deal with this. For
|
|
13
|
-
* instance, ESLint cannot detect when exhaustive checks are made and
|
|
14
|
-
* the rest of the function is dead thus yielding false positives */
|
|
15
|
-
"consistent-return": "off",
|
|
16
|
-
|
|
17
|
-
/* prefer T[] for simple types, Array<T> for complex types (unions, etc) */
|
|
18
|
-
"@typescript-eslint/array-type": ["error", { default: "array-simple" }],
|
|
19
|
-
|
|
20
|
-
/* require all regular functions and methods to explicitly declare
|
|
21
|
-
* return value type */
|
|
22
|
-
"@typescript-eslint/explicit-function-return-type": [
|
|
23
|
-
"error",
|
|
24
|
-
{
|
|
25
|
-
allowExpressions: true,
|
|
26
|
-
allowHigherOrderFunctions: true,
|
|
27
|
-
allowTypedFunctionExpressions: true,
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
|
|
31
|
-
/* require all members to specify "public", "private", etc */
|
|
32
|
-
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
33
|
-
|
|
34
|
-
/* replace base max-params rule with @typescript-eslint/max-params */
|
|
35
|
-
"max-params": "off",
|
|
36
|
-
"@typescript-eslint/max-params": ["error", { max: 5 }],
|
|
37
|
-
|
|
38
|
-
/* allow "const foo: number = 0" */
|
|
39
|
-
"@typescript-eslint/no-inferrable-types": "off",
|
|
40
|
-
|
|
41
|
-
/* allow function(this: void, ...) */
|
|
42
|
-
"@typescript-eslint/no-invalid-void-type": [
|
|
43
|
-
"error",
|
|
44
|
-
{
|
|
45
|
-
allowAsThisParameter: true,
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
|
|
49
|
-
/* allow constructs such as `unknown | null`, while `unknown` does override
|
|
50
|
-
* `null` it can still serve as a self-documenting type to signal that
|
|
51
|
-
* `null` has a special meaning. It also helps when the type is to be
|
|
52
|
-
* replaced with a better type later. */
|
|
53
|
-
"@typescript-eslint/no-redundant-type-constituents": "off",
|
|
54
|
-
|
|
55
|
-
"@typescript-eslint/no-unused-vars": [
|
|
56
|
-
"error",
|
|
57
|
-
{
|
|
58
|
-
/* allow `foo` to be unused when `{ foo, ...spread} = bar` is
|
|
59
|
-
* used to extract members from objects */
|
|
60
|
-
ignoreRestSiblings: true,
|
|
61
|
-
|
|
62
|
-
/* allow _ as prefix for intentionally unused variables */
|
|
63
|
-
argsIgnorePattern: "^_",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
|
|
67
|
-
/* allow overloading only if the parameters have different names */
|
|
68
|
-
"@typescript-eslint/unified-signatures": [
|
|
69
|
-
"error",
|
|
70
|
-
{
|
|
71
|
-
ignoreDifferentlyNamedParameters: true,
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
|
|
75
|
-
"tsdoc/syntax": "error",
|
|
76
|
-
},
|
|
77
|
-
};
|
|
File without changes
|
/package/{flat.mjs → index.mjs}
RENAMED
|
File without changes
|