@dhzh/eslint-config 1.20.2 → 1.22.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.
@@ -28,7 +28,7 @@ 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.2";
31
+ var version = "1.22.0";
32
32
  var package_default = {
33
33
  name: "@dhzh/eslint-config",
34
34
  type: "module",
@@ -83,7 +83,7 @@ var package_default = {
83
83
  },
84
84
  peerDependencies: {
85
85
  "@prettier/plugin-xml": "^3.4.1",
86
- eslint: "^9.10.0"
86
+ eslint: "^9.39.2"
87
87
  },
88
88
  peerDependenciesMeta: {
89
89
  "@prettier/plugin-xml": {
@@ -92,20 +92,20 @@ var package_default = {
92
92
  },
93
93
  dependencies: {
94
94
  "@clack/prompts": "^0.11.0",
95
- "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
96
- "@eslint-react/eslint-plugin": "^2.5.4",
95
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
96
+ "@eslint-react/eslint-plugin": "^2.7.1",
97
97
  "@eslint/js": "^9.39.2",
98
98
  "@stylistic/eslint-plugin": "^5.7.0",
99
- "@unocss/eslint-config": "66.5.12",
99
+ "@unocss/eslint-config": "66.6.0",
100
100
  ansis: "^4.2.0",
101
101
  cac: "^6.7.14",
102
102
  "eslint-merge-processors": "^2.0.0",
103
103
  "eslint-plugin-antfu": "^3.1.3",
104
- "eslint-plugin-format": "^1.2.0",
104
+ "eslint-plugin-format": "^1.3.1",
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
- "eslint-plugin-n": "^17.23.1",
108
+ "eslint-plugin-n": "^17.23.2",
109
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",
@@ -114,26 +114,26 @@ 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.13.1",
117
+ "eslint-plugin-toml": "^1.0.0",
118
118
  "eslint-plugin-unicorn": "^62.0.0",
119
119
  "eslint-plugin-unused-imports": "^4.3.0",
120
- "eslint-plugin-vue": "^10.6.2",
120
+ "eslint-plugin-vue": "^10.7.0",
121
121
  "eslint-plugin-yml": "^1.19.1",
122
122
  "eslint-processor-vue-blocks": "^2.0.0",
123
123
  globals: "^17.0.0",
124
124
  "jsonc-eslint-parser": "^2.4.2",
125
125
  "local-pkg": "^1.1.2",
126
- "toml-eslint-parser": "^1.0.0",
127
- "typescript-eslint": "^8.52.0",
126
+ "toml-eslint-parser": "^1.0.3",
127
+ "typescript-eslint": "^8.53.0",
128
128
  "vue-eslint-parser": "^10.2.0",
129
- "yaml-eslint-parser": "^1.3.2"
129
+ "yaml-eslint-parser": "^2.0.0"
130
130
  },
131
131
  devDependencies: {
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.5",
136
- bumpp: "^10.3.2",
135
+ "@types/node": "^22.19.7",
136
+ bumpp: "^10.4.0",
137
137
  "bundle-require": "^5.1.0",
138
138
  eslint: "^9.39.2",
139
139
  "eslint-typegen": "^2.3.0",
@@ -365,7 +365,8 @@ cli.command("", "Run the initialization or migration").action(async () => {
365
365
  hasNest: false
366
366
  };
367
367
  const hasNest = await p5.confirm({
368
- message: "Is NestJS a part of the current project?"
368
+ message: "Is NestJS a part of the current project?",
369
+ initialValue: false
369
370
  });
370
371
  if (p5.isCancel(hasNest)) {
371
372
  p5.cancel("Operation cancelled");
package/dist/cli/index.js CHANGED
@@ -4,7 +4,7 @@ import c4 from "ansis";
4
4
  import { cac } from "cac";
5
5
 
6
6
  // package.json
7
- var version = "1.20.2";
7
+ var version = "1.22.0";
8
8
  var package_default = {
9
9
  name: "@dhzh/eslint-config",
10
10
  type: "module",
@@ -59,7 +59,7 @@ var package_default = {
59
59
  },
60
60
  peerDependencies: {
61
61
  "@prettier/plugin-xml": "^3.4.1",
62
- eslint: "^9.10.0"
62
+ eslint: "^9.39.2"
63
63
  },
64
64
  peerDependenciesMeta: {
65
65
  "@prettier/plugin-xml": {
@@ -68,20 +68,20 @@ var package_default = {
68
68
  },
69
69
  dependencies: {
70
70
  "@clack/prompts": "^0.11.0",
71
- "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
72
- "@eslint-react/eslint-plugin": "^2.5.4",
71
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
72
+ "@eslint-react/eslint-plugin": "^2.7.1",
73
73
  "@eslint/js": "^9.39.2",
74
74
  "@stylistic/eslint-plugin": "^5.7.0",
75
- "@unocss/eslint-config": "66.5.12",
75
+ "@unocss/eslint-config": "66.6.0",
76
76
  ansis: "^4.2.0",
77
77
  cac: "^6.7.14",
78
78
  "eslint-merge-processors": "^2.0.0",
79
79
  "eslint-plugin-antfu": "^3.1.3",
80
- "eslint-plugin-format": "^1.2.0",
80
+ "eslint-plugin-format": "^1.3.1",
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
- "eslint-plugin-n": "^17.23.1",
84
+ "eslint-plugin-n": "^17.23.2",
85
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",
@@ -90,26 +90,26 @@ 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.13.1",
93
+ "eslint-plugin-toml": "^1.0.0",
94
94
  "eslint-plugin-unicorn": "^62.0.0",
95
95
  "eslint-plugin-unused-imports": "^4.3.0",
96
- "eslint-plugin-vue": "^10.6.2",
96
+ "eslint-plugin-vue": "^10.7.0",
97
97
  "eslint-plugin-yml": "^1.19.1",
98
98
  "eslint-processor-vue-blocks": "^2.0.0",
99
99
  globals: "^17.0.0",
100
100
  "jsonc-eslint-parser": "^2.4.2",
101
101
  "local-pkg": "^1.1.2",
102
- "toml-eslint-parser": "^1.0.0",
103
- "typescript-eslint": "^8.52.0",
102
+ "toml-eslint-parser": "^1.0.3",
103
+ "typescript-eslint": "^8.53.0",
104
104
  "vue-eslint-parser": "^10.2.0",
105
- "yaml-eslint-parser": "^1.3.2"
105
+ "yaml-eslint-parser": "^2.0.0"
106
106
  },
107
107
  devDependencies: {
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.5",
112
- bumpp: "^10.3.2",
111
+ "@types/node": "^22.19.7",
112
+ bumpp: "^10.4.0",
113
113
  "bundle-require": "^5.1.0",
114
114
  eslint: "^9.39.2",
115
115
  "eslint-typegen": "^2.3.0",
@@ -341,7 +341,8 @@ cli.command("", "Run the initialization or migration").action(async () => {
341
341
  hasNest: false
342
342
  };
343
343
  const hasNest = await p5.confirm({
344
- message: "Is NestJS a part of the current project?"
344
+ message: "Is NestJS a part of the current project?",
345
+ initialValue: false
345
346
  });
346
347
  if (p5.isCancel(hasNest)) {
347
348
  p5.cancel("Operation cancelled");
package/dist/index.cjs CHANGED
@@ -1598,7 +1598,7 @@ function unocss(options = {}) {
1598
1598
 
1599
1599
  // src/configs/yml.ts
1600
1600
  var import_eslint_plugin_yml = __toESM(require("eslint-plugin-yml"), 1);
1601
- var import_yaml_eslint_parser = __toESM(require("yaml-eslint-parser"), 1);
1601
+ var parserYml = __toESM(require("yaml-eslint-parser"), 1);
1602
1602
  function yml(options = {}) {
1603
1603
  const { overrides = {}, indent = 2, quotes = "single" } = options;
1604
1604
  return [
@@ -1611,7 +1611,7 @@ function yml(options = {}) {
1611
1611
  name: `${RULE_PREFIX}/yml/customize`,
1612
1612
  files: [GLOB_YML],
1613
1613
  languageOptions: {
1614
- parser: import_yaml_eslint_parser.default
1614
+ parser: parserYml
1615
1615
  },
1616
1616
  rules: {
1617
1617
  "yml/block-mapping": "error",
@@ -1686,7 +1686,7 @@ var parserToml = __toESM(require("toml-eslint-parser"), 1);
1686
1686
  function toml(options = {}) {
1687
1687
  const { overrides = {}, indent = 2 } = options;
1688
1688
  return [
1689
- ...import_eslint_plugin_toml.default.configs["flat/recommended"].map((item) => ({
1689
+ ...import_eslint_plugin_toml.default.configs.recommended.map((item) => ({
1690
1690
  ...item,
1691
1691
  name: `${RULE_PREFIX}/toml/shared`,
1692
1692
  files: [GLOB_TOML]