@html-validate/eslint-config-typescript-typeinfo 5.9.0 → 5.10.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/index.js +17 -1
- package/package.json +6 -2
package/index.js
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
extends: [
|
|
2
|
+
extends: [
|
|
3
|
+
"plugin:@typescript-eslint/strict-type-checked",
|
|
4
|
+
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
5
|
+
],
|
|
3
6
|
|
|
4
7
|
rules: {
|
|
8
|
+
/* prefer T[] for simple types, Array<T> for complex types (unions, etc) */
|
|
9
|
+
"@typescript-eslint/array-type": ["error", { default: "array-simple" }],
|
|
10
|
+
|
|
5
11
|
/* no-explicit-any is enabled and for now this rule is a bit to tedious to
|
|
6
12
|
* actually help */
|
|
7
13
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
8
14
|
|
|
15
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
16
|
+
|
|
9
17
|
/* prefer interface over type = { .. } */
|
|
10
18
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
11
19
|
|
|
@@ -15,5 +23,13 @@ module.exports = {
|
|
|
15
23
|
{ fixMixedExportsWithInlineTypeSpecifier: true },
|
|
16
24
|
],
|
|
17
25
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
26
|
+
|
|
27
|
+
"@typescript-eslint/no-unused-vars": [
|
|
28
|
+
"error",
|
|
29
|
+
{
|
|
30
|
+
ignoreRestSiblings: true,
|
|
31
|
+
argsIgnorePattern: "^_",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
18
34
|
},
|
|
19
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-validate/eslint-config-typescript-typeinfo",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.1",
|
|
4
4
|
"description": "Eslint sharable config used by the various HTML-validate packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"files": [
|
|
22
22
|
"*.js"
|
|
23
23
|
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "6.0.0",
|
|
26
|
+
"@typescript-eslint/parser": "6.0.0"
|
|
27
|
+
},
|
|
24
28
|
"peerDependencies": {
|
|
25
29
|
"eslint": ">= 7"
|
|
26
30
|
},
|
|
@@ -31,5 +35,5 @@
|
|
|
31
35
|
"publishConfig": {
|
|
32
36
|
"access": "public"
|
|
33
37
|
},
|
|
34
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "98fdb391b9461f627ea15ff46ed9801c0f65be9b"
|
|
35
39
|
}
|