@dhzh/eslint-config 1.20.1 → 1.20.2
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 +13 -13
- package/dist/cli/index.js +13 -13
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/package.json +12 -12
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.20.
|
|
31
|
+
var version = "1.20.2";
|
|
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.28.0",
|
|
37
37
|
description: "Lyle's ESLint config",
|
|
38
38
|
author: {
|
|
39
39
|
name: "Lyle Zheng",
|
|
@@ -93,20 +93,20 @@ var package_default = {
|
|
|
93
93
|
dependencies: {
|
|
94
94
|
"@clack/prompts": "^0.11.0",
|
|
95
95
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
96
|
-
"@eslint-react/eslint-plugin": "^2.4
|
|
96
|
+
"@eslint-react/eslint-plugin": "^2.5.4",
|
|
97
97
|
"@eslint/js": "^9.39.2",
|
|
98
|
-
"@stylistic/eslint-plugin": "^5.
|
|
99
|
-
"@unocss/eslint-config": "66.5.
|
|
98
|
+
"@stylistic/eslint-plugin": "^5.7.0",
|
|
99
|
+
"@unocss/eslint-config": "66.5.12",
|
|
100
100
|
ansis: "^4.2.0",
|
|
101
101
|
cac: "^6.7.14",
|
|
102
102
|
"eslint-merge-processors": "^2.0.0",
|
|
103
|
-
"eslint-plugin-antfu": "^3.1.
|
|
104
|
-
"eslint-plugin-format": "^1.
|
|
103
|
+
"eslint-plugin-antfu": "^3.1.3",
|
|
104
|
+
"eslint-plugin-format": "^1.2.0",
|
|
105
105
|
"eslint-plugin-hyoban": "^0.6.1",
|
|
106
106
|
"eslint-plugin-import-x": "^4.16.1",
|
|
107
107
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
108
108
|
"eslint-plugin-n": "^17.23.1",
|
|
109
|
-
"eslint-plugin-package-json": "^0.
|
|
109
|
+
"eslint-plugin-package-json": "^0.88.1",
|
|
110
110
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
111
111
|
"eslint-plugin-react-google-translate": "^0.1.1",
|
|
112
112
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -114,17 +114,17 @@ var package_default = {
|
|
|
114
114
|
"eslint-plugin-regexp": "^2.10.0",
|
|
115
115
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
116
116
|
"eslint-plugin-tailwindcss": "4.0.0-beta.0",
|
|
117
|
-
"eslint-plugin-toml": "^0.
|
|
117
|
+
"eslint-plugin-toml": "^0.13.1",
|
|
118
118
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
119
119
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
120
120
|
"eslint-plugin-vue": "^10.6.2",
|
|
121
121
|
"eslint-plugin-yml": "^1.19.1",
|
|
122
122
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
123
|
-
globals: "^
|
|
123
|
+
globals: "^17.0.0",
|
|
124
124
|
"jsonc-eslint-parser": "^2.4.2",
|
|
125
125
|
"local-pkg": "^1.1.2",
|
|
126
|
-
"toml-eslint-parser": "^0.
|
|
127
|
-
"typescript-eslint": "^8.
|
|
126
|
+
"toml-eslint-parser": "^1.0.0",
|
|
127
|
+
"typescript-eslint": "^8.52.0",
|
|
128
128
|
"vue-eslint-parser": "^10.2.0",
|
|
129
129
|
"yaml-eslint-parser": "^1.3.2"
|
|
130
130
|
},
|
|
@@ -132,7 +132,7 @@ var package_default = {
|
|
|
132
132
|
"@eslint/config-inspector": "^1.4.2",
|
|
133
133
|
"@prettier/plugin-xml": "^3.4.2",
|
|
134
134
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
135
|
-
"@types/node": "^22.19.
|
|
135
|
+
"@types/node": "^22.19.5",
|
|
136
136
|
bumpp: "^10.3.2",
|
|
137
137
|
"bundle-require": "^5.1.0",
|
|
138
138
|
eslint: "^9.39.2",
|
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.20.
|
|
7
|
+
var version = "1.20.2";
|
|
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.28.0",
|
|
13
13
|
description: "Lyle's ESLint config",
|
|
14
14
|
author: {
|
|
15
15
|
name: "Lyle Zheng",
|
|
@@ -69,20 +69,20 @@ var package_default = {
|
|
|
69
69
|
dependencies: {
|
|
70
70
|
"@clack/prompts": "^0.11.0",
|
|
71
71
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
72
|
-
"@eslint-react/eslint-plugin": "^2.4
|
|
72
|
+
"@eslint-react/eslint-plugin": "^2.5.4",
|
|
73
73
|
"@eslint/js": "^9.39.2",
|
|
74
|
-
"@stylistic/eslint-plugin": "^5.
|
|
75
|
-
"@unocss/eslint-config": "66.5.
|
|
74
|
+
"@stylistic/eslint-plugin": "^5.7.0",
|
|
75
|
+
"@unocss/eslint-config": "66.5.12",
|
|
76
76
|
ansis: "^4.2.0",
|
|
77
77
|
cac: "^6.7.14",
|
|
78
78
|
"eslint-merge-processors": "^2.0.0",
|
|
79
|
-
"eslint-plugin-antfu": "^3.1.
|
|
80
|
-
"eslint-plugin-format": "^1.
|
|
79
|
+
"eslint-plugin-antfu": "^3.1.3",
|
|
80
|
+
"eslint-plugin-format": "^1.2.0",
|
|
81
81
|
"eslint-plugin-hyoban": "^0.6.1",
|
|
82
82
|
"eslint-plugin-import-x": "^4.16.1",
|
|
83
83
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
84
84
|
"eslint-plugin-n": "^17.23.1",
|
|
85
|
-
"eslint-plugin-package-json": "^0.
|
|
85
|
+
"eslint-plugin-package-json": "^0.88.1",
|
|
86
86
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
87
87
|
"eslint-plugin-react-google-translate": "^0.1.1",
|
|
88
88
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -90,17 +90,17 @@ var package_default = {
|
|
|
90
90
|
"eslint-plugin-regexp": "^2.10.0",
|
|
91
91
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
92
92
|
"eslint-plugin-tailwindcss": "4.0.0-beta.0",
|
|
93
|
-
"eslint-plugin-toml": "^0.
|
|
93
|
+
"eslint-plugin-toml": "^0.13.1",
|
|
94
94
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
95
95
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
96
96
|
"eslint-plugin-vue": "^10.6.2",
|
|
97
97
|
"eslint-plugin-yml": "^1.19.1",
|
|
98
98
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
99
|
-
globals: "^
|
|
99
|
+
globals: "^17.0.0",
|
|
100
100
|
"jsonc-eslint-parser": "^2.4.2",
|
|
101
101
|
"local-pkg": "^1.1.2",
|
|
102
|
-
"toml-eslint-parser": "^0.
|
|
103
|
-
"typescript-eslint": "^8.
|
|
102
|
+
"toml-eslint-parser": "^1.0.0",
|
|
103
|
+
"typescript-eslint": "^8.52.0",
|
|
104
104
|
"vue-eslint-parser": "^10.2.0",
|
|
105
105
|
"yaml-eslint-parser": "^1.3.2"
|
|
106
106
|
},
|
|
@@ -108,7 +108,7 @@ var package_default = {
|
|
|
108
108
|
"@eslint/config-inspector": "^1.4.2",
|
|
109
109
|
"@prettier/plugin-xml": "^3.4.2",
|
|
110
110
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
111
|
-
"@types/node": "^22.19.
|
|
111
|
+
"@types/node": "^22.19.5",
|
|
112
112
|
bumpp: "^10.3.2",
|
|
113
113
|
"bundle-require": "^5.1.0",
|
|
114
114
|
eslint: "^9.39.2",
|
package/dist/index.cjs
CHANGED
|
@@ -1366,7 +1366,7 @@ function imports(options = {}) {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
|
|
1368
1368
|
// src/configs/format.ts
|
|
1369
|
-
var
|
|
1369
|
+
var import_eslint_plugin_format = __toESM(require("eslint-plugin-format"), 1);
|
|
1370
1370
|
var mergePrettierOptions = (options, overrides) => ({
|
|
1371
1371
|
...options,
|
|
1372
1372
|
...overrides,
|
|
@@ -1414,7 +1414,7 @@ function format(options = {}) {
|
|
|
1414
1414
|
configs2.push({
|
|
1415
1415
|
name: `${RULE_PREFIX}/format`,
|
|
1416
1416
|
plugins: {
|
|
1417
|
-
format:
|
|
1417
|
+
format: import_eslint_plugin_format.default
|
|
1418
1418
|
}
|
|
1419
1419
|
});
|
|
1420
1420
|
if (enable.html) {
|
|
@@ -1682,7 +1682,7 @@ function yml(options = {}) {
|
|
|
1682
1682
|
|
|
1683
1683
|
// src/configs/toml.ts
|
|
1684
1684
|
var import_eslint_plugin_toml = __toESM(require("eslint-plugin-toml"), 1);
|
|
1685
|
-
var
|
|
1685
|
+
var parserToml = __toESM(require("toml-eslint-parser"), 1);
|
|
1686
1686
|
function toml(options = {}) {
|
|
1687
1687
|
const { overrides = {}, indent = 2 } = options;
|
|
1688
1688
|
return [
|
|
@@ -1695,7 +1695,7 @@ function toml(options = {}) {
|
|
|
1695
1695
|
name: `${RULE_PREFIX}/toml/customize`,
|
|
1696
1696
|
files: [GLOB_TOML],
|
|
1697
1697
|
languageOptions: {
|
|
1698
|
-
parser:
|
|
1698
|
+
parser: parserToml
|
|
1699
1699
|
},
|
|
1700
1700
|
rules: {
|
|
1701
1701
|
"toml/comma-style": "error",
|
package/dist/index.js
CHANGED
|
@@ -1330,7 +1330,7 @@ function imports(options = {}) {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
1332
|
// src/configs/format.ts
|
|
1333
|
-
import
|
|
1333
|
+
import pluginFormat from "eslint-plugin-format";
|
|
1334
1334
|
var mergePrettierOptions = (options, overrides) => ({
|
|
1335
1335
|
...options,
|
|
1336
1336
|
...overrides,
|
|
@@ -1646,7 +1646,7 @@ function yml(options = {}) {
|
|
|
1646
1646
|
|
|
1647
1647
|
// src/configs/toml.ts
|
|
1648
1648
|
import pluginToml from "eslint-plugin-toml";
|
|
1649
|
-
import parserToml from "toml-eslint-parser";
|
|
1649
|
+
import * as parserToml from "toml-eslint-parser";
|
|
1650
1650
|
function toml(options = {}) {
|
|
1651
1651
|
const { overrides = {}, indent = 2 } = options;
|
|
1652
1652
|
return [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.20.
|
|
4
|
+
"version": "1.20.2",
|
|
5
5
|
"description": "Lyle's ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Lyle Zheng",
|
|
@@ -49,20 +49,20 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@clack/prompts": "^0.11.0",
|
|
51
51
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
52
|
-
"@eslint-react/eslint-plugin": "^2.4
|
|
52
|
+
"@eslint-react/eslint-plugin": "^2.5.4",
|
|
53
53
|
"@eslint/js": "^9.39.2",
|
|
54
|
-
"@stylistic/eslint-plugin": "^5.
|
|
55
|
-
"@unocss/eslint-config": "66.5.
|
|
54
|
+
"@stylistic/eslint-plugin": "^5.7.0",
|
|
55
|
+
"@unocss/eslint-config": "66.5.12",
|
|
56
56
|
"ansis": "^4.2.0",
|
|
57
57
|
"cac": "^6.7.14",
|
|
58
58
|
"eslint-merge-processors": "^2.0.0",
|
|
59
|
-
"eslint-plugin-antfu": "^3.1.
|
|
60
|
-
"eslint-plugin-format": "^1.
|
|
59
|
+
"eslint-plugin-antfu": "^3.1.3",
|
|
60
|
+
"eslint-plugin-format": "^1.2.0",
|
|
61
61
|
"eslint-plugin-hyoban": "^0.6.1",
|
|
62
62
|
"eslint-plugin-import-x": "^4.16.1",
|
|
63
63
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
64
64
|
"eslint-plugin-n": "^17.23.1",
|
|
65
|
-
"eslint-plugin-package-json": "^0.
|
|
65
|
+
"eslint-plugin-package-json": "^0.88.1",
|
|
66
66
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
67
67
|
"eslint-plugin-react-google-translate": "^0.1.1",
|
|
68
68
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
"eslint-plugin-regexp": "^2.10.0",
|
|
71
71
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
72
72
|
"eslint-plugin-tailwindcss": "4.0.0-beta.0",
|
|
73
|
-
"eslint-plugin-toml": "^0.
|
|
73
|
+
"eslint-plugin-toml": "^0.13.1",
|
|
74
74
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
75
75
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
76
76
|
"eslint-plugin-vue": "^10.6.2",
|
|
77
77
|
"eslint-plugin-yml": "^1.19.1",
|
|
78
78
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
79
|
-
"globals": "^
|
|
79
|
+
"globals": "^17.0.0",
|
|
80
80
|
"jsonc-eslint-parser": "^2.4.2",
|
|
81
81
|
"local-pkg": "^1.1.2",
|
|
82
|
-
"toml-eslint-parser": "^0.
|
|
83
|
-
"typescript-eslint": "^8.
|
|
82
|
+
"toml-eslint-parser": "^1.0.0",
|
|
83
|
+
"typescript-eslint": "^8.52.0",
|
|
84
84
|
"vue-eslint-parser": "^10.2.0",
|
|
85
85
|
"yaml-eslint-parser": "^1.3.2"
|
|
86
86
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@eslint/config-inspector": "^1.4.2",
|
|
89
89
|
"@prettier/plugin-xml": "^3.4.2",
|
|
90
90
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
91
|
-
"@types/node": "^22.19.
|
|
91
|
+
"@types/node": "^22.19.5",
|
|
92
92
|
"bumpp": "^10.3.2",
|
|
93
93
|
"bundle-require": "^5.1.0",
|
|
94
94
|
"eslint": "^9.39.2",
|