@dhzh/eslint-config 1.9.0 → 1.11.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.
@@ -28,12 +28,12 @@ var import_ansis5 = __toESM(require("ansis"), 1);
28
28
  var import_cac = require("cac");
29
29
 
30
30
  // package.json
31
- var version = "1.9.0";
31
+ var version = "1.11.0";
32
32
  var package_default = {
33
33
  name: "@dhzh/eslint-config",
34
34
  type: "module",
35
35
  version,
36
- packageManager: "pnpm@10.14.0",
36
+ packageManager: "pnpm@10.15.1",
37
37
  description: "Lyle's ESLint config",
38
38
  author: {
39
39
  name: "Lyle Zheng",
@@ -96,7 +96,7 @@ var package_default = {
96
96
  "@eslint-react/eslint-plugin": "^1.48.5",
97
97
  "@eslint/js": "^9.25.1",
98
98
  "@stylistic/eslint-plugin": "^5.2.3",
99
- "@unocss/eslint-config": "66.4.2",
99
+ "@unocss/eslint-config": "66.5.0",
100
100
  ansis: "^4.0.0",
101
101
  cac: "^6.7.14",
102
102
  "eslint-merge-processors": "^2.0.0",
@@ -106,7 +106,7 @@ var package_default = {
106
106
  "eslint-plugin-import-x": "^4.11.0",
107
107
  "eslint-plugin-jsonc": "^2.20.0",
108
108
  "eslint-plugin-n": "^17.17.0",
109
- "eslint-plugin-package-json": "^0.54.0",
109
+ "eslint-plugin-package-json": "^0.56.1",
110
110
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
111
111
  "eslint-plugin-react-google-translate": "^0.1.1",
112
112
  "eslint-plugin-react-hooks": "^5.2.0",
@@ -132,7 +132,7 @@ var package_default = {
132
132
  "@eslint/config-inspector": "^1.0.2",
133
133
  "@prettier/plugin-xml": "^3.4.1",
134
134
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
135
- "@types/node": "^22.17.2",
135
+ "@types/node": "^22.18.0",
136
136
  bumpp: "^10.1.0",
137
137
  "bundle-require": "^5.1.0",
138
138
  eslint: "^9.25.1",
package/dist/cli/index.js CHANGED
@@ -4,12 +4,12 @@ import c4 from "ansis";
4
4
  import { cac } from "cac";
5
5
 
6
6
  // package.json
7
- var version = "1.9.0";
7
+ var version = "1.11.0";
8
8
  var package_default = {
9
9
  name: "@dhzh/eslint-config",
10
10
  type: "module",
11
11
  version,
12
- packageManager: "pnpm@10.14.0",
12
+ packageManager: "pnpm@10.15.1",
13
13
  description: "Lyle's ESLint config",
14
14
  author: {
15
15
  name: "Lyle Zheng",
@@ -72,7 +72,7 @@ var package_default = {
72
72
  "@eslint-react/eslint-plugin": "^1.48.5",
73
73
  "@eslint/js": "^9.25.1",
74
74
  "@stylistic/eslint-plugin": "^5.2.3",
75
- "@unocss/eslint-config": "66.4.2",
75
+ "@unocss/eslint-config": "66.5.0",
76
76
  ansis: "^4.0.0",
77
77
  cac: "^6.7.14",
78
78
  "eslint-merge-processors": "^2.0.0",
@@ -82,7 +82,7 @@ var package_default = {
82
82
  "eslint-plugin-import-x": "^4.11.0",
83
83
  "eslint-plugin-jsonc": "^2.20.0",
84
84
  "eslint-plugin-n": "^17.17.0",
85
- "eslint-plugin-package-json": "^0.54.0",
85
+ "eslint-plugin-package-json": "^0.56.1",
86
86
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
87
87
  "eslint-plugin-react-google-translate": "^0.1.1",
88
88
  "eslint-plugin-react-hooks": "^5.2.0",
@@ -108,7 +108,7 @@ var package_default = {
108
108
  "@eslint/config-inspector": "^1.0.2",
109
109
  "@prettier/plugin-xml": "^3.4.1",
110
110
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
111
- "@types/node": "^22.17.2",
111
+ "@types/node": "^22.18.0",
112
112
  bumpp: "^10.1.0",
113
113
  "bundle-require": "^5.1.0",
114
114
  eslint: "^9.25.1",
package/dist/index.cjs CHANGED
@@ -586,7 +586,7 @@ function stylistic(options = {}) {
586
586
  var import_node_process = __toESM(require("process"), 1);
587
587
  var import_typescript_eslint2 = __toESM(require("typescript-eslint"), 1);
588
588
  function typescript(options = {}) {
589
- const { overrides = {}, typeSafe = false } = options;
589
+ const { overrides = {}, typeSafe = false, strict = false } = options;
590
590
  return [
591
591
  ...import_typescript_eslint2.default.config(
592
592
  import_typescript_eslint2.default.configs.base,
@@ -664,7 +664,11 @@ function typescript(options = {}) {
664
664
  "@typescript-eslint/no-unsafe-assignment": "off",
665
665
  "@typescript-eslint/no-unsafe-member-access": "off",
666
666
  "@typescript-eslint/no-unsafe-call": "off",
667
- "@typescript-eslint/no-unsafe-return": "off"
667
+ "@typescript-eslint/no-unsafe-return": "off",
668
+ "@typescript-eslint/no-unsafe-argument": "off"
669
+ },
670
+ ...strict ? {} : {
671
+ "@typescript-eslint/no-extraneous-class": "off"
668
672
  },
669
673
  ...overrides
670
674
  }
package/dist/index.d.cts CHANGED
@@ -135,6 +135,7 @@ interface IStylisticConfigsOptions extends IConfigsOptions {
135
135
  }
136
136
  interface ITypescriptConfigsOptions extends IConfigsOptions {
137
137
  typeSafe?: boolean;
138
+ strict?: boolean;
138
139
  }
139
140
  interface IJavascriptConfigsOptions extends IConfigsOptions {
140
141
  }
package/dist/index.d.ts CHANGED
@@ -135,6 +135,7 @@ interface IStylisticConfigsOptions extends IConfigsOptions {
135
135
  }
136
136
  interface ITypescriptConfigsOptions extends IConfigsOptions {
137
137
  typeSafe?: boolean;
138
+ strict?: boolean;
138
139
  }
139
140
  interface IJavascriptConfigsOptions extends IConfigsOptions {
140
141
  }
package/dist/index.js CHANGED
@@ -550,7 +550,7 @@ function stylistic(options = {}) {
550
550
  import process from "node:process";
551
551
  import tseslint2 from "typescript-eslint";
552
552
  function typescript(options = {}) {
553
- const { overrides = {}, typeSafe = false } = options;
553
+ const { overrides = {}, typeSafe = false, strict = false } = options;
554
554
  return [
555
555
  ...tseslint2.config(
556
556
  tseslint2.configs.base,
@@ -628,7 +628,11 @@ function typescript(options = {}) {
628
628
  "@typescript-eslint/no-unsafe-assignment": "off",
629
629
  "@typescript-eslint/no-unsafe-member-access": "off",
630
630
  "@typescript-eslint/no-unsafe-call": "off",
631
- "@typescript-eslint/no-unsafe-return": "off"
631
+ "@typescript-eslint/no-unsafe-return": "off",
632
+ "@typescript-eslint/no-unsafe-argument": "off"
633
+ },
634
+ ...strict ? {} : {
635
+ "@typescript-eslint/no-extraneous-class": "off"
632
636
  },
633
637
  ...overrides
634
638
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhzh/eslint-config",
3
3
  "type": "module",
4
- "version": "1.9.0",
4
+ "version": "1.11.0",
5
5
  "description": "Lyle's ESLint config",
6
6
  "author": {
7
7
  "name": "Lyle Zheng",
@@ -52,7 +52,7 @@
52
52
  "@eslint-react/eslint-plugin": "^1.48.5",
53
53
  "@eslint/js": "^9.25.1",
54
54
  "@stylistic/eslint-plugin": "^5.2.3",
55
- "@unocss/eslint-config": "66.4.2",
55
+ "@unocss/eslint-config": "66.5.0",
56
56
  "ansis": "^4.0.0",
57
57
  "cac": "^6.7.14",
58
58
  "eslint-merge-processors": "^2.0.0",
@@ -62,7 +62,7 @@
62
62
  "eslint-plugin-import-x": "^4.11.0",
63
63
  "eslint-plugin-jsonc": "^2.20.0",
64
64
  "eslint-plugin-n": "^17.17.0",
65
- "eslint-plugin-package-json": "^0.54.0",
65
+ "eslint-plugin-package-json": "^0.56.1",
66
66
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
67
67
  "eslint-plugin-react-google-translate": "^0.1.1",
68
68
  "eslint-plugin-react-hooks": "^5.2.0",
@@ -88,7 +88,7 @@
88
88
  "@eslint/config-inspector": "^1.0.2",
89
89
  "@prettier/plugin-xml": "^3.4.1",
90
90
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
91
- "@types/node": "^22.17.2",
91
+ "@types/node": "^22.18.0",
92
92
  "bumpp": "^10.1.0",
93
93
  "bundle-require": "^5.1.0",
94
94
  "eslint": "^9.25.1",