@html-validate/eslint-config-typescript-typeinfo 5.10.2 → 5.10.4

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.
Files changed (2) hide show
  1. package/index.js +17 -0
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -8,6 +8,9 @@ module.exports = {
8
8
  /* prefer T[] for simple types, Array<T> for complex types (unions, etc) */
9
9
  "@typescript-eslint/array-type": ["error", { default: "array-simple" }],
10
10
 
11
+ /* allow getters which returns a literal */
12
+ "@typescript-eslint/class-literal-property-style": "off",
13
+
11
14
  /* no-explicit-any is enabled and for now this rule is a bit to tedious to
12
15
  * actually help */
13
16
  "@typescript-eslint/no-unsafe-member-access": "off",
@@ -32,6 +35,12 @@ module.exports = {
32
35
  ],
33
36
  "@typescript-eslint/consistent-type-imports": "error",
34
37
 
38
+ /* allow constructs such as `unknown | null`, while `unknown` does override
39
+ * `null` it can still serve as a self-documenting type to signal that
40
+ * `null` has a special meaning. It also helps when the type is to be
41
+ * replaced with a better type later. */
42
+ "@typescript-eslint/no-redundant-type-constituents": "off",
43
+
35
44
  "@typescript-eslint/no-unused-vars": [
36
45
  "error",
37
46
  {
@@ -39,5 +48,13 @@ module.exports = {
39
48
  argsIgnorePattern: "^_",
40
49
  },
41
50
  ],
51
+
52
+ /* allow overloading only if the parameters have different names */
53
+ "@typescript-eslint/unified-signatures": [
54
+ "error",
55
+ {
56
+ ignoreDifferentlyNamedParameters: true,
57
+ },
58
+ ],
42
59
  },
43
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/eslint-config-typescript-typeinfo",
3
- "version": "5.10.2",
3
+ "version": "5.10.4",
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.0.0",
26
- "@typescript-eslint/parser": "6.0.0"
25
+ "@typescript-eslint/eslint-plugin": "6.2.0",
26
+ "@typescript-eslint/parser": "6.2.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": "795c9d0e6f2c023e7be1300dae1d87c2fda9c0b2"
38
+ "gitHead": "3db7a933dfb40ed158838b408d9facc975cf3ebf"
39
39
  }