@antfu/eslint-config 3.10.0 → 3.11.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.10.0",
44
+ version: "3.11.0",
45
45
  packageManager: "pnpm@9.14.2",
46
46
  description: "Anthony's ESLint config",
47
47
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -90,7 +90,7 @@ var package_default = {
90
90
  "eslint-plugin-react-refresh": "^0.4.4",
91
91
  "eslint-plugin-solid": "^0.14.3",
92
92
  "eslint-plugin-svelte": ">=2.35.1",
93
- "prettier-plugin-astro": "^0.13.0",
93
+ "prettier-plugin-astro": "^0.14.0",
94
94
  "prettier-plugin-slidev": "^1.0.5",
95
95
  "svelte-eslint-parser": ">=0.37.0"
96
96
  },
@@ -136,21 +136,21 @@ var package_default = {
136
136
  }
137
137
  },
138
138
  dependencies: {
139
- "@antfu/install-pkg": "^0.4.1",
139
+ "@antfu/install-pkg": "^0.5.0",
140
140
  "@clack/prompts": "^0.8.2",
141
141
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
142
142
  "@eslint/markdown": "^6.2.1",
143
143
  "@stylistic/eslint-plugin": "^2.11.0",
144
144
  "@typescript-eslint/eslint-plugin": "^8.16.0",
145
145
  "@typescript-eslint/parser": "^8.16.0",
146
- "@vitest/eslint-plugin": "^1.1.10",
146
+ "@vitest/eslint-plugin": "^1.1.11",
147
147
  "eslint-config-flat-gitignore": "^0.3.0",
148
148
  "eslint-flat-config-utils": "^0.4.0",
149
149
  "eslint-merge-processors": "^0.1.0",
150
150
  "eslint-plugin-antfu": "^2.7.0",
151
151
  "eslint-plugin-command": "^0.2.6",
152
152
  "eslint-plugin-import-x": "^4.4.3",
153
- "eslint-plugin-jsdoc": "^50.5.0",
153
+ "eslint-plugin-jsdoc": "^50.6.0",
154
154
  "eslint-plugin-jsonc": "^2.18.2",
155
155
  "eslint-plugin-n": "^17.14.0",
156
156
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -204,12 +204,12 @@ var package_default = {
204
204
  "prettier-plugin-slidev": "^1.0.5",
205
205
  rimraf: "^6.0.1",
206
206
  "simple-git-hooks": "^2.11.1",
207
- svelte: "^5.2.8",
207
+ svelte: "^5.2.9",
208
208
  "svelte-eslint-parser": "^0.43.0",
209
209
  tsup: "^8.3.5",
210
210
  tsx: "^4.19.2",
211
211
  typescript: "^5.7.2",
212
- vitest: "^2.1.5",
212
+ vitest: "^2.1.6",
213
213
  vue: "^3.5.13"
214
214
  },
215
215
  resolutions: {
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.10.0",
15
+ version: "3.11.0",
16
16
  packageManager: "pnpm@9.14.2",
17
17
  description: "Anthony's ESLint config",
18
18
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -61,7 +61,7 @@ var package_default = {
61
61
  "eslint-plugin-react-refresh": "^0.4.4",
62
62
  "eslint-plugin-solid": "^0.14.3",
63
63
  "eslint-plugin-svelte": ">=2.35.1",
64
- "prettier-plugin-astro": "^0.13.0",
64
+ "prettier-plugin-astro": "^0.14.0",
65
65
  "prettier-plugin-slidev": "^1.0.5",
66
66
  "svelte-eslint-parser": ">=0.37.0"
67
67
  },
@@ -107,21 +107,21 @@ var package_default = {
107
107
  }
108
108
  },
109
109
  dependencies: {
110
- "@antfu/install-pkg": "^0.4.1",
110
+ "@antfu/install-pkg": "^0.5.0",
111
111
  "@clack/prompts": "^0.8.2",
112
112
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
113
113
  "@eslint/markdown": "^6.2.1",
114
114
  "@stylistic/eslint-plugin": "^2.11.0",
115
115
  "@typescript-eslint/eslint-plugin": "^8.16.0",
116
116
  "@typescript-eslint/parser": "^8.16.0",
117
- "@vitest/eslint-plugin": "^1.1.10",
117
+ "@vitest/eslint-plugin": "^1.1.11",
118
118
  "eslint-config-flat-gitignore": "^0.3.0",
119
119
  "eslint-flat-config-utils": "^0.4.0",
120
120
  "eslint-merge-processors": "^0.1.0",
121
121
  "eslint-plugin-antfu": "^2.7.0",
122
122
  "eslint-plugin-command": "^0.2.6",
123
123
  "eslint-plugin-import-x": "^4.4.3",
124
- "eslint-plugin-jsdoc": "^50.5.0",
124
+ "eslint-plugin-jsdoc": "^50.6.0",
125
125
  "eslint-plugin-jsonc": "^2.18.2",
126
126
  "eslint-plugin-n": "^17.14.0",
127
127
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -175,12 +175,12 @@ var package_default = {
175
175
  "prettier-plugin-slidev": "^1.0.5",
176
176
  rimraf: "^6.0.1",
177
177
  "simple-git-hooks": "^2.11.1",
178
- svelte: "^5.2.8",
178
+ svelte: "^5.2.9",
179
179
  "svelte-eslint-parser": "^0.43.0",
180
180
  tsup: "^8.3.5",
181
181
  tsx: "^4.19.2",
182
182
  typescript: "^5.7.2",
183
- vitest: "^2.1.5",
183
+ vitest: "^2.1.6",
184
184
  vue: "^3.5.13"
185
185
  },
186
186
  resolutions: {
package/dist/index.cjs CHANGED
@@ -325,6 +325,9 @@ async function astro(options = {}) {
325
325
  name: "antfu/astro/rules",
326
326
  processor: "astro/client-side-ts",
327
327
  rules: {
328
+ // Astro uses top level await for e.g. data fetching
329
+ // https://docs.astro.build/en/guides/data-fetching/#fetch-in-astro
330
+ "antfu/no-top-level-await": "off",
328
331
  // use recommended rules
329
332
  "astro/missing-client-only-directive-value": "error",
330
333
  "astro/no-conflict-set-directives": "error",
package/dist/index.d.cts CHANGED
@@ -6757,6 +6757,7 @@ type JsdocInformativeDocs = []|[{
6757
6757
  }]
6758
6758
  // ----- jsdoc/lines-before-block -----
6759
6759
  type JsdocLinesBeforeBlock = []|[{
6760
+ checkBlockStarts?: boolean
6760
6761
  excludedTags?: string[]
6761
6762
  ignoreSameLine?: boolean
6762
6763
  lines?: number
package/dist/index.d.ts CHANGED
@@ -6757,6 +6757,7 @@ type JsdocInformativeDocs = []|[{
6757
6757
  }]
6758
6758
  // ----- jsdoc/lines-before-block -----
6759
6759
  type JsdocLinesBeforeBlock = []|[{
6760
+ checkBlockStarts?: boolean
6760
6761
  excludedTags?: string[]
6761
6762
  ignoreSameLine?: boolean
6762
6763
  lines?: number
package/dist/index.js CHANGED
@@ -212,6 +212,9 @@ async function astro(options = {}) {
212
212
  name: "antfu/astro/rules",
213
213
  processor: "astro/client-side-ts",
214
214
  rules: {
215
+ // Astro uses top level await for e.g. data fetching
216
+ // https://docs.astro.build/en/guides/data-fetching/#fetch-in-astro
217
+ "antfu/no-top-level-await": "off",
215
218
  // use recommended rules
216
219
  "astro/missing-client-only-directive-value": "error",
217
220
  "astro/no-conflict-set-directives": "error",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "3.10.0",
4
+ "version": "3.11.0",
5
5
  "description": "Anthony's ESLint config",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
7
7
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "eslint-plugin-react-refresh": "^0.4.4",
36
36
  "eslint-plugin-solid": "^0.14.3",
37
37
  "eslint-plugin-svelte": ">=2.35.1",
38
- "prettier-plugin-astro": "^0.13.0",
38
+ "prettier-plugin-astro": "^0.14.0",
39
39
  "prettier-plugin-slidev": "^1.0.5",
40
40
  "svelte-eslint-parser": ">=0.37.0"
41
41
  },
@@ -81,21 +81,21 @@
81
81
  }
82
82
  },
83
83
  "dependencies": {
84
- "@antfu/install-pkg": "^0.4.1",
84
+ "@antfu/install-pkg": "^0.5.0",
85
85
  "@clack/prompts": "^0.8.2",
86
86
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
87
87
  "@eslint/markdown": "^6.2.1",
88
88
  "@stylistic/eslint-plugin": "^2.11.0",
89
89
  "@typescript-eslint/eslint-plugin": "^8.16.0",
90
90
  "@typescript-eslint/parser": "^8.16.0",
91
- "@vitest/eslint-plugin": "^1.1.10",
91
+ "@vitest/eslint-plugin": "^1.1.11",
92
92
  "eslint-config-flat-gitignore": "^0.3.0",
93
93
  "eslint-flat-config-utils": "^0.4.0",
94
94
  "eslint-merge-processors": "^0.1.0",
95
95
  "eslint-plugin-antfu": "^2.7.0",
96
96
  "eslint-plugin-command": "^0.2.6",
97
97
  "eslint-plugin-import-x": "^4.4.3",
98
- "eslint-plugin-jsdoc": "^50.5.0",
98
+ "eslint-plugin-jsdoc": "^50.6.0",
99
99
  "eslint-plugin-jsonc": "^2.18.2",
100
100
  "eslint-plugin-n": "^17.14.0",
101
101
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -148,14 +148,14 @@
148
148
  "prettier-plugin-slidev": "^1.0.5",
149
149
  "rimraf": "^6.0.1",
150
150
  "simple-git-hooks": "^2.11.1",
151
- "svelte": "^5.2.8",
151
+ "svelte": "^5.2.9",
152
152
  "svelte-eslint-parser": "^0.43.0",
153
153
  "tsup": "^8.3.5",
154
154
  "tsx": "^4.19.2",
155
155
  "typescript": "^5.7.2",
156
- "vitest": "^2.1.5",
156
+ "vitest": "^2.1.6",
157
157
  "vue": "^3.5.13",
158
- "@antfu/eslint-config": "3.10.0"
158
+ "@antfu/eslint-config": "3.11.0"
159
159
  },
160
160
  "resolutions": {
161
161
  "@eslint-community/eslint-utils": "^4.4.1",