@antfu/eslint-config 3.3.2 → 3.4.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.
package/dist/cli.cjs CHANGED
@@ -41,7 +41,7 @@ var import_picocolors = __toESM(require("picocolors"), 1);
41
41
  var package_default = {
42
42
  name: "@antfu/eslint-config",
43
43
  type: "module",
44
- version: "3.3.2",
44
+ version: "3.4.0",
45
45
  packageManager: "pnpm@9.9.0",
46
46
  description: "Anthony's ESLint config",
47
47
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -83,7 +83,7 @@ var package_default = {
83
83
  "@prettier/plugin-xml": "^3.4.1",
84
84
  "@unocss/eslint-plugin": ">=0.50.0",
85
85
  "astro-eslint-parser": "^1.0.2",
86
- eslint: "^9.5.0",
86
+ eslint: "^9.10.0",
87
87
  "eslint-plugin-astro": "^1.2.0",
88
88
  "eslint-plugin-format": ">=0.1.0",
89
89
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -154,7 +154,7 @@ var package_default = {
154
154
  "eslint-plugin-markdown": "^5.1.0",
155
155
  "eslint-plugin-n": "^17.10.2",
156
156
  "eslint-plugin-no-only-tests": "^3.3.0",
157
- "eslint-plugin-perfectionist": "^3.4.0",
157
+ "eslint-plugin-perfectionist": "^3.5.0",
158
158
  "eslint-plugin-regexp": "^2.6.0",
159
159
  "eslint-plugin-toml": "^0.11.1",
160
160
  "eslint-plugin-unicorn": "^55.0.0",
@@ -179,7 +179,6 @@ var package_default = {
179
179
  "@eslint/config-inspector": "^0.5.4",
180
180
  "@prettier/plugin-xml": "^3.4.1",
181
181
  "@stylistic/eslint-plugin-migrate": "^2.7.2",
182
- "@types/eslint": "^9.6.1",
183
182
  "@types/fs-extra": "^11.0.4",
184
183
  "@types/node": "^22.5.4",
185
184
  "@types/prompts": "^2.4.9",
@@ -187,7 +186,7 @@ var package_default = {
187
186
  "@unocss/eslint-plugin": "^0.62.3",
188
187
  "astro-eslint-parser": "^1.0.2",
189
188
  bumpp: "^9.5.2",
190
- eslint: "^9.9.1",
189
+ eslint: "^9.10.0",
191
190
  "eslint-plugin-astro": "^1.2.3",
192
191
  "eslint-plugin-format": "^0.1.2",
193
192
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -211,12 +210,12 @@ var package_default = {
211
210
  tsx: "^4.19.0",
212
211
  typescript: "^5.5.4",
213
212
  vitest: "^2.0.5",
214
- vue: "^3.5.2"
213
+ vue: "^3.5.3"
215
214
  },
216
215
  resolutions: {
217
216
  "@eslint-community/eslint-utils": "^4.4.0",
218
217
  "@typescript-eslint/utils": "^8.4.0",
219
- eslint: "^9.9.1",
218
+ eslint: "^9.10.0",
220
219
  tsx: "^4.19.0"
221
220
  },
222
221
  "simple-git-hooks": {
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ import c from "picocolors";
12
12
  var package_default = {
13
13
  name: "@antfu/eslint-config",
14
14
  type: "module",
15
- version: "3.3.2",
15
+ version: "3.4.0",
16
16
  packageManager: "pnpm@9.9.0",
17
17
  description: "Anthony's ESLint config",
18
18
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -54,7 +54,7 @@ var package_default = {
54
54
  "@prettier/plugin-xml": "^3.4.1",
55
55
  "@unocss/eslint-plugin": ">=0.50.0",
56
56
  "astro-eslint-parser": "^1.0.2",
57
- eslint: "^9.5.0",
57
+ eslint: "^9.10.0",
58
58
  "eslint-plugin-astro": "^1.2.0",
59
59
  "eslint-plugin-format": ">=0.1.0",
60
60
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -125,7 +125,7 @@ var package_default = {
125
125
  "eslint-plugin-markdown": "^5.1.0",
126
126
  "eslint-plugin-n": "^17.10.2",
127
127
  "eslint-plugin-no-only-tests": "^3.3.0",
128
- "eslint-plugin-perfectionist": "^3.4.0",
128
+ "eslint-plugin-perfectionist": "^3.5.0",
129
129
  "eslint-plugin-regexp": "^2.6.0",
130
130
  "eslint-plugin-toml": "^0.11.1",
131
131
  "eslint-plugin-unicorn": "^55.0.0",
@@ -150,7 +150,6 @@ var package_default = {
150
150
  "@eslint/config-inspector": "^0.5.4",
151
151
  "@prettier/plugin-xml": "^3.4.1",
152
152
  "@stylistic/eslint-plugin-migrate": "^2.7.2",
153
- "@types/eslint": "^9.6.1",
154
153
  "@types/fs-extra": "^11.0.4",
155
154
  "@types/node": "^22.5.4",
156
155
  "@types/prompts": "^2.4.9",
@@ -158,7 +157,7 @@ var package_default = {
158
157
  "@unocss/eslint-plugin": "^0.62.3",
159
158
  "astro-eslint-parser": "^1.0.2",
160
159
  bumpp: "^9.5.2",
161
- eslint: "^9.9.1",
160
+ eslint: "^9.10.0",
162
161
  "eslint-plugin-astro": "^1.2.3",
163
162
  "eslint-plugin-format": "^0.1.2",
164
163
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -182,12 +181,12 @@ var package_default = {
182
181
  tsx: "^4.19.0",
183
182
  typescript: "^5.5.4",
184
183
  vitest: "^2.0.5",
185
- vue: "^3.5.2"
184
+ vue: "^3.5.3"
186
185
  },
187
186
  resolutions: {
188
187
  "@eslint-community/eslint-utils": "^4.4.0",
189
188
  "@typescript-eslint/utils": "^8.4.0",
190
- eslint: "^9.9.1",
189
+ eslint: "^9.10.0",
191
190
  tsx: "^4.19.0"
192
191
  },
193
192
  "simple-git-hooks": {
package/dist/index.d.cts CHANGED
@@ -3566,7 +3566,7 @@ interface RuleOptions {
3566
3566
  * Enforce the use of `u` or `v` flag on RegExp
3567
3567
  * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
3568
3568
  */
3569
- 'require-unicode-regexp'?: Linter.RuleEntry<[]>
3569
+ 'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
3570
3570
  /**
3571
3571
  * Require generator functions to contain `yield`
3572
3572
  * @see https://eslint.org/docs/latest/rules/require-yield
@@ -10398,6 +10398,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10398
10398
 
10399
10399
  internalPattern?: string[]
10400
10400
 
10401
+ sortSideEffects?: boolean
10402
+
10401
10403
  newlinesBetween?: ("ignore" | "always" | "never")
10402
10404
 
10403
10405
  maxLineLength?: number
@@ -10833,6 +10835,10 @@ type RegexpUnicodeProperty = []|[{
10833
10835
  type RequireAtomicUpdates = []|[{
10834
10836
  allowProperties?: boolean
10835
10837
  }]
10838
+ // ----- require-unicode-regexp -----
10839
+ type RequireUnicodeRegexp = []|[{
10840
+ requireFlag?: ("u" | "v")
10841
+ }]
10836
10842
  // ----- rest-spread-spacing -----
10837
10843
  type RestSpreadSpacing = []|[("always" | "never")]
10838
10844
  // ----- semi -----
package/dist/index.d.ts CHANGED
@@ -3566,7 +3566,7 @@ interface RuleOptions {
3566
3566
  * Enforce the use of `u` or `v` flag on RegExp
3567
3567
  * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
3568
3568
  */
3569
- 'require-unicode-regexp'?: Linter.RuleEntry<[]>
3569
+ 'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
3570
3570
  /**
3571
3571
  * Require generator functions to contain `yield`
3572
3572
  * @see https://eslint.org/docs/latest/rules/require-yield
@@ -10398,6 +10398,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10398
10398
 
10399
10399
  internalPattern?: string[]
10400
10400
 
10401
+ sortSideEffects?: boolean
10402
+
10401
10403
  newlinesBetween?: ("ignore" | "always" | "never")
10402
10404
 
10403
10405
  maxLineLength?: number
@@ -10833,6 +10835,10 @@ type RegexpUnicodeProperty = []|[{
10833
10835
  type RequireAtomicUpdates = []|[{
10834
10836
  allowProperties?: boolean
10835
10837
  }]
10838
+ // ----- require-unicode-regexp -----
10839
+ type RequireUnicodeRegexp = []|[{
10840
+ requireFlag?: ("u" | "v")
10841
+ }]
10836
10842
  // ----- rest-spread-spacing -----
10837
10843
  type RestSpreadSpacing = []|[("always" | "never")]
10838
10844
  // ----- semi -----
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "3.3.2",
4
+ "version": "3.4.0",
5
5
  "description": "Anthony's ESLint config",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
7
7
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  "@prettier/plugin-xml": "^3.4.1",
29
29
  "@unocss/eslint-plugin": ">=0.50.0",
30
30
  "astro-eslint-parser": "^1.0.2",
31
- "eslint": "^9.5.0",
31
+ "eslint": "^9.10.0",
32
32
  "eslint-plugin-astro": "^1.2.0",
33
33
  "eslint-plugin-format": ">=0.1.0",
34
34
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -99,7 +99,7 @@
99
99
  "eslint-plugin-markdown": "^5.1.0",
100
100
  "eslint-plugin-n": "^17.10.2",
101
101
  "eslint-plugin-no-only-tests": "^3.3.0",
102
- "eslint-plugin-perfectionist": "^3.4.0",
102
+ "eslint-plugin-perfectionist": "^3.5.0",
103
103
  "eslint-plugin-regexp": "^2.6.0",
104
104
  "eslint-plugin-toml": "^0.11.1",
105
105
  "eslint-plugin-unicorn": "^55.0.0",
@@ -123,7 +123,6 @@
123
123
  "@eslint/config-inspector": "^0.5.4",
124
124
  "@prettier/plugin-xml": "^3.4.1",
125
125
  "@stylistic/eslint-plugin-migrate": "^2.7.2",
126
- "@types/eslint": "^9.6.1",
127
126
  "@types/fs-extra": "^11.0.4",
128
127
  "@types/node": "^22.5.4",
129
128
  "@types/prompts": "^2.4.9",
@@ -131,7 +130,7 @@
131
130
  "@unocss/eslint-plugin": "^0.62.3",
132
131
  "astro-eslint-parser": "^1.0.2",
133
132
  "bumpp": "^9.5.2",
134
- "eslint": "^9.9.1",
133
+ "eslint": "^9.10.0",
135
134
  "eslint-plugin-astro": "^1.2.3",
136
135
  "eslint-plugin-format": "^0.1.2",
137
136
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -155,13 +154,13 @@
155
154
  "tsx": "^4.19.0",
156
155
  "typescript": "^5.5.4",
157
156
  "vitest": "^2.0.5",
158
- "vue": "^3.5.2",
159
- "@antfu/eslint-config": "3.3.2"
157
+ "vue": "^3.5.3",
158
+ "@antfu/eslint-config": "3.4.0"
160
159
  },
161
160
  "resolutions": {
162
161
  "@eslint-community/eslint-utils": "^4.4.0",
163
162
  "@typescript-eslint/utils": "^8.4.0",
164
- "eslint": "^9.9.1",
163
+ "eslint": "^9.10.0",
165
164
  "tsx": "^4.19.0"
166
165
  },
167
166
  "simple-git-hooks": {