@html-validate/eslint-config-typescript 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 -63
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/eslint-config-typescript",
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",
@@ -30,10 +31,10 @@
30
31
  "dependencies": {
31
32
  "eslint-plugin-import": "2.31.0",
32
33
  "eslint-plugin-tsdoc": "0.4.0",
33
- "typescript-eslint": "8.26.1"
34
+ "typescript-eslint": "8.27.0"
34
35
  },
35
36
  "peerDependencies": {
36
- "eslint": "^8.0.0"
37
+ "eslint": "^9.0.0"
37
38
  },
38
39
  "engines": {
39
40
  "node": ">= 20.9.0",
@@ -42,5 +43,5 @@
42
43
  "publishConfig": {
43
44
  "access": "public"
44
45
  },
45
- "gitHead": "ca95247b7c60f1ba1a30795bece5fa762670d917"
46
+ "gitHead": "92a280c38c0502ff17fe44ba3e539972358298bb"
46
47
  }
package/legacy.cjs DELETED
@@ -1,63 +0,0 @@
1
- module.exports = {
2
- parser: "@typescript-eslint/parser",
3
-
4
- plugins: ["@typescript-eslint", "tsdoc"],
5
-
6
- extends: [
7
- "plugin:@typescript-eslint/strict",
8
- "plugin:@typescript-eslint/stylistic",
9
- "plugin:import/typescript",
10
- ],
11
-
12
- rules: {
13
- /* typescript handles the return types */
14
- "consistent-return": "off",
15
-
16
- "tsdoc/syntax": "error",
17
-
18
- /* prefer T[] for simple types, Array<T> for complex types (unions, etc) */
19
- "@typescript-eslint/array-type": ["error", { default: "array-simple" }],
20
-
21
- /* allow getters which returns a literal */
22
- "@typescript-eslint/class-literal-property-style": "off",
23
-
24
- "@typescript-eslint/explicit-function-return-type": [
25
- "error",
26
- {
27
- allowExpressions: true,
28
- },
29
- ],
30
- "@typescript-eslint/explicit-member-accessibility": "error",
31
- "@typescript-eslint/no-inferrable-types": "off",
32
-
33
- /* allow function(this: void, ...) */
34
- "@typescript-eslint/no-invalid-void-type": [
35
- "error",
36
- {
37
- allowAsThisParameter: true,
38
- },
39
- ],
40
-
41
- /* allow constructs such as `unknown | null`, while `unknown` does override
42
- * `null` it can still serve as a self-documenting type to signal that
43
- * `null` has a special meaning. It also helps when the type is to be
44
- * replaced with a better type later. */
45
- "@typescript-eslint/no-redundant-type-constituents": "off",
46
-
47
- "@typescript-eslint/no-unused-vars": [
48
- "error",
49
- {
50
- ignoreRestSiblings: true,
51
- argsIgnorePattern: "^_",
52
- },
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
- ],
62
- },
63
- };