@html-validate/eslint-config-typescript 5.10.3 → 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 +11 -0
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -18,6 +18,9 @@ module.exports = {
18
18
  /* prefer T[] for simple types, Array<T> for complex types (unions, etc) */
19
19
  "@typescript-eslint/array-type": ["error", { default: "array-simple" }],
20
20
 
21
+ /* allow getters which returns a literal */
22
+ "@typescript-eslint/class-literal-property-style": "off",
23
+
21
24
  "@typescript-eslint/explicit-function-return-type": [
22
25
  "error",
23
26
  {
@@ -48,5 +51,13 @@ module.exports = {
48
51
  argsIgnorePattern: "^_",
49
52
  },
50
53
  ],
54
+
55
+ /* allow overloading only if the parameters have different names */
56
+ "@typescript-eslint/unified-signatures": [
57
+ "error",
58
+ {
59
+ ignoreDifferentlyNamedParameters: true,
60
+ },
61
+ ],
51
62
  },
52
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/eslint-config-typescript",
3
- "version": "5.10.3",
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.1.0",
26
- "@typescript-eslint/parser": "6.1.0",
25
+ "@typescript-eslint/eslint-plugin": "6.2.0",
26
+ "@typescript-eslint/parser": "6.2.0",
27
27
  "eslint-plugin-tsdoc": "0.2.17"
28
28
  },
29
29
  "peerDependencies": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "b80287890eb3ea2e1df287beb8ef3f4706283013"
39
+ "gitHead": "3db7a933dfb40ed158838b408d9facc975cf3ebf"
40
40
  }