@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.
package/dist/index.js CHANGED
@@ -181,11 +181,10 @@ function react(options = {}) {
181
181
  name: `${RULE_PREFIX}/react/core/customize`,
182
182
  files: GLOB_SRC,
183
183
  rules: {
184
- "@eslint-react/jsx-dollar": "warn",
185
184
  "@eslint-react/no-missing-context-display-name": "warn",
186
185
  "@eslint-react/no-missing-component-display-name": "off",
187
- "@eslint-react/dom/no-hydrate": "error",
188
- "@eslint-react/no-useless-fragment": [
186
+ "@eslint-react/dom-no-hydrate": "error",
187
+ "@eslint-react/jsx-no-useless-fragment": [
189
188
  "warn",
190
189
  {
191
190
  allowEmptyFragment: true,
@@ -193,14 +192,7 @@ function react(options = {}) {
193
192
  }
194
193
  ],
195
194
  "@eslint-react/no-unnecessary-use-prefix": "warn",
196
- "@eslint-react/naming-convention/use-state": [
197
- "warn",
198
- {
199
- enforceAssignment: true,
200
- enforceSetterName: true
201
- }
202
- ],
203
- "@eslint-react/naming-convention/context-name": "warn",
195
+ "@eslint-react/naming-convention-context-name": "warn",
204
196
  ...language === "typescript" ? {
205
197
  "@eslint-react/no-leaked-conditional-rendering": "warn"
206
198
  } : {},
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhzh/eslint-config",
3
3
  "type": "module",
4
- "version": "1.25.1",
4
+ "version": "1.26.0",
5
5
  "description": "tinywaves's ESLint config",
6
6
  "author": {
7
7
  "name": "Lyle Zheng",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@prettier/plugin-xml": "^3.4.2",
42
- "eslint": "^10.0.3"
42
+ "eslint": "^10.2.1"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "@prettier/plugin-xml": {
@@ -47,56 +47,56 @@
47
47
  }
48
48
  },
49
49
  "dependencies": {
50
- "@clack/prompts": "^1.1.0",
50
+ "@clack/prompts": "^1.2.0",
51
51
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
52
- "@eslint-react/eslint-plugin": "^2.13.0",
52
+ "@eslint-react/eslint-plugin": "^4.2.3",
53
53
  "@eslint/js": "^10.0.1",
54
54
  "@stylistic/eslint-plugin": "^5.10.0",
55
- "@unocss/eslint-config": "66.6.6",
55
+ "@unocss/eslint-config": "66.6.8",
56
56
  "ansis": "^4.2.0",
57
57
  "cac": "^7.0.0",
58
58
  "eslint-merge-processors": "^2.0.0",
59
59
  "eslint-plugin-antfu": "^3.2.2",
60
60
  "eslint-plugin-format": "^2.0.1",
61
- "eslint-plugin-import-x": "^4.16.1",
62
- "eslint-plugin-jsonc": "^3.1.1",
61
+ "eslint-plugin-import-x": "^4.16.2",
62
+ "eslint-plugin-jsonc": "^3.1.2",
63
63
  "eslint-plugin-n": "^17.24.0",
64
- "eslint-plugin-package-json": "^0.89.4",
64
+ "eslint-plugin-package-json": "^0.91.1",
65
65
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
66
- "eslint-plugin-react-google-translate": "^0.1.1",
67
- "eslint-plugin-react-hooks": "^7.0.1",
66
+ "eslint-plugin-react-google-translate": "^1.0.4",
67
+ "eslint-plugin-react-hooks": "^7.1.1",
68
68
  "eslint-plugin-react-refresh": "^0.5.2",
69
- "eslint-plugin-regexp": "^3.0.0",
70
- "eslint-plugin-simple-import-sort": "^12.1.1",
69
+ "eslint-plugin-regexp": "^3.1.0",
70
+ "eslint-plugin-simple-import-sort": "^13.0.0",
71
71
  "eslint-plugin-tailwindcss": "4.0.0-beta.0",
72
72
  "eslint-plugin-toml": "^1.3.1",
73
- "eslint-plugin-unicorn": "^63.0.0",
73
+ "eslint-plugin-unicorn": "^64.0.0",
74
74
  "eslint-plugin-unused-imports": "^4.4.1",
75
- "eslint-plugin-vue": "^10.8.0",
75
+ "eslint-plugin-vue": "^10.9.0",
76
76
  "eslint-plugin-yml": "^3.3.1",
77
77
  "eslint-processor-vue-blocks": "^2.0.0",
78
- "globals": "^17.4.0",
78
+ "globals": "^17.5.0",
79
79
  "local-pkg": "^1.1.2",
80
80
  "toml-eslint-parser": "^1.0.3",
81
- "typescript-eslint": "^8.56.1",
81
+ "typescript-eslint": "^8.59.0",
82
82
  "vue-eslint-parser": "^10.4.0"
83
83
  },
84
84
  "devDependencies": {
85
- "@eslint/config-inspector": "^1.5.0",
85
+ "@eslint/config-inspector": "^2.0.0",
86
86
  "@prettier/plugin-xml": "^3.4.2",
87
87
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
88
- "@types/node": "^24.12.0",
89
- "@typescript-eslint/types": "^8.56.1",
90
- "bumpp": "^10.4.1",
88
+ "@types/node": "^24.12.2",
89
+ "@typescript-eslint/types": "^8.59.0",
90
+ "bumpp": "^11.0.1",
91
91
  "bundle-require": "^5.1.0",
92
- "eslint": "^10.0.3",
92
+ "eslint": "^10.2.1",
93
93
  "eslint-typegen": "^2.3.1",
94
- "lint-staged": "^16.3.2",
94
+ "lint-staged": "^16.4.0",
95
95
  "simple-git-hooks": "^2.13.1",
96
- "tailwindcss": "^4.2.1",
96
+ "tailwindcss": "^4.2.4",
97
97
  "tsup": "^8.5.1",
98
98
  "tsx": "^4.21.0",
99
- "typescript": "^5.9.3"
99
+ "typescript": "^6.0.3"
100
100
  },
101
101
  "simple-git-hooks": {
102
102
  "pre-commit": "npx lint-staged"