@dhzh/eslint-config 1.0.2 → 1.0.3
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/cli/index.cjs +14 -14
- package/dist/cli/index.js +14 -14
- package/dist/index.cjs +5 -0
- package/dist/index.js +5 -0
- package/package.json +13 -13
package/dist/cli/index.cjs
CHANGED
|
@@ -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.0.
|
|
31
|
+
var version = "1.0.3";
|
|
32
32
|
var package_default = {
|
|
33
33
|
name: "@dhzh/eslint-config",
|
|
34
34
|
type: "module",
|
|
35
35
|
version,
|
|
36
|
-
packageManager: "pnpm@10.
|
|
36
|
+
packageManager: "pnpm@10.9.0",
|
|
37
37
|
description: "Lyle's ESLint config",
|
|
38
38
|
author: {
|
|
39
39
|
name: "Lyle Zheng",
|
|
@@ -91,9 +91,9 @@ var package_default = {
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
dependencies: {
|
|
94
|
-
"@clack/prompts": "^0.10.
|
|
94
|
+
"@clack/prompts": "^0.10.1",
|
|
95
95
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
96
|
-
"@eslint-react/eslint-plugin": "^1.48.
|
|
96
|
+
"@eslint-react/eslint-plugin": "^1.48.5",
|
|
97
97
|
"@eslint/js": "^9.25.1",
|
|
98
98
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
99
99
|
"@unocss/eslint-config": "66.1.0-beta.12",
|
|
@@ -102,9 +102,9 @@ var package_default = {
|
|
|
102
102
|
"eslint-plugin-antfu": "^3.1.1",
|
|
103
103
|
"eslint-plugin-format": "^1.0.1",
|
|
104
104
|
"eslint-plugin-hyoban": "^0.6.1",
|
|
105
|
-
"eslint-plugin-import-x": "^4.
|
|
105
|
+
"eslint-plugin-import-x": "^4.11.0",
|
|
106
106
|
"eslint-plugin-jsonc": "^2.20.0",
|
|
107
|
-
"eslint-plugin-n": "^17.
|
|
107
|
+
"eslint-plugin-n": "^17.17.0",
|
|
108
108
|
"eslint-plugin-package-json": "^0.30.0",
|
|
109
109
|
"eslint-plugin-react-compiler": "19.1.0-rc.1",
|
|
110
110
|
"eslint-plugin-react-google-translate": "^0.1.1",
|
|
@@ -114,27 +114,27 @@ var package_default = {
|
|
|
114
114
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
115
115
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
116
116
|
"eslint-plugin-toml": "^0.12.0",
|
|
117
|
-
"eslint-plugin-unicorn": "^
|
|
117
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
118
118
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
119
|
-
"eslint-plugin-yml": "^1.
|
|
119
|
+
"eslint-plugin-yml": "^1.18.0",
|
|
120
120
|
globals: "^16.0.0",
|
|
121
121
|
"jsonc-eslint-parser": "^2.4.0",
|
|
122
122
|
"local-pkg": "^1.1.1",
|
|
123
123
|
"toml-eslint-parser": "^0.10.0",
|
|
124
|
-
"typescript-eslint": "^8.
|
|
124
|
+
"typescript-eslint": "^8.31.0",
|
|
125
125
|
"yaml-eslint-parser": "^1.3.0"
|
|
126
126
|
},
|
|
127
127
|
devDependencies: {
|
|
128
128
|
"@eslint/config-inspector": "^1.0.2",
|
|
129
129
|
"@prettier/plugin-xml": "^3.4.1",
|
|
130
130
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
131
|
-
"@types/node": "^22.
|
|
132
|
-
bumpp: "^10.0
|
|
131
|
+
"@types/node": "^22.15.2",
|
|
132
|
+
bumpp: "^10.1.0",
|
|
133
133
|
"bundle-require": "^5.1.0",
|
|
134
|
-
eslint: "^9.25.
|
|
134
|
+
eslint: "^9.25.1",
|
|
135
135
|
"eslint-typegen": "^2.1.0",
|
|
136
|
-
"lint-staged": "^15.5.
|
|
137
|
-
"simple-git-hooks": "^2.
|
|
136
|
+
"lint-staged": "^15.5.1",
|
|
137
|
+
"simple-git-hooks": "^2.13.0",
|
|
138
138
|
tsup: "^8.4.0",
|
|
139
139
|
tsx: "^4.19.3",
|
|
140
140
|
typescript: "^5.8.3"
|
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.0.
|
|
7
|
+
var version = "1.0.3";
|
|
8
8
|
var package_default = {
|
|
9
9
|
name: "@dhzh/eslint-config",
|
|
10
10
|
type: "module",
|
|
11
11
|
version,
|
|
12
|
-
packageManager: "pnpm@10.
|
|
12
|
+
packageManager: "pnpm@10.9.0",
|
|
13
13
|
description: "Lyle's ESLint config",
|
|
14
14
|
author: {
|
|
15
15
|
name: "Lyle Zheng",
|
|
@@ -67,9 +67,9 @@ var package_default = {
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
dependencies: {
|
|
70
|
-
"@clack/prompts": "^0.10.
|
|
70
|
+
"@clack/prompts": "^0.10.1",
|
|
71
71
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
72
|
-
"@eslint-react/eslint-plugin": "^1.48.
|
|
72
|
+
"@eslint-react/eslint-plugin": "^1.48.5",
|
|
73
73
|
"@eslint/js": "^9.25.1",
|
|
74
74
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
75
75
|
"@unocss/eslint-config": "66.1.0-beta.12",
|
|
@@ -78,9 +78,9 @@ var package_default = {
|
|
|
78
78
|
"eslint-plugin-antfu": "^3.1.1",
|
|
79
79
|
"eslint-plugin-format": "^1.0.1",
|
|
80
80
|
"eslint-plugin-hyoban": "^0.6.1",
|
|
81
|
-
"eslint-plugin-import-x": "^4.
|
|
81
|
+
"eslint-plugin-import-x": "^4.11.0",
|
|
82
82
|
"eslint-plugin-jsonc": "^2.20.0",
|
|
83
|
-
"eslint-plugin-n": "^17.
|
|
83
|
+
"eslint-plugin-n": "^17.17.0",
|
|
84
84
|
"eslint-plugin-package-json": "^0.30.0",
|
|
85
85
|
"eslint-plugin-react-compiler": "19.1.0-rc.1",
|
|
86
86
|
"eslint-plugin-react-google-translate": "^0.1.1",
|
|
@@ -90,27 +90,27 @@ var package_default = {
|
|
|
90
90
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
91
91
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
92
92
|
"eslint-plugin-toml": "^0.12.0",
|
|
93
|
-
"eslint-plugin-unicorn": "^
|
|
93
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
94
94
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
95
|
-
"eslint-plugin-yml": "^1.
|
|
95
|
+
"eslint-plugin-yml": "^1.18.0",
|
|
96
96
|
globals: "^16.0.0",
|
|
97
97
|
"jsonc-eslint-parser": "^2.4.0",
|
|
98
98
|
"local-pkg": "^1.1.1",
|
|
99
99
|
"toml-eslint-parser": "^0.10.0",
|
|
100
|
-
"typescript-eslint": "^8.
|
|
100
|
+
"typescript-eslint": "^8.31.0",
|
|
101
101
|
"yaml-eslint-parser": "^1.3.0"
|
|
102
102
|
},
|
|
103
103
|
devDependencies: {
|
|
104
104
|
"@eslint/config-inspector": "^1.0.2",
|
|
105
105
|
"@prettier/plugin-xml": "^3.4.1",
|
|
106
106
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
107
|
-
"@types/node": "^22.
|
|
108
|
-
bumpp: "^10.0
|
|
107
|
+
"@types/node": "^22.15.2",
|
|
108
|
+
bumpp: "^10.1.0",
|
|
109
109
|
"bundle-require": "^5.1.0",
|
|
110
|
-
eslint: "^9.25.
|
|
110
|
+
eslint: "^9.25.1",
|
|
111
111
|
"eslint-typegen": "^2.1.0",
|
|
112
|
-
"lint-staged": "^15.5.
|
|
113
|
-
"simple-git-hooks": "^2.
|
|
112
|
+
"lint-staged": "^15.5.1",
|
|
113
|
+
"simple-git-hooks": "^2.13.0",
|
|
114
114
|
tsup: "^8.4.0",
|
|
115
115
|
tsx: "^4.19.3",
|
|
116
116
|
typescript: "^5.8.3"
|
package/dist/index.cjs
CHANGED
|
@@ -1452,8 +1452,13 @@ function tailwindcss(options = {}) {
|
|
|
1452
1452
|
|
|
1453
1453
|
// src/configs/unocss.ts
|
|
1454
1454
|
var import_flat = __toESM(require("@unocss/eslint-config/flat"), 1);
|
|
1455
|
+
var import_local_pkg2 = require("local-pkg");
|
|
1455
1456
|
function unocss(options = {}) {
|
|
1456
1457
|
const { overrides = {} } = options;
|
|
1458
|
+
const isUnocssEnabled = (0, import_local_pkg2.isPackageExists)("unocss");
|
|
1459
|
+
if (!isUnocssEnabled) {
|
|
1460
|
+
return [];
|
|
1461
|
+
}
|
|
1457
1462
|
return [
|
|
1458
1463
|
{
|
|
1459
1464
|
...import_flat.default,
|
package/dist/index.js
CHANGED
|
@@ -1416,8 +1416,13 @@ function tailwindcss(options = {}) {
|
|
|
1416
1416
|
|
|
1417
1417
|
// src/configs/unocss.ts
|
|
1418
1418
|
import configUnocss from "@unocss/eslint-config/flat";
|
|
1419
|
+
import { isPackageExists as isPackageExists2 } from "local-pkg";
|
|
1419
1420
|
function unocss(options = {}) {
|
|
1420
1421
|
const { overrides = {} } = options;
|
|
1422
|
+
const isUnocssEnabled = isPackageExists2("unocss");
|
|
1423
|
+
if (!isUnocssEnabled) {
|
|
1424
|
+
return [];
|
|
1425
|
+
}
|
|
1421
1426
|
return [
|
|
1422
1427
|
{
|
|
1423
1428
|
...configUnocss,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"description": "Lyle's ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Lyle Zheng",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@clack/prompts": "^0.10.
|
|
50
|
+
"@clack/prompts": "^0.10.1",
|
|
51
51
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
52
|
-
"@eslint-react/eslint-plugin": "^1.48.
|
|
52
|
+
"@eslint-react/eslint-plugin": "^1.48.5",
|
|
53
53
|
"@eslint/js": "^9.25.1",
|
|
54
54
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
55
55
|
"@unocss/eslint-config": "66.1.0-beta.12",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"eslint-plugin-antfu": "^3.1.1",
|
|
59
59
|
"eslint-plugin-format": "^1.0.1",
|
|
60
60
|
"eslint-plugin-hyoban": "^0.6.1",
|
|
61
|
-
"eslint-plugin-import-x": "^4.
|
|
61
|
+
"eslint-plugin-import-x": "^4.11.0",
|
|
62
62
|
"eslint-plugin-jsonc": "^2.20.0",
|
|
63
|
-
"eslint-plugin-n": "^17.
|
|
63
|
+
"eslint-plugin-n": "^17.17.0",
|
|
64
64
|
"eslint-plugin-package-json": "^0.30.0",
|
|
65
65
|
"eslint-plugin-react-compiler": "19.1.0-rc.1",
|
|
66
66
|
"eslint-plugin-react-google-translate": "^0.1.1",
|
|
@@ -70,27 +70,27 @@
|
|
|
70
70
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
71
71
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
72
72
|
"eslint-plugin-toml": "^0.12.0",
|
|
73
|
-
"eslint-plugin-unicorn": "^
|
|
73
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
74
74
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
75
|
-
"eslint-plugin-yml": "^1.
|
|
75
|
+
"eslint-plugin-yml": "^1.18.0",
|
|
76
76
|
"globals": "^16.0.0",
|
|
77
77
|
"jsonc-eslint-parser": "^2.4.0",
|
|
78
78
|
"local-pkg": "^1.1.1",
|
|
79
79
|
"toml-eslint-parser": "^0.10.0",
|
|
80
|
-
"typescript-eslint": "^8.
|
|
80
|
+
"typescript-eslint": "^8.31.0",
|
|
81
81
|
"yaml-eslint-parser": "^1.3.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@eslint/config-inspector": "^1.0.2",
|
|
85
85
|
"@prettier/plugin-xml": "^3.4.1",
|
|
86
86
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
87
|
-
"@types/node": "^22.
|
|
88
|
-
"bumpp": "^10.0
|
|
87
|
+
"@types/node": "^22.15.2",
|
|
88
|
+
"bumpp": "^10.1.0",
|
|
89
89
|
"bundle-require": "^5.1.0",
|
|
90
|
-
"eslint": "^9.25.
|
|
90
|
+
"eslint": "^9.25.1",
|
|
91
91
|
"eslint-typegen": "^2.1.0",
|
|
92
|
-
"lint-staged": "^15.5.
|
|
93
|
-
"simple-git-hooks": "^2.
|
|
92
|
+
"lint-staged": "^15.5.1",
|
|
93
|
+
"simple-git-hooks": "^2.13.0",
|
|
94
94
|
"tsup": "^8.4.0",
|
|
95
95
|
"tsx": "^4.19.3",
|
|
96
96
|
"typescript": "^5.8.3"
|