@dhzh/eslint-config 0.18.0 → 0.18.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.18.0",
44
+ version: "0.18.1",
45
45
  packageManager: "pnpm@9.15.3",
46
46
  description: "Lyle's ESLint config",
47
47
  author: "Lyle Zheng <dhzhme@gmail.com>",
@@ -130,8 +130,8 @@ var package_default = {
130
130
  "@eslint-react/eslint-plugin": "^1.23.2",
131
131
  "@eslint/markdown": "^6.2.1",
132
132
  "@stylistic/eslint-plugin": "^2.13.0",
133
- "@typescript-eslint/eslint-plugin": "^8.19.1",
134
- "@typescript-eslint/parser": "^8.19.1",
133
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
134
+ "@typescript-eslint/parser": "^8.20.0",
135
135
  "@vitest/eslint-plugin": "^1.1.25",
136
136
  "eslint-config-flat-gitignore": "^1.0.0",
137
137
  "eslint-flat-config-utils": "^1.0.0",
@@ -139,7 +139,7 @@ var package_default = {
139
139
  "eslint-plugin-antfu": "^2.7.0",
140
140
  "eslint-plugin-command": "^2.1.0",
141
141
  "eslint-plugin-import-x": "^4.6.1",
142
- "eslint-plugin-jsdoc": "^50.6.1",
142
+ "eslint-plugin-jsdoc": "^50.6.2",
143
143
  "eslint-plugin-jsonc": "^2.18.2",
144
144
  "eslint-plugin-n": "^17.15.1",
145
145
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -165,17 +165,17 @@ var package_default = {
165
165
  },
166
166
  devDependencies: {
167
167
  "@antfu/ni": "^23.2.0",
168
- "@eslint/config-inspector": "^0.7.1",
168
+ "@eslint/config-inspector": "^1.0.0",
169
169
  "@prettier/plugin-xml": "^3.4.1",
170
170
  "@stylistic/eslint-plugin-migrate": "^2.13.0",
171
171
  "@types/fs-extra": "^11.0.4",
172
- "@types/node": "^22.10.5",
172
+ "@types/node": "^22.10.7",
173
173
  "@types/prompts": "^2.4.9",
174
174
  "@types/yargs": "^17.0.33",
175
- "@unocss/eslint-plugin": "^65.4.0",
175
+ "@unocss/eslint-plugin": "^65.4.2",
176
176
  "astro-eslint-parser": "^1.1.0",
177
- bumpp: "^9.10.0",
178
- "bundle-require": "^5.0.0",
177
+ bumpp: "^9.10.1",
178
+ "bundle-require": "^5.1.0",
179
179
  eslint: "^9.18.0",
180
180
  "eslint-plugin-astro": "^1.3.1",
181
181
  "eslint-plugin-format": "^1.0.1",
@@ -184,9 +184,9 @@ var package_default = {
184
184
  "eslint-typegen": "^1.0.0",
185
185
  execa: "^9.5.2",
186
186
  "fast-glob": "^3.3.3",
187
- "fs-extra": "^11.2.0",
187
+ "fs-extra": "^11.3.0",
188
188
  jiti: "^2.4.2",
189
- "lint-staged": "^15.3.0",
189
+ "lint-staged": "^15.4.1",
190
190
  "prettier-plugin-astro": "^0.14.1",
191
191
  "prettier-plugin-slidev": "^1.0.5",
192
192
  rimraf: "^6.0.1",
@@ -198,7 +198,7 @@ var package_default = {
198
198
  },
199
199
  resolutions: {
200
200
  "@eslint-community/eslint-utils": "^4.4.1",
201
- "@typescript-eslint/utils": "^8.19.1",
201
+ "@typescript-eslint/utils": "^8.20.0",
202
202
  eslint: "^9.18.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.18.0",
15
+ version: "0.18.1",
16
16
  packageManager: "pnpm@9.15.3",
17
17
  description: "Lyle's ESLint config",
18
18
  author: "Lyle Zheng <dhzhme@gmail.com>",
@@ -101,8 +101,8 @@ var package_default = {
101
101
  "@eslint-react/eslint-plugin": "^1.23.2",
102
102
  "@eslint/markdown": "^6.2.1",
103
103
  "@stylistic/eslint-plugin": "^2.13.0",
104
- "@typescript-eslint/eslint-plugin": "^8.19.1",
105
- "@typescript-eslint/parser": "^8.19.1",
104
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
105
+ "@typescript-eslint/parser": "^8.20.0",
106
106
  "@vitest/eslint-plugin": "^1.1.25",
107
107
  "eslint-config-flat-gitignore": "^1.0.0",
108
108
  "eslint-flat-config-utils": "^1.0.0",
@@ -110,7 +110,7 @@ var package_default = {
110
110
  "eslint-plugin-antfu": "^2.7.0",
111
111
  "eslint-plugin-command": "^2.1.0",
112
112
  "eslint-plugin-import-x": "^4.6.1",
113
- "eslint-plugin-jsdoc": "^50.6.1",
113
+ "eslint-plugin-jsdoc": "^50.6.2",
114
114
  "eslint-plugin-jsonc": "^2.18.2",
115
115
  "eslint-plugin-n": "^17.15.1",
116
116
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -136,17 +136,17 @@ var package_default = {
136
136
  },
137
137
  devDependencies: {
138
138
  "@antfu/ni": "^23.2.0",
139
- "@eslint/config-inspector": "^0.7.1",
139
+ "@eslint/config-inspector": "^1.0.0",
140
140
  "@prettier/plugin-xml": "^3.4.1",
141
141
  "@stylistic/eslint-plugin-migrate": "^2.13.0",
142
142
  "@types/fs-extra": "^11.0.4",
143
- "@types/node": "^22.10.5",
143
+ "@types/node": "^22.10.7",
144
144
  "@types/prompts": "^2.4.9",
145
145
  "@types/yargs": "^17.0.33",
146
- "@unocss/eslint-plugin": "^65.4.0",
146
+ "@unocss/eslint-plugin": "^65.4.2",
147
147
  "astro-eslint-parser": "^1.1.0",
148
- bumpp: "^9.10.0",
149
- "bundle-require": "^5.0.0",
148
+ bumpp: "^9.10.1",
149
+ "bundle-require": "^5.1.0",
150
150
  eslint: "^9.18.0",
151
151
  "eslint-plugin-astro": "^1.3.1",
152
152
  "eslint-plugin-format": "^1.0.1",
@@ -155,9 +155,9 @@ var package_default = {
155
155
  "eslint-typegen": "^1.0.0",
156
156
  execa: "^9.5.2",
157
157
  "fast-glob": "^3.3.3",
158
- "fs-extra": "^11.2.0",
158
+ "fs-extra": "^11.3.0",
159
159
  jiti: "^2.4.2",
160
- "lint-staged": "^15.3.0",
160
+ "lint-staged": "^15.4.1",
161
161
  "prettier-plugin-astro": "^0.14.1",
162
162
  "prettier-plugin-slidev": "^1.0.5",
163
163
  rimraf: "^6.0.1",
@@ -169,7 +169,7 @@ var package_default = {
169
169
  },
170
170
  resolutions: {
171
171
  "@eslint-community/eslint-utils": "^4.4.1",
172
- "@typescript-eslint/utils": "^8.19.1",
172
+ "@typescript-eslint/utils": "^8.20.0",
173
173
  eslint: "^9.18.0",
174
174
  tsx: "^4.19.2"
175
175
  },
package/dist/index.d.cts CHANGED
@@ -5274,7 +5274,7 @@ interface RuleOptions {
5274
5274
  * Disallow using code marked as `@deprecated`
5275
5275
  * @see https://typescript-eslint.io/rules/no-deprecated
5276
5276
  */
5277
- 'ts/no-deprecated'?: Linter.RuleEntry<[]>
5277
+ 'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
5278
5278
  /**
5279
5279
  * Disallow duplicate class members
5280
5280
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -5392,6 +5392,11 @@ interface RuleOptions {
5392
5392
  * @see https://typescript-eslint.io/rules/no-misused-promises
5393
5393
  */
5394
5394
  'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
5395
+ /**
5396
+ * Disallow using the spread operator when it might cause unexpected behavior
5397
+ * @see https://typescript-eslint.io/rules/no-misused-spread
5398
+ */
5399
+ 'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
5395
5400
  /**
5396
5401
  * Disallow enums from having both number and string members
5397
5402
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -13319,6 +13324,8 @@ type TsConsistentTypeAssertions = []|[({
13319
13324
  assertionStyle: "never"
13320
13325
  } | {
13321
13326
 
13327
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
13328
+
13322
13329
  assertionStyle?: ("as" | "angle-bracket")
13323
13330
 
13324
13331
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
@@ -13775,6 +13782,22 @@ type TsNoConfusingVoidExpression = []|[{
13775
13782
 
13776
13783
  ignoreVoidReturningFunctions?: boolean
13777
13784
  }]
13785
+ // ----- ts/no-deprecated -----
13786
+ type TsNoDeprecated = []|[{
13787
+
13788
+ allow?: (string | {
13789
+ from: "file"
13790
+ name: (string | [string, ...(string)[]])
13791
+ path?: string
13792
+ } | {
13793
+ from: "lib"
13794
+ name: (string | [string, ...(string)[]])
13795
+ } | {
13796
+ from: "package"
13797
+ name: (string | [string, ...(string)[]])
13798
+ package: string
13799
+ })[]
13800
+ }]
13778
13801
  // ----- ts/no-duplicate-type-constituents -----
13779
13802
  type TsNoDuplicateTypeConstituents = []|[{
13780
13803
 
@@ -13916,6 +13939,22 @@ type TsNoMisusedPromises = []|[{
13916
13939
  variables?: boolean
13917
13940
  })
13918
13941
  }]
13942
+ // ----- ts/no-misused-spread -----
13943
+ type TsNoMisusedSpread = []|[{
13944
+
13945
+ allow?: (string | {
13946
+ from: "file"
13947
+ name: (string | [string, ...(string)[]])
13948
+ path?: string
13949
+ } | {
13950
+ from: "lib"
13951
+ name: (string | [string, ...(string)[]])
13952
+ } | {
13953
+ from: "package"
13954
+ name: (string | [string, ...(string)[]])
13955
+ package: string
13956
+ })[]
13957
+ }]
13919
13958
  // ----- ts/no-namespace -----
13920
13959
  type TsNoNamespace = []|[{
13921
13960
 
@@ -13991,7 +14030,7 @@ type TsNoShadow = []|[{
13991
14030
 
13992
14031
  builtinGlobals?: boolean
13993
14032
 
13994
- hoist?: ("all" | "functions" | "never")
14033
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
13995
14034
 
13996
14035
  ignoreFunctionTypeParameterNameValueShadow?: boolean
13997
14036
 
package/dist/index.d.ts CHANGED
@@ -5274,7 +5274,7 @@ interface RuleOptions {
5274
5274
  * Disallow using code marked as `@deprecated`
5275
5275
  * @see https://typescript-eslint.io/rules/no-deprecated
5276
5276
  */
5277
- 'ts/no-deprecated'?: Linter.RuleEntry<[]>
5277
+ 'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
5278
5278
  /**
5279
5279
  * Disallow duplicate class members
5280
5280
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -5392,6 +5392,11 @@ interface RuleOptions {
5392
5392
  * @see https://typescript-eslint.io/rules/no-misused-promises
5393
5393
  */
5394
5394
  'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
5395
+ /**
5396
+ * Disallow using the spread operator when it might cause unexpected behavior
5397
+ * @see https://typescript-eslint.io/rules/no-misused-spread
5398
+ */
5399
+ 'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
5395
5400
  /**
5396
5401
  * Disallow enums from having both number and string members
5397
5402
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -13319,6 +13324,8 @@ type TsConsistentTypeAssertions = []|[({
13319
13324
  assertionStyle: "never"
13320
13325
  } | {
13321
13326
 
13327
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
13328
+
13322
13329
  assertionStyle?: ("as" | "angle-bracket")
13323
13330
 
13324
13331
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
@@ -13775,6 +13782,22 @@ type TsNoConfusingVoidExpression = []|[{
13775
13782
 
13776
13783
  ignoreVoidReturningFunctions?: boolean
13777
13784
  }]
13785
+ // ----- ts/no-deprecated -----
13786
+ type TsNoDeprecated = []|[{
13787
+
13788
+ allow?: (string | {
13789
+ from: "file"
13790
+ name: (string | [string, ...(string)[]])
13791
+ path?: string
13792
+ } | {
13793
+ from: "lib"
13794
+ name: (string | [string, ...(string)[]])
13795
+ } | {
13796
+ from: "package"
13797
+ name: (string | [string, ...(string)[]])
13798
+ package: string
13799
+ })[]
13800
+ }]
13778
13801
  // ----- ts/no-duplicate-type-constituents -----
13779
13802
  type TsNoDuplicateTypeConstituents = []|[{
13780
13803
 
@@ -13916,6 +13939,22 @@ type TsNoMisusedPromises = []|[{
13916
13939
  variables?: boolean
13917
13940
  })
13918
13941
  }]
13942
+ // ----- ts/no-misused-spread -----
13943
+ type TsNoMisusedSpread = []|[{
13944
+
13945
+ allow?: (string | {
13946
+ from: "file"
13947
+ name: (string | [string, ...(string)[]])
13948
+ path?: string
13949
+ } | {
13950
+ from: "lib"
13951
+ name: (string | [string, ...(string)[]])
13952
+ } | {
13953
+ from: "package"
13954
+ name: (string | [string, ...(string)[]])
13955
+ package: string
13956
+ })[]
13957
+ }]
13919
13958
  // ----- ts/no-namespace -----
13920
13959
  type TsNoNamespace = []|[{
13921
13960
 
@@ -13991,7 +14030,7 @@ type TsNoShadow = []|[{
13991
14030
 
13992
14031
  builtinGlobals?: boolean
13993
14032
 
13994
- hoist?: ("all" | "functions" | "never")
14033
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
13995
14034
 
13996
14035
  ignoreFunctionTypeParameterNameValueShadow?: boolean
13997
14036
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhzh/eslint-config",
3
3
  "type": "module",
4
- "version": "0.18.0",
4
+ "version": "0.18.1",
5
5
  "description": "Lyle's ESLint config",
6
6
  "author": "Lyle Zheng <dhzhme@gmail.com>",
7
7
  "license": "MIT",
@@ -75,8 +75,8 @@
75
75
  "@eslint-react/eslint-plugin": "^1.23.2",
76
76
  "@eslint/markdown": "^6.2.1",
77
77
  "@stylistic/eslint-plugin": "^2.13.0",
78
- "@typescript-eslint/eslint-plugin": "^8.19.1",
79
- "@typescript-eslint/parser": "^8.19.1",
78
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
79
+ "@typescript-eslint/parser": "^8.20.0",
80
80
  "@vitest/eslint-plugin": "^1.1.25",
81
81
  "eslint-config-flat-gitignore": "^1.0.0",
82
82
  "eslint-flat-config-utils": "^1.0.0",
@@ -84,7 +84,7 @@
84
84
  "eslint-plugin-antfu": "^2.7.0",
85
85
  "eslint-plugin-command": "^2.1.0",
86
86
  "eslint-plugin-import-x": "^4.6.1",
87
- "eslint-plugin-jsdoc": "^50.6.1",
87
+ "eslint-plugin-jsdoc": "^50.6.2",
88
88
  "eslint-plugin-jsonc": "^2.18.2",
89
89
  "eslint-plugin-n": "^17.15.1",
90
90
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -110,17 +110,17 @@
110
110
  },
111
111
  "devDependencies": {
112
112
  "@antfu/ni": "^23.2.0",
113
- "@eslint/config-inspector": "^0.7.1",
113
+ "@eslint/config-inspector": "^1.0.0",
114
114
  "@prettier/plugin-xml": "^3.4.1",
115
115
  "@stylistic/eslint-plugin-migrate": "^2.13.0",
116
116
  "@types/fs-extra": "^11.0.4",
117
- "@types/node": "^22.10.5",
117
+ "@types/node": "^22.10.7",
118
118
  "@types/prompts": "^2.4.9",
119
119
  "@types/yargs": "^17.0.33",
120
- "@unocss/eslint-plugin": "^65.4.0",
120
+ "@unocss/eslint-plugin": "^65.4.2",
121
121
  "astro-eslint-parser": "^1.1.0",
122
- "bumpp": "^9.10.0",
123
- "bundle-require": "^5.0.0",
122
+ "bumpp": "^9.10.1",
123
+ "bundle-require": "^5.1.0",
124
124
  "eslint": "^9.18.0",
125
125
  "eslint-plugin-astro": "^1.3.1",
126
126
  "eslint-plugin-format": "^1.0.1",
@@ -129,9 +129,9 @@
129
129
  "eslint-typegen": "^1.0.0",
130
130
  "execa": "^9.5.2",
131
131
  "fast-glob": "^3.3.3",
132
- "fs-extra": "^11.2.0",
132
+ "fs-extra": "^11.3.0",
133
133
  "jiti": "^2.4.2",
134
- "lint-staged": "^15.3.0",
134
+ "lint-staged": "^15.4.1",
135
135
  "prettier-plugin-astro": "^0.14.1",
136
136
  "prettier-plugin-slidev": "^1.0.5",
137
137
  "rimraf": "^6.0.1",
@@ -143,7 +143,7 @@
143
143
  },
144
144
  "resolutions": {
145
145
  "@eslint-community/eslint-utils": "^4.4.1",
146
- "@typescript-eslint/utils": "^8.19.1",
146
+ "@typescript-eslint/utils": "^8.20.0",
147
147
  "eslint": "^9.18.0",
148
148
  "tsx": "^4.19.2"
149
149
  },