@html-validate/eslint-config-typescript-typeinfo 5.10.1 → 5.10.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/index.js +14 -0
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -14,6 +14,14 @@ module.exports = {
|
|
|
14
14
|
|
|
15
15
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
16
16
|
|
|
17
|
+
/* allow function(this: void, ...) */
|
|
18
|
+
"@typescript-eslint/no-invalid-void-type": [
|
|
19
|
+
"error",
|
|
20
|
+
{
|
|
21
|
+
allowAsThisParameter: true,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
|
|
17
25
|
/* prefer interface over type = { .. } */
|
|
18
26
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
19
27
|
|
|
@@ -24,6 +32,12 @@ module.exports = {
|
|
|
24
32
|
],
|
|
25
33
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
26
34
|
|
|
35
|
+
/* allow constructs such as `unknown | null`, while `unknown` does override
|
|
36
|
+
* `null` it can still serve as a self-documenting type to signal that
|
|
37
|
+
* `null` has a special meaning. It also helps when the type is to be
|
|
38
|
+
* replaced with a better type later. */
|
|
39
|
+
"@typescript-eslint/no-redundant-type-constituents": "off",
|
|
40
|
+
|
|
27
41
|
"@typescript-eslint/no-unused-vars": [
|
|
28
42
|
"error",
|
|
29
43
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-validate/eslint-config-typescript-typeinfo",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.3",
|
|
4
4
|
"description": "Eslint sharable config used by the various HTML-validate packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"*.js"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
26
|
-
"@typescript-eslint/parser": "6.
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "6.1.0",
|
|
26
|
+
"@typescript-eslint/parser": "6.1.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"eslint": ">= 7"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "b80287890eb3ea2e1df287beb8ef3f4706283013"
|
|
39
39
|
}
|