@dhzh/eslint-config 2.0.3 → 2.1.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.mjs CHANGED
@@ -911,53 +911,6 @@ function json(options = {}) {
911
911
  name: `${RULE_PREFIX}/json/customize/package.json`,
912
912
  files: [GLOB_PACKAGE_JSON],
913
913
  rules: {
914
- "package-json/order-properties": ["error", { order: [
915
- "publisher",
916
- "name",
917
- "displayName",
918
- "type",
919
- "version",
920
- "private",
921
- "packageManager",
922
- "description",
923
- "author",
924
- "contributors",
925
- "license",
926
- "funding",
927
- "homepage",
928
- "repository",
929
- "bugs",
930
- "keywords",
931
- "categories",
932
- "sideEffects",
933
- "exports",
934
- "main",
935
- "module",
936
- "unpkg",
937
- "jsdelivr",
938
- "types",
939
- "typesVersions",
940
- "bin",
941
- "icon",
942
- "files",
943
- "engines",
944
- "activationEvents",
945
- "contributes",
946
- "scripts",
947
- "release-it",
948
- "peerDependencies",
949
- "peerDependenciesMeta",
950
- "dependencies",
951
- "optionalDependencies",
952
- "devDependencies",
953
- "pnpm",
954
- "overrides",
955
- "resolutions",
956
- "husky",
957
- "simple-git-hooks",
958
- "lint-staged",
959
- "eslintConfig"
960
- ] }],
961
914
  "package-json/require-type": packageJsonRequireType ? "error" : "off",
962
915
  ...overrides.packageJson
963
916
  }
@@ -1146,7 +1099,7 @@ function format(options = {}) {
1146
1099
  //#region src/configs/tailwindcss.ts
1147
1100
  function tailwindcss(options = {}) {
1148
1101
  const { overrides = {} } = options;
1149
- return isPackageExists("tailwindcss") ? [...pluginTailwindcss.configs["flat/recommended"].map((item) => ({
1102
+ return isPackageAvailable("tailwindcss") ? [...pluginTailwindcss.configs["flat/recommended"].map((item) => ({
1150
1103
  ...item,
1151
1104
  name: `${RULE_PREFIX}/tailwindcss/shared/${item.name?.replace("tailwindcss:", "")}`,
1152
1105
  files: GLOB_SRC
@@ -1163,7 +1116,7 @@ function tailwindcss(options = {}) {
1163
1116
  //#region src/configs/unocss.ts
1164
1117
  function unocss(options = {}) {
1165
1118
  const { overrides = {} } = options;
1166
- if (!isPackageExists("unocss")) return [];
1119
+ if (!isPackageAvailable("unocss")) return [];
1167
1120
  return [{
1168
1121
  ...configUnocss,
1169
1122
  name: `${RULE_PREFIX}/unocss/shared`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhzh/eslint-config",
3
3
  "type": "module",
4
- "version": "2.0.3",
4
+ "version": "2.1.0",
5
5
  "description": "tinywaves's ESLint config",
6
6
  "author": {
7
7
  "name": "Lyle Zheng",
@@ -30,7 +30,6 @@
30
30
  "main": "./dist/index.mjs",
31
31
  "module": "./dist/index.mjs",
32
32
  "types": "./dist/index.d.mts",
33
- "bin": "./bin/index.js",
34
33
  "files": [
35
34
  "bin",
36
35
  "dist"
@@ -40,7 +39,7 @@
40
39
  },
41
40
  "peerDependencies": {
42
41
  "@prettier/plugin-xml": "^3.4.2",
43
- "eslint": "^10.2.1"
42
+ "eslint": "^10.4.1"
44
43
  },
45
44
  "peerDependenciesMeta": {
46
45
  "@prettier/plugin-xml": {
@@ -48,22 +47,22 @@
48
47
  }
49
48
  },
50
49
  "dependencies": {
51
- "@clack/prompts": "^1.2.0",
52
- "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
53
- "@eslint-react/eslint-plugin": "^4.2.3",
50
+ "@clack/prompts": "^1.5.1",
51
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
52
+ "@eslint-react/eslint-plugin": "^5.8.12",
54
53
  "@eslint/js": "^10.0.1",
55
54
  "@manypkg/get-packages": "^3.1.0",
56
55
  "@stylistic/eslint-plugin": "^5.10.0",
57
- "@unocss/eslint-config": "66.6.8",
58
- "ansis": "^4.2.0",
56
+ "@unocss/eslint-config": "66.7.0",
57
+ "ansis": "^4.3.1",
59
58
  "cac": "^7.0.0",
60
59
  "eslint-merge-processors": "^2.0.0",
61
- "eslint-plugin-antfu": "^3.2.2",
60
+ "eslint-plugin-antfu": "^3.2.3",
62
61
  "eslint-plugin-format": "^2.0.1",
63
62
  "eslint-plugin-import-x": "^4.16.2",
64
- "eslint-plugin-jsonc": "^3.1.2",
65
- "eslint-plugin-n": "^17.24.0",
66
- "eslint-plugin-package-json": "^0.91.1",
63
+ "eslint-plugin-jsonc": "^3.2.0",
64
+ "eslint-plugin-n": "^18.0.1",
65
+ "eslint-plugin-package-json": "^1.3.0",
67
66
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
68
67
  "eslint-plugin-react-google-translate": "^1.0.4",
69
68
  "eslint-plugin-react-hooks": "^7.1.1",
@@ -71,37 +70,37 @@
71
70
  "eslint-plugin-regexp": "^3.1.0",
72
71
  "eslint-plugin-simple-import-sort": "^13.0.0",
73
72
  "eslint-plugin-tailwindcss": "4.0.0-beta.0",
74
- "eslint-plugin-toml": "^1.3.1",
73
+ "eslint-plugin-toml": "^1.4.0",
75
74
  "eslint-plugin-unicorn": "^64.0.0",
76
75
  "eslint-plugin-unused-imports": "^4.4.1",
77
- "eslint-plugin-vue": "^10.9.0",
78
- "eslint-plugin-yml": "^3.3.1",
76
+ "eslint-plugin-vue": "^10.9.2",
77
+ "eslint-plugin-yml": "^3.4.0",
79
78
  "eslint-processor-vue-blocks": "^2.0.0",
80
- "globals": "^17.5.0",
81
- "local-pkg": "^1.1.2",
79
+ "globals": "^17.6.0",
80
+ "local-pkg": "^1.2.1",
82
81
  "toml-eslint-parser": "^1.0.3",
83
- "typescript-eslint": "^8.59.0",
84
- "vue-eslint-parser": "^10.4.0"
82
+ "typescript-eslint": "^8.60.1",
83
+ "vue-eslint-parser": "^10.4.1"
85
84
  },
86
85
  "devDependencies": {
87
- "@eslint/config-inspector": "^2.0.0",
86
+ "@eslint/config-inspector": "^3.0.4",
88
87
  "@prettier/plugin-xml": "^3.4.2",
89
88
  "@types/eslint-plugin-tailwindcss": "^3.17.0",
90
- "@types/node": "^24.12.2",
91
- "@typescript-eslint/types": "^8.59.0",
92
- "bumpp": "^11.0.1",
89
+ "@types/node": "^24.13.1",
90
+ "@typescript-eslint/types": "^8.60.1",
91
+ "bumpp": "^11.1.0",
93
92
  "bundle-require": "^5.1.0",
94
- "eslint": "^10.2.1",
93
+ "eslint": "^10.4.1",
95
94
  "eslint-typegen": "^2.3.1",
96
- "lint-staged": "^16.4.0",
95
+ "lint-staged": "^17.0.7",
97
96
  "simple-git-hooks": "^2.13.1",
98
- "tailwindcss": "^4.2.4",
99
- "tsdown": "^0.21.10",
100
- "tsx": "^4.21.0",
97
+ "tailwindcss": "^4.3.0",
98
+ "tsdown": "^0.22.2",
99
+ "tsx": "^4.22.4",
101
100
  "typescript": "^6.0.3"
102
101
  },
103
102
  "simple-git-hooks": {
104
- "pre-commit": "npx lint-staged"
103
+ "pre-commit": "eval \"$(fnm env)\" && pnpm exec lint-staged"
105
104
  },
106
105
  "lint-staged": {
107
106
  "*": "eslint --fix"
@@ -115,5 +114,8 @@
115
114
  "release": "bumpp",
116
115
  "typecheck": "tsc --noEmit",
117
116
  "typegen": "tsx scripts/eslint-typegen.ts"
117
+ },
118
+ "bin": {
119
+ "eslint-config": "./bin/index.js"
118
120
  }
119
121
  }