Skip to content

Commit de74785

Browse files
authored
chore(deps): update @antfu/eslint-config v3.8.0 (#6751)
1 parent 9d9bad5 commit de74785

File tree

421 files changed

+1807
-1765
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

421 files changed

+1807
-1765
lines changed

docs/.vitepress/components/ListItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { computed, effectScope, onMounted, ref } from 'vue'
32
import { until, useElementVisibility } from '@vueuse/core'
3+
import { computed, effectScope, onMounted, ref } from 'vue'
44
55
const el = ref<HTMLDivElement>()
66
const state = ref(0)

docs/.vitepress/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { defineConfig } from 'vitepress'
2-
import { withPwa } from '@vite-pwa/vitepress'
31
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
2+
import { withPwa } from '@vite-pwa/vitepress'
3+
import { defineConfig } from 'vitepress'
44
import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'
55
import { version } from '../../package.json'
6+
import { teamMembers } from './contributors'
67
import {
78
contributing,
89
discord,
@@ -18,7 +19,6 @@ import {
1819
} from './meta'
1920
import { pwa } from './scripts/pwa'
2021
import { transformHead } from './scripts/transformHead'
21-
import { teamMembers } from './contributors'
2222

2323
export default ({ mode }: { mode: string }) => {
2424
return withPwa(defineConfig({

docs/.vitepress/contributors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ const plainTeamEmeritiMembers: CoreTeam[] = [
164164
const teamMembers = plainTeamMembers.map(tm => createLinks(tm))
165165
const teamEmeritiMembers = plainTeamEmeritiMembers.map(tm => createLinks(tm))
166166

167-
export { teamMembers, teamEmeritiMembers }
167+
export { teamEmeritiMembers, teamMembers }

docs/.vitepress/scripts/cli-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type { CLIOption, CLIOptions } from '../../../packages/vitest/src/node/cli/cli-config'
12
import { writeFileSync } from 'node:fs'
23
import { dirname, resolve } from 'node:path'
34
import { fileURLToPath } from 'node:url'
4-
import type { CLIOption, CLIOptions } from '../../../packages/vitest/src/node/cli/cli-config'
55
import { cliOptionsConfig } from '../../../packages/vitest/src/node/cli/cli-config'
66

77
const docsDir = resolve(dirname(fileURLToPath(import.meta.url)), '../..')

docs/.vitepress/scripts/fetch-avatars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function download(url: string, fileName: string) {
1111
if (existsSync(fileName)) {
1212
return
1313
}
14-
// eslint-disable-next-line no-console
14+
1515
console.log('downloading', fileName)
1616
try {
1717
const image = await (await fetch(url)).arrayBuffer()

docs/.vitepress/scripts/pwa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { PwaOptions } from '@vite-pwa/vitepress'
22
import {
33
githubusercontentRegex,
4-
pwaFontStylesRegex,
54
pwaFontsRegex,
5+
pwaFontStylesRegex,
66
vitestDescription,
77
vitestName,
88
vitestShortName,

docs/.vitepress/theme/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { h } from 'vue'
21
import type { Theme } from 'vitepress'
3-
import DefaultTheme from 'vitepress/theme'
4-
import { inBrowser } from 'vitepress'
5-
import '../style/main.css'
6-
import '../style/vars.css'
7-
import 'uno.css'
82
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
3+
import { inBrowser } from 'vitepress'
4+
import DefaultTheme from 'vitepress/theme'
95
import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client'
6+
import { h } from 'vue'
107
import HomePage from '../components/HomePage.vue'
118
import Version from '../components/Version.vue'
9+
import '../style/main.css'
10+
import '../style/vars.css'
11+
import 'uno.css'
1212
import '@shikijs/vitepress-twoslash/style.css'
1313

1414
if (inBrowser) {

docs/advanced/pool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ To communicate between different processes, you can create methods object using
6565
```ts
6666
import { createBirpc } from 'birpc'
6767
import { parse, stringify } from 'flatted'
68-
import { WorkspaceProject, createMethodsRPC } from 'vitest/node'
68+
import { createMethodsRPC, WorkspaceProject } from 'vitest/node'
6969

7070
function createRpc(project: WorkspaceProject, wss: WebSocketServer) {
7171
return createBirpc(

docs/advanced/runner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ A task is an object that is part of a suite. It is automatically added to the cu
250250
// ./utils/custom.js
251251
import { createTaskCollector, getCurrentSuite, setFn } from 'vitest/suite'
252252

253-
export { describe, beforeAll, afterAll } from 'vitest'
253+
export { afterAll, beforeAll, describe } from 'vitest'
254254

255255
// this function will be called during collection phase:
256256
// don't call function handler here, add it to suite tasks

docs/guide/mocking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ You can use it like below in your [setup file](/config/#setupfiles)
443443
```js
444444
import { afterAll, afterEach, beforeAll } from 'vitest'
445445
import { setupServer } from 'msw/node'
446-
import { HttpResponse, graphql, http } from 'msw'
446+
import { graphql, http, HttpResponse } from 'msw'
447447

448448
const posts = [
449449
{

0 commit comments

Comments
 (0)