@antfu/eslint-config 3.10.0 → 3.11.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: "@antfu/eslint-config",
43
43
  type: "module",
44
- version: "3.10.0",
44
+ version: "3.11.1",
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.1",
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",