@dhzh/eslint-config 0.19.0 → 0.19.1

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.cjs CHANGED
@@ -41,7 +41,7 @@ var import_picocolors = __toESM(require("picocolors"), 1);
41
41
  var package_default = {
42
42
  name: "@dhzh/eslint-config",
43
43
  type: "module",
44
- version: "0.19.0",
44
+ version: "0.19.1",
45
45
  packageManager: "pnpm@9.15.3",
46
46
  description: "Lyle's ESLint config",
47
47
  author: "Lyle Zheng <dhzhme@gmail.com>",
@@ -127,14 +127,14 @@ var package_default = {
127
127
  "@antfu/install-pkg": "^1.0.0",
128
128
  "@clack/prompts": "^0.9.1",
129
129
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
130
- "@eslint-react/eslint-plugin": "^1.24.1",
130
+ "@eslint-react/eslint-plugin": "^1.26.0",
131
131
  "@eslint/markdown": "^6.2.2",
132
- "@stylistic/eslint-plugin": "^3.0.0",
133
- "@typescript-eslint/eslint-plugin": "^8.21.0",
134
- "@typescript-eslint/parser": "^8.21.0",
132
+ "@stylistic/eslint-plugin": "^3.0.1",
133
+ "@typescript-eslint/eslint-plugin": "^8.22.0",
134
+ "@typescript-eslint/parser": "^8.22.0",
135
135
  "@vitest/eslint-plugin": "^1.1.25",
136
- "eslint-config-flat-gitignore": "^1.0.0",
137
- "eslint-flat-config-utils": "^2.0.0",
136
+ "eslint-config-flat-gitignore": "^2.0.0",
137
+ "eslint-flat-config-utils": "^2.0.1",
138
138
  "eslint-merge-processors": "^1.0.0",
139
139
  "eslint-plugin-antfu": "^3.0.0",
140
140
  "eslint-plugin-command": "^3.0.0",
@@ -164,12 +164,12 @@ var package_default = {
164
164
  yargs: "^17.7.2"
165
165
  },
166
166
  devDependencies: {
167
- "@antfu/ni": "^23.2.0",
167
+ "@antfu/ni": "^23.3.1",
168
168
  "@eslint/config-inspector": "^1.0.0",
169
169
  "@prettier/plugin-xml": "^3.4.1",
170
- "@stylistic/eslint-plugin-migrate": "^3.0.0",
170
+ "@stylistic/eslint-plugin-migrate": "^3.0.1",
171
171
  "@types/fs-extra": "^11.0.4",
172
- "@types/node": "^22.10.10",
172
+ "@types/node": "^22.13.0",
173
173
  "@types/prompts": "^2.4.9",
174
174
  "@types/yargs": "^17.0.33",
175
175
  "@unocss/eslint-plugin": "^65.4.3",
@@ -186,19 +186,19 @@ var package_default = {
186
186
  "fast-glob": "^3.3.3",
187
187
  "fs-extra": "^11.3.0",
188
188
  jiti: "^2.4.2",
189
- "lint-staged": "^15.4.2",
189
+ "lint-staged": "^15.4.3",
190
190
  "prettier-plugin-astro": "^0.14.1",
191
191
  "prettier-plugin-slidev": "^1.0.5",
192
192
  rimraf: "^6.0.1",
193
193
  "simple-git-hooks": "^2.11.1",
194
194
  "svelte-eslint-parser": "^0.43.0",
195
- tsup: "^8.3.5",
195
+ tsup: "^8.3.6",
196
196
  tsx: "^4.19.2",
197
197
  typescript: "^5.7.3"
198
198
  },
199
199
  resolutions: {
200
200
  "@eslint-community/eslint-utils": "^4.4.1",
201
- "@typescript-eslint/utils": "^8.21.0",
201
+ "@typescript-eslint/utils": "^8.22.0",
202
202
  eslint: "^9.19.0",
203
203
  tsx: "^4.19.2"
204
204
  },
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ import c from "picocolors";
12
12
  var package_default = {
13
13
  name: "@dhzh/eslint-config",
14
14
  type: "module",
15
- version: "0.19.0",
15
+ version: "0.19.1",
16
16
  packageManager: "pnpm@9.15.3",
17
17
  description: "Lyle's ESLint config",
18
18
  author: "Lyle Zheng <dhzhme@gmail.com>",
@@ -98,14 +98,14 @@ var package_default = {
98
98
  "@antfu/install-pkg": "^1.0.0",
99
99
  "@clack/prompts": "^0.9.1",
100
100
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
101
- "@eslint-react/eslint-plugin": "^1.24.1",
101
+ "@eslint-react/eslint-plugin": "^1.26.0",
102
102
  "@eslint/markdown": "^6.2.2",
103
- "@stylistic/eslint-plugin": "^3.0.0",
104
- "@typescript-eslint/eslint-plugin": "^8.21.0",
105
- "@typescript-eslint/parser": "^8.21.0",
103
+ "@stylistic/eslint-plugin": "^3.0.1",
104
+ "@typescript-eslint/eslint-plugin": "^8.22.0",
105
+ "@typescript-eslint/parser": "^8.22.0",
106
106
  "@vitest/eslint-plugin": "^1.1.25",
107
- "eslint-config-flat-gitignore": "^1.0.0",
108
- "eslint-flat-config-utils": "^2.0.0",
107
+ "eslint-config-flat-gitignore": "^2.0.0",
108
+ "eslint-flat-config-utils": "^2.0.1",
109
109
  "eslint-merge-processors": "^1.0.0",
110
110
  "eslint-plugin-antfu": "^3.0.0",
111
111
  "eslint-plugin-command": "^3.0.0",
@@ -135,12 +135,12 @@ var package_default = {
135
135
  yargs: "^17.7.2"
136
136
  },
137
137
  devDependencies: {
138
- "@antfu/ni": "^23.2.0",
138
+ "@antfu/ni": "^23.3.1",
139
139
  "@eslint/config-inspector": "^1.0.0",
140
140
  "@prettier/plugin-xml": "^3.4.1",
141
- "@stylistic/eslint-plugin-migrate": "^3.0.0",
141
+ "@stylistic/eslint-plugin-migrate": "^3.0.1",
142
142
  "@types/fs-extra": "^11.0.4",
143
- "@types/node": "^22.10.10",
143
+ "@types/node": "^22.13.0",
144
144
  "@types/prompts": "^2.4.9",
145
145
  "@types/yargs": "^17.0.33",
146
146
  "@unocss/eslint-plugin": "^65.4.3",
@@ -157,19 +157,19 @@ var package_default = {
157
157
  "fast-glob": "^3.3.3",
158
158
  "fs-extra": "^11.3.0",
159
159
  jiti: "^2.4.2",
160
- "lint-staged": "^15.4.2",
160
+ "lint-staged": "^15.4.3",
161
161
  "prettier-plugin-astro": "^0.14.1",
162
162
  "prettier-plugin-slidev": "^1.0.5",
163
163
  rimraf: "^6.0.1",
164
164
  "simple-git-hooks": "^2.11.1",
165
165
  "svelte-eslint-parser": "^0.43.0",
166
- tsup: "^8.3.5",
166
+ tsup: "^8.3.6",
167
167
  tsx: "^4.19.2",
168
168
  typescript: "^5.7.3"
169
169
  },
170
170
  resolutions: {
171
171
  "@eslint-community/eslint-utils": "^4.4.1",
172
- "@typescript-eslint/utils": "^8.21.0",
172
+ "@typescript-eslint/utils": "^8.22.0",
173
173
  eslint: "^9.19.0",
174
174
  tsx: "^4.19.2"
175
175
  },
package/dist/index.cjs CHANGED
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  GLOB_ALL_SRC: () => GLOB_ALL_SRC,
34
34
  GLOB_ASTRO: () => GLOB_ASTRO,
35
35
  GLOB_ASTRO_TS: () => GLOB_ASTRO_TS,
@@ -65,7 +65,7 @@ __export(src_exports, {
65
65
  combine: () => combine,
66
66
  command: () => command,
67
67
  comments: () => comments,
68
- default: () => src_default,
68
+ default: () => index_default,
69
69
  defaultPluginRenaming: () => defaultPluginRenaming,
70
70
  dhzh: () => dhzh,
71
71
  disables: () => disables,
@@ -105,9 +105,9 @@ __export(src_exports, {
105
105
  vue: () => vue,
106
106
  yaml: () => yaml
107
107
  });
108
- module.exports = __toCommonJS(src_exports);
108
+ module.exports = __toCommonJS(index_exports);
109
109
 
110
- // node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.47_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
110
+ // node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.4.47_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
111
111
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
112
112
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
113
113
 
@@ -2748,7 +2748,7 @@ function getOverrides(options, key) {
2748
2748
  }
2749
2749
 
2750
2750
  // src/index.ts
2751
- var src_default = dhzh;
2751
+ var index_default = dhzh;
2752
2752
  // Annotate the CommonJS export names for ESM import in node:
2753
2753
  0 && (module.exports = {
2754
2754
  GLOB_ALL_SRC,
package/dist/index.d.cts CHANGED
@@ -3222,6 +3222,11 @@ interface RuleOptions {
3222
3222
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
3223
3223
  */
3224
3224
  'react/no-unused-state'?: Linter.RuleEntry<[]>
3225
+ /**
3226
+ * disallow the use of 'useContext'
3227
+ * @see https://eslint-react.xyz/docs/rules/no-use-context
3228
+ */
3229
+ 'react/no-use-context'?: Linter.RuleEntry<[]>
3225
3230
  /**
3226
3231
  * disallow unnecessary fragments
3227
3232
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
package/dist/index.d.ts CHANGED
@@ -3222,6 +3222,11 @@ interface RuleOptions {
3222
3222
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
3223
3223
  */
3224
3224
  'react/no-unused-state'?: Linter.RuleEntry<[]>
3225
+ /**
3226
+ * disallow the use of 'useContext'
3227
+ * @see https://eslint-react.xyz/docs/rules/no-use-context
3228
+ */
3229
+ 'react/no-use-context'?: Linter.RuleEntry<[]>
3225
3230
  /**
3226
3231
  * disallow unnecessary fragments
3227
3232
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
package/dist/index.js CHANGED
@@ -2635,7 +2635,7 @@ function getOverrides(options, key) {
2635
2635
  }
2636
2636
 
2637
2637
  // src/index.ts
2638
- var src_default = dhzh;
2638
+ var index_default = dhzh;
2639
2639
  export {
2640
2640
  GLOB_ALL_SRC,
2641
2641
  GLOB_ASTRO,
@@ -2672,7 +2672,7 @@ export {
2672
2672
  combine,
2673
2673
  command,
2674
2674
  comments,
2675
- src_default as default,
2675
+ index_default as default,
2676
2676
  defaultPluginRenaming,
2677
2677
  dhzh,
2678
2678
  disables,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhzh/eslint-config",
3
3
  "type": "module",
4
- "version": "0.19.0",
4
+ "version": "0.19.1",
5
5
  "description": "Lyle's ESLint config",
6
6
  "author": "Lyle Zheng <dhzhme@gmail.com>",
7
7
  "license": "MIT",
@@ -72,14 +72,14 @@
72
72
  "@antfu/install-pkg": "^1.0.0",
73
73
  "@clack/prompts": "^0.9.1",
74
74
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
75
- "@eslint-react/eslint-plugin": "^1.24.1",
75
+ "@eslint-react/eslint-plugin": "^1.26.0",
76
76
  "@eslint/markdown": "^6.2.2",
77
- "@stylistic/eslint-plugin": "^3.0.0",
78
- "@typescript-eslint/eslint-plugin": "^8.21.0",
79
- "@typescript-eslint/parser": "^8.21.0",
77
+ "@stylistic/eslint-plugin": "^3.0.1",
78
+ "@typescript-eslint/eslint-plugin": "^8.22.0",
79
+ "@typescript-eslint/parser": "^8.22.0",
80
80
  "@vitest/eslint-plugin": "^1.1.25",
81
- "eslint-config-flat-gitignore": "^1.0.0",
82
- "eslint-flat-config-utils": "^2.0.0",
81
+ "eslint-config-flat-gitignore": "^2.0.0",
82
+ "eslint-flat-config-utils": "^2.0.1",
83
83
  "eslint-merge-processors": "^1.0.0",
84
84
  "eslint-plugin-antfu": "^3.0.0",
85
85
  "eslint-plugin-command": "^3.0.0",
@@ -109,12 +109,12 @@
109
109
  "yargs": "^17.7.2"
110
110
  },
111
111
  "devDependencies": {
112
- "@antfu/ni": "^23.2.0",
112
+ "@antfu/ni": "^23.3.1",
113
113
  "@eslint/config-inspector": "^1.0.0",
114
114
  "@prettier/plugin-xml": "^3.4.1",
115
- "@stylistic/eslint-plugin-migrate": "^3.0.0",
115
+ "@stylistic/eslint-plugin-migrate": "^3.0.1",
116
116
  "@types/fs-extra": "^11.0.4",
117
- "@types/node": "^22.10.10",
117
+ "@types/node": "^22.13.0",
118
118
  "@types/prompts": "^2.4.9",
119
119
  "@types/yargs": "^17.0.33",
120
120
  "@unocss/eslint-plugin": "^65.4.3",
@@ -131,19 +131,19 @@
131
131
  "fast-glob": "^3.3.3",
132
132
  "fs-extra": "^11.3.0",
133
133
  "jiti": "^2.4.2",
134
- "lint-staged": "^15.4.2",
134
+ "lint-staged": "^15.4.3",
135
135
  "prettier-plugin-astro": "^0.14.1",
136
136
  "prettier-plugin-slidev": "^1.0.5",
137
137
  "rimraf": "^6.0.1",
138
138
  "simple-git-hooks": "^2.11.1",
139
139
  "svelte-eslint-parser": "^0.43.0",
140
- "tsup": "^8.3.5",
140
+ "tsup": "^8.3.6",
141
141
  "tsx": "^4.19.2",
142
142
  "typescript": "^5.7.3"
143
143
  },
144
144
  "resolutions": {
145
145
  "@eslint-community/eslint-utils": "^4.4.1",
146
- "@typescript-eslint/utils": "^8.21.0",
146
+ "@typescript-eslint/utils": "^8.22.0",
147
147
  "eslint": "^9.19.0",
148
148
  "tsx": "^4.19.2"
149
149
  },