@dhzh/eslint-config 1.25.1 → 1.26.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_ansis6 = __toESM(require("ansis"), 1);
28
28
  var import_cac = require("cac");
29
29
 
30
30
  // package.json
31
- var version = "1.25.1";
31
+ var version = "1.26.0";
32
32
  var package_default = {
33
33
  name: "@dhzh/eslint-config",
34
34
  type: "module",
35
35
  version,
36
- packageManager: "pnpm@10.30.3",
36
+ packageManager: "pnpm@10.33.2",
37
37
  description: "tinywaves's ESLint config",
38
38
  author: {
39
39
  name: "Lyle Zheng",
@@ -83,7 +83,7 @@ var package_default = {
83
83
  },
84
84
  peerDependencies: {
85
85
  "@prettier/plugin-xml": "^3.4.2",
86
- eslint: "^10.0.3"
86
+ eslint: "^10.2.1"
87
87
  },
88
88
  peerDependenciesMeta: {
89
89
  "@prettier/plugin-xml": {
@@ -91,56 +91,56 @@ var package_default = {
91
91
  }
92
92
  },
93
93
  dependencies: {
94
- "@clack/prompts": "^1.1.0",
94
+ "@clack/prompts": "^1.2.0",
95
95
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
96
- "@eslint-react/eslint-plugin": "^2.13.0",
96
+ "@eslint-react/eslint-plugin": "^4.2.3",
97
97
  "@eslint/js": "^10.0.1",
98
98
  "@stylistic/eslint-plugin": "^5.10.0",
99
- "@unocss/eslint-config": "66.6.6",
99
+ "@unocss/eslint-config": "66.6.8",
100
100
  ansis: "^4.2.0",
101
101
  cac: "^7.0.0",
102
102
  "eslint-merge-processors": "^2.0.0",
103
103
  "eslint-plugin-antfu": "^3.2.2",
104
104
  "eslint-plugin-format": "^2.0.1",
105
- "eslint-plugin-import-x": "^4.16.1",
106
- "eslint-plugin-jsonc": "^3.1.1",
105
+ "eslint-plugin-import-x": "^4.16.2",
106
+ "eslint-plugin-jsonc": "^3.1.2",
107
107
  "eslint-plugin-n": "^17.24.0",
108
- "eslint-plugin-package-json": "^0.89.4",
108
+ "eslint-plugin-package-json": "^0.91.1",
109
109
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
110
- "eslint-plugin-react-google-translate": "^0.1.1",
111
- "eslint-plugin-react-hooks": "^7.0.1",
110
+ "eslint-plugin-react-google-translate": "^1.0.4",
111
+ "eslint-plugin-react-hooks": "^7.1.1",
112
112
  "eslint-plugin-react-refresh": "^0.5.2",
113
- "eslint-plugin-regexp": "^3.0.0",
114
- "eslint-plugin-simple-import-sort": "^12.1.1",
113
+ "eslint-plugin-regexp": "^3.1.0",
114
+ "eslint-plugin-simple-import-sort": "^13.0.0",
115
115
  "eslint-plugin-tailwindcss": "4.0.0-beta.0",
116
116
  "eslint-plugin-toml": "^1.3.1",
117
- "eslint-plugin-unicorn": "^63.0.0",
117
+ "eslint-plugin-unicorn": "^64.0.0",
118
118
  "eslint-plugin-unused-imports": "^4.4.1",
119
- "eslint-plugin-vue": "^10.8.0",
119
+ "eslint-plugin-vue": "^10.9.0",
120
120
  "eslint-plugin-yml": "^3.3.1",
121
121
  "eslint-processor-vue-blocks": "^2.0.0",
122
- globals: "^17.4.0",
122
+ globals: "^17.5.0",
123
123
  "local-pkg": "^1.1.2",
124
124
  "toml-eslint-parser": "^1.0.3",
125
- "typescript-eslint": "^8.56.1",
125
+ "typescript-eslint": "^8.59.0",
126
126
  "vue-eslint-parser": "^10.4.0"
127
127
  },
128
128
  devDependencies: {
129
- "@eslint/config-inspector": "^1.5.0",
129
+ "@eslint/config-inspector": "^2.0.0",
130
130
  "@prettier/plugin-xml": "^3.4.2",
131
131
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
132
- "@types/node": "^24.12.0",
133
- "@typescript-eslint/types": "^8.56.1",
134
- bumpp: "^10.4.1",
132
+ "@types/node": "^24.12.2",
133
+ "@typescript-eslint/types": "^8.59.0",
134
+ bumpp: "^11.0.1",
135
135
  "bundle-require": "^5.1.0",
136
- eslint: "^10.0.3",
136
+ eslint: "^10.2.1",
137
137
  "eslint-typegen": "^2.3.1",
138
- "lint-staged": "^16.3.2",
138
+ "lint-staged": "^16.4.0",
139
139
  "simple-git-hooks": "^2.13.1",
140
- tailwindcss: "^4.2.1",
140
+ tailwindcss: "^4.2.4",
141
141
  tsup: "^8.5.1",
142
142
  tsx: "^4.21.0",
143
- typescript: "^5.9.3"
143
+ typescript: "^6.0.3"
144
144
  },
145
145
  "simple-git-hooks": {
146
146
  "pre-commit": "npx lint-staged"
package/dist/cli/index.js CHANGED
@@ -4,12 +4,12 @@ import c5 from "ansis";
4
4
  import { cac } from "cac";
5
5
 
6
6
  // package.json
7
- var version = "1.25.1";
7
+ var version = "1.26.0";
8
8
  var package_default = {
9
9
  name: "@dhzh/eslint-config",
10
10
  type: "module",
11
11
  version,
12
- packageManager: "pnpm@10.30.3",
12
+ packageManager: "pnpm@10.33.2",
13
13
  description: "tinywaves's ESLint config",
14
14
  author: {
15
15
  name: "Lyle Zheng",
@@ -59,7 +59,7 @@ var package_default = {
59
59
  },
60
60
  peerDependencies: {
61
61
  "@prettier/plugin-xml": "^3.4.2",
62
- eslint: "^10.0.3"
62
+ eslint: "^10.2.1"
63
63
  },
64
64
  peerDependenciesMeta: {
65
65
  "@prettier/plugin-xml": {
@@ -67,56 +67,56 @@ var package_default = {
67
67
  }
68
68
  },
69
69
  dependencies: {
70
- "@clack/prompts": "^1.1.0",
70
+ "@clack/prompts": "^1.2.0",
71
71
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
72
- "@eslint-react/eslint-plugin": "^2.13.0",
72
+ "@eslint-react/eslint-plugin": "^4.2.3",
73
73
  "@eslint/js": "^10.0.1",
74
74
  "@stylistic/eslint-plugin": "^5.10.0",
75
- "@unocss/eslint-config": "66.6.6",
75
+ "@unocss/eslint-config": "66.6.8",
76
76
  ansis: "^4.2.0",
77
77
  cac: "^7.0.0",
78
78
  "eslint-merge-processors": "^2.0.0",
79
79
  "eslint-plugin-antfu": "^3.2.2",
80
80
  "eslint-plugin-format": "^2.0.1",
81
- "eslint-plugin-import-x": "^4.16.1",
82
- "eslint-plugin-jsonc": "^3.1.1",
81
+ "eslint-plugin-import-x": "^4.16.2",
82
+ "eslint-plugin-jsonc": "^3.1.2",
83
83
  "eslint-plugin-n": "^17.24.0",
84
- "eslint-plugin-package-json": "^0.89.4",
84
+ "eslint-plugin-package-json": "^0.91.1",
85
85
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
86
- "eslint-plugin-react-google-translate": "^0.1.1",
87
- "eslint-plugin-react-hooks": "^7.0.1",
86
+ "eslint-plugin-react-google-translate": "^1.0.4",
87
+ "eslint-plugin-react-hooks": "^7.1.1",
88
88
  "eslint-plugin-react-refresh": "^0.5.2",
89
- "eslint-plugin-regexp": "^3.0.0",
90
- "eslint-plugin-simple-import-sort": "^12.1.1",
89
+ "eslint-plugin-regexp": "^3.1.0",
90
+ "eslint-plugin-simple-import-sort": "^13.0.0",
91
91
  "eslint-plugin-tailwindcss": "4.0.0-beta.0",
92
92
  "eslint-plugin-toml": "^1.3.1",
93
- "eslint-plugin-unicorn": "^63.0.0",
93
+ "eslint-plugin-unicorn": "^64.0.0",
94
94
  "eslint-plugin-unused-imports": "^4.4.1",
95
- "eslint-plugin-vue": "^10.8.0",
95
+ "eslint-plugin-vue": "^10.9.0",
96
96
  "eslint-plugin-yml": "^3.3.1",
97
97
  "eslint-processor-vue-blocks": "^2.0.0",
98
- globals: "^17.4.0",
98
+ globals: "^17.5.0",
99
99
  "local-pkg": "^1.1.2",
100
100
  "toml-eslint-parser": "^1.0.3",
101
- "typescript-eslint": "^8.56.1",
101
+ "typescript-eslint": "^8.59.0",
102
102
  "vue-eslint-parser": "^10.4.0"
103
103
  },
104
104
  devDependencies: {
105
- "@eslint/config-inspector": "^1.5.0",
105
+ "@eslint/config-inspector": "^2.0.0",
106
106
  "@prettier/plugin-xml": "^3.4.2",
107
107
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
108
- "@types/node": "^24.12.0",
109
- "@typescript-eslint/types": "^8.56.1",
110
- bumpp: "^10.4.1",
108
+ "@types/node": "^24.12.2",
109
+ "@typescript-eslint/types": "^8.59.0",
110
+ bumpp: "^11.0.1",
111
111
  "bundle-require": "^5.1.0",
112
- eslint: "^10.0.3",
112
+ eslint: "^10.2.1",
113
113
  "eslint-typegen": "^2.3.1",
114
- "lint-staged": "^16.3.2",
114
+ "lint-staged": "^16.4.0",
115
115
  "simple-git-hooks": "^2.13.1",
116
- tailwindcss: "^4.2.1",
116
+ tailwindcss: "^4.2.4",
117
117
  tsup: "^8.5.1",
118
118
  tsx: "^4.21.0",
119
- typescript: "^5.9.3"
119
+ typescript: "^6.0.3"
120
120
  },
121
121
  "simple-git-hooks": {
122
122
  "pre-commit": "npx lint-staged"
package/dist/index.cjs CHANGED
@@ -217,11 +217,10 @@ function react(options = {}) {
217
217
  name: `${RULE_PREFIX}/react/core/customize`,
218
218
  files: GLOB_SRC,
219
219
  rules: {
220
- "@eslint-react/jsx-dollar": "warn",
221
220
  "@eslint-react/no-missing-context-display-name": "warn",
222
221
  "@eslint-react/no-missing-component-display-name": "off",
223
- "@eslint-react/dom/no-hydrate": "error",
224
- "@eslint-react/no-useless-fragment": [
222
+ "@eslint-react/dom-no-hydrate": "error",
223
+ "@eslint-react/jsx-no-useless-fragment": [
225
224
  "warn",
226
225
  {
227
226
  allowEmptyFragment: true,
@@ -229,14 +228,7 @@ function react(options = {}) {
229
228
  }
230
229
  ],
231
230
  "@eslint-react/no-unnecessary-use-prefix": "warn",
232
- "@eslint-react/naming-convention/use-state": [
233
- "warn",
234
- {
235
- enforceAssignment: true,
236
- enforceSetterName: true
237
- }
238
- ],
239
- "@eslint-react/naming-convention/context-name": "warn",
231
+ "@eslint-react/naming-convention-context-name": "warn",
240
232
  ...language === "typescript" ? {
241
233
  "@eslint-react/no-leaked-conditional-rendering": "warn"
242
234
  } : {},