@dhzh/eslint-config 1.24.0 → 1.25.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
@@ -200,14 +200,6 @@ function react(options = {}) {
200
200
  enforceSetterName: true
201
201
  }
202
202
  ],
203
- "@eslint-react/naming-convention/filename-extension": [
204
- "warn",
205
- {
206
- allow: "as-needed",
207
- extensions: [".jsx", ".tsx"],
208
- ignoreFilesWithoutCode: true
209
- }
210
- ],
211
203
  "@eslint-react/naming-convention/context-name": "warn",
212
204
  ...language === "typescript" ? {
213
205
  "@eslint-react/no-leaked-conditional-rendering": "warn"
@@ -360,7 +352,6 @@ function vue(options = {}) {
360
352
  // src/configs/stylistic.ts
361
353
  import pluginStylistic from "@stylistic/eslint-plugin";
362
354
  import pluginAntfu from "eslint-plugin-antfu";
363
- import pluginHyoban from "eslint-plugin-hyoban";
364
355
  function stylistic(options = {}) {
365
356
  const { overrides = {} } = options;
366
357
  const jsxIgnoreNodes = [
@@ -413,8 +404,7 @@ function stylistic(options = {}) {
413
404
  files: [...GLOB_SRC, ...GLOB_JSON_SRC, GLOB_VUE],
414
405
  plugins: {
415
406
  stylistic: pluginStylistic,
416
- antfu: pluginAntfu,
417
- hyoban: pluginHyoban
407
+ antfu: pluginAntfu
418
408
  },
419
409
  rules: {
420
410
  "curly": ["error", "all"],
@@ -527,7 +517,6 @@ function stylistic(options = {}) {
527
517
  "antfu/consistent-list-newline": "error",
528
518
  "antfu/top-level-function": "off",
529
519
  "antfu/curly": "off",
530
- "hyoban/prefer-early-return": "error",
531
520
  ...overrides
532
521
  }
533
522
  },
@@ -535,8 +524,7 @@ function stylistic(options = {}) {
535
524
  name: `${RULE_PREFIX}/stylistic/customize/jsx`,
536
525
  files: [...GLOB_JSX_SRC, GLOB_VUE],
537
526
  plugins: {
538
- stylistic: pluginStylistic,
539
- hyoban: pluginHyoban
527
+ stylistic: pluginStylistic
540
528
  },
541
529
  rules: {
542
530
  "stylistic/indent": [
@@ -608,7 +596,6 @@ function stylistic(options = {}) {
608
596
  ],
609
597
  "stylistic/jsx-sort-props": "off",
610
598
  "stylistic/jsx-indent-props": "off",
611
- "hyoban/jsx-attribute-spacing": "error",
612
599
  ...overrides
613
600
  }
614
601
  }
@@ -1062,8 +1049,6 @@ function node(options = {}) {
1062
1049
  // src/configs/json.ts
1063
1050
  import pluginJsonc from "eslint-plugin-jsonc";
1064
1051
  import pluginPackageJson from "eslint-plugin-package-json";
1065
- import parserJsonc from "jsonc-eslint-parser";
1066
- import pluginHyoban2 from "eslint-plugin-hyoban";
1067
1052
  function json(options = {}) {
1068
1053
  const {
1069
1054
  overrides = { core: {}, packageJson: {} },
@@ -1071,34 +1056,24 @@ function json(options = {}) {
1071
1056
  packageJsonRequireType = true
1072
1057
  } = options;
1073
1058
  return [
1074
- ...pluginJsonc.configs["flat/recommended-with-json"].map((item) => ({
1059
+ ...pluginJsonc.configs["recommended-with-json"].map((item) => ({
1075
1060
  ...item,
1076
1061
  name: `${RULE_PREFIX}/json/shared/json`,
1077
1062
  files: [GLOB_JSON]
1078
1063
  })),
1079
- ...pluginJsonc.configs["flat/recommended-with-jsonc"].map((item) => ({
1064
+ ...pluginJsonc.configs["recommended-with-jsonc"].map((item) => ({
1080
1065
  ...item,
1081
1066
  name: `${RULE_PREFIX}/json/shared/jsonc`,
1082
1067
  files: [GLOB_JSONC]
1083
1068
  })),
1084
- ...pluginJsonc.configs["flat/recommended-with-json5"].map((item) => ({
1069
+ ...pluginJsonc.configs["recommended-with-json5"].map((item) => ({
1085
1070
  ...item,
1086
1071
  name: `${RULE_PREFIX}/json/shared/json5`,
1087
1072
  files: [GLOB_JSON5]
1088
1073
  })),
1089
- {
1090
- name: `${RULE_PREFIX}/json/shared`,
1091
- files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],
1092
- languageOptions: {
1093
- parser: parserJsonc
1094
- }
1095
- },
1096
1074
  {
1097
1075
  name: `${RULE_PREFIX}/json/customize`,
1098
1076
  files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],
1099
- plugins: {
1100
- hyoban: pluginHyoban2
1101
- },
1102
1077
  rules: {
1103
1078
  "jsonc/array-bracket-spacing": ["error", "never"],
1104
1079
  "jsonc/comma-dangle": ["error", "never"],
@@ -1154,7 +1129,6 @@ function json(options = {}) {
1154
1129
  "jsonc/space-unary-ops": "error",
1155
1130
  "jsonc/valid-json-number": "error",
1156
1131
  "jsonc/vue-custom-block/no-parsing-error": "error",
1157
- "hyoban/jsonc-inline-spacing": "error",
1158
1132
  ...overrides.core
1159
1133
  }
1160
1134
  },
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dhzh/eslint-config",
3
3
  "type": "module",
4
- "version": "1.24.0",
5
- "description": "Lyle's ESLint config",
4
+ "version": "1.25.0",
5
+ "description": "tinywaves's ESLint config",
6
6
  "author": {
7
7
  "name": "Lyle Zheng",
8
8
  "email": "dhzhme@gmail.com"
@@ -35,11 +35,11 @@
35
35
  "dist"
36
36
  ],
37
37
  "engines": {
38
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
38
+ "node": "^22.13.0 || >=24"
39
39
  },
40
40
  "peerDependencies": {
41
- "@prettier/plugin-xml": "^3.4.1",
42
- "eslint": "^9.39.2"
41
+ "@prettier/plugin-xml": "^3.4.2",
42
+ "eslint": "^10.0.3"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "@prettier/plugin-xml": {
@@ -47,54 +47,53 @@
47
47
  }
48
48
  },
49
49
  "dependencies": {
50
- "@clack/prompts": "^1.0.0",
51
- "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
52
- "@eslint-react/eslint-plugin": "^2.8.1",
53
- "@eslint/js": "^9.39.2",
54
- "@stylistic/eslint-plugin": "^5.7.1",
55
- "@unocss/eslint-config": "66.6.0",
50
+ "@clack/prompts": "^1.1.0",
51
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
52
+ "@eslint-react/eslint-plugin": "^2.13.0",
53
+ "@eslint/js": "^10.0.1",
54
+ "@stylistic/eslint-plugin": "^5.10.0",
55
+ "@unocss/eslint-config": "66.6.6",
56
56
  "ansis": "^4.2.0",
57
- "cac": "^6.7.14",
57
+ "cac": "^7.0.0",
58
58
  "eslint-merge-processors": "^2.0.0",
59
- "eslint-plugin-antfu": "^3.1.3",
60
- "eslint-plugin-format": "^1.3.1",
61
- "eslint-plugin-hyoban": "^0.6.1",
59
+ "eslint-plugin-antfu": "^3.2.2",
60
+ "eslint-plugin-format": "^2.0.1",
62
61
  "eslint-plugin-import-x": "^4.16.1",
63
- "eslint-plugin-jsonc": "^2.21.0",
64
- "eslint-plugin-n": "^17.23.2",
65
- "eslint-plugin-package-json": "^0.88.2",
62
+ "eslint-plugin-jsonc": "^3.1.1",
63
+ "eslint-plugin-n": "^17.24.0",
64
+ "eslint-plugin-package-json": "^0.89.4",
66
65
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
67
66
  "eslint-plugin-react-google-translate": "^0.1.1",
68
67
  "eslint-plugin-react-hooks": "^7.0.1",
69
- "eslint-plugin-react-refresh": "^0.4.26",
68
+ "eslint-plugin-react-refresh": "^0.5.2",
70
69
  "eslint-plugin-regexp": "^3.0.0",
71
70
  "eslint-plugin-simple-import-sort": "^12.1.1",
72
71
  "eslint-plugin-tailwindcss": "4.0.0-beta.0",
73
- "eslint-plugin-toml": "^1.0.3",
74
- "eslint-plugin-unicorn": "^62.0.0",
75
- "eslint-plugin-unused-imports": "^4.3.0",
76
- "eslint-plugin-vue": "^10.7.0",
77
- "eslint-plugin-yml": "^3.0.0",
72
+ "eslint-plugin-toml": "^1.3.1",
73
+ "eslint-plugin-unicorn": "^63.0.0",
74
+ "eslint-plugin-unused-imports": "^4.4.1",
75
+ "eslint-plugin-vue": "^10.8.0",
76
+ "eslint-plugin-yml": "^3.3.1",
78
77
  "eslint-processor-vue-blocks": "^2.0.0",
79
- "globals": "^17.2.0",
80
- "jsonc-eslint-parser": "^2.4.2",
78
+ "globals": "^17.4.0",
81
79
  "local-pkg": "^1.1.2",
82
80
  "toml-eslint-parser": "^1.0.3",
83
- "typescript-eslint": "^8.54.0",
84
- "vue-eslint-parser": "^10.2.0"
81
+ "typescript-eslint": "^8.56.1",
82
+ "vue-eslint-parser": "^10.4.0"
85
83
  },
86
84
  "devDependencies": {
87
- "@eslint/config-inspector": "^1.4.2",
85
+ "@eslint/config-inspector": "^1.5.0",
88
86
  "@prettier/plugin-xml": "^3.4.2",
89
87
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
90
- "@types/node": "^22.19.7",
91
- "bumpp": "^10.4.0",
88
+ "@types/node": "^24.12.0",
89
+ "@typescript-eslint/types": "^8.56.1",
90
+ "bumpp": "^10.4.1",
92
91
  "bundle-require": "^5.1.0",
93
- "eslint": "^9.39.2",
94
- "eslint-typegen": "^2.3.0",
95
- "lint-staged": "^16.2.7",
92
+ "eslint": "^10.0.3",
93
+ "eslint-typegen": "^2.3.1",
94
+ "lint-staged": "^16.3.2",
96
95
  "simple-git-hooks": "^2.13.1",
97
- "tailwindcss": "^4.1.18",
96
+ "tailwindcss": "^4.2.1",
98
97
  "tsup": "^8.5.1",
99
98
  "tsx": "^4.21.0",
100
99
  "typescript": "^5.9.3"