@html-validate/eslint-config-typescript-typeinfo 5.29.0 → 6.0.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.
Files changed (2) hide show
  1. package/package.json +5 -4
  2. package/legacy.cjs +0 -67
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/eslint-config-typescript-typeinfo",
3
- "version": "5.29.0",
3
+ "version": "6.0.3",
4
4
  "description": "Eslint sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "eslint",
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "author": "David Sveningsson <ext@sidvind.com>",
20
+ "type": "module",
20
21
  "main": "index.mjs",
21
22
  "files": [
22
23
  "*.cjs",
@@ -28,10 +29,10 @@
28
29
  "prepublishOnly": "release-prepublish --retain-scripts"
29
30
  },
30
31
  "dependencies": {
31
- "typescript-eslint": "8.26.1"
32
+ "typescript-eslint": "8.27.0"
32
33
  },
33
34
  "peerDependencies": {
34
- "eslint": "^8.0.0"
35
+ "eslint": "^9.0.0"
35
36
  },
36
37
  "engines": {
37
38
  "node": ">= 20.9.0",
@@ -40,5 +41,5 @@
40
41
  "publishConfig": {
41
42
  "access": "public"
42
43
  },
43
- "gitHead": "ca95247b7c60f1ba1a30795bece5fa762670d917"
44
+ "gitHead": "92a280c38c0502ff17fe44ba3e539972358298bb"
44
45
  }
package/legacy.cjs DELETED
@@ -1,67 +0,0 @@
1
- module.exports = {
2
- extends: [
3
- "plugin:@typescript-eslint/strict-type-checked",
4
- "plugin:@typescript-eslint/stylistic-type-checked",
5
- ],
6
-
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
-
11
- /* allow getters which returns a literal */
12
- "@typescript-eslint/class-literal-property-style": "off",
13
-
14
- /* no-explicit-any is enabled and for now this rule is a bit to tedious to
15
- * actually help */
16
- "@typescript-eslint/no-unsafe-member-access": "off",
17
-
18
- "@typescript-eslint/no-inferrable-types": "off",
19
-
20
- /* allow function(this: void, ...) */
21
- "@typescript-eslint/no-invalid-void-type": [
22
- "error",
23
- {
24
- allowAsThisParameter: true,
25
- },
26
- ],
27
-
28
- /* prefer interface over type = { .. } */
29
- "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
30
-
31
- /* enforce usage of "type" with export/import */
32
- "@typescript-eslint/consistent-type-exports": [
33
- "error",
34
- {
35
- fixMixedExportsWithInlineTypeSpecifier: true,
36
- },
37
- ],
38
- "@typescript-eslint/consistent-type-imports": [
39
- "error",
40
- {
41
- fixStyle: "inline-type-imports",
42
- },
43
- ],
44
-
45
- /* allow constructs such as `unknown | null`, while `unknown` does override
46
- * `null` it can still serve as a self-documenting type to signal that
47
- * `null` has a special meaning. It also helps when the type is to be
48
- * replaced with a better type later. */
49
- "@typescript-eslint/no-redundant-type-constituents": "off",
50
-
51
- "@typescript-eslint/no-unused-vars": [
52
- "error",
53
- {
54
- ignoreRestSiblings: true,
55
- argsIgnorePattern: "^_",
56
- },
57
- ],
58
-
59
- /* allow overloading only if the parameters have different names */
60
- "@typescript-eslint/unified-signatures": [
61
- "error",
62
- {
63
- ignoreDifferentlyNamedParameters: true,
64
- },
65
- ],
66
- },
67
- };