@html-validate/eslint-config-typescript-typeinfo 6.11.2 → 6.13.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/index.mjs +27 -0
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -75,6 +75,33 @@ export default defineConfig({
|
|
|
75
75
|
* replaced with a better type later. */
|
|
76
76
|
"@typescript-eslint/no-redundant-type-constituents": "off",
|
|
77
77
|
|
|
78
|
+
"@typescript-eslint/no-misused-promises": [
|
|
79
|
+
"error",
|
|
80
|
+
{
|
|
81
|
+
checksVoidReturn: {
|
|
82
|
+
/* it is useful to use "async () => { ... }" even if the
|
|
83
|
+
* receiving function doesn't really handle the promise */
|
|
84
|
+
arguments: false,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
|
|
89
|
+
/* allow expr === false */
|
|
90
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
|
91
|
+
|
|
92
|
+
/* allow numbers in template expressions */
|
|
93
|
+
"@typescript-eslint/restrict-template-expressions": [
|
|
94
|
+
"error",
|
|
95
|
+
{
|
|
96
|
+
allowAny: false,
|
|
97
|
+
allowBoolean: false,
|
|
98
|
+
allowNever: false,
|
|
99
|
+
allowNullish: false,
|
|
100
|
+
allowNumber: true,
|
|
101
|
+
allowRegExp: false,
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
|
|
78
105
|
"@typescript-eslint/no-unused-vars": [
|
|
79
106
|
"error",
|
|
80
107
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-validate/eslint-config-typescript-typeinfo",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.0",
|
|
4
4
|
"description": "Eslint sharable config used by the various HTML-validate packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "48725db7e0865dcd0aba16604734e60c4952625a"
|
|
45
45
|
}
|