Skip to content

Commit 520e08f

Browse files
authored
Merge pull request #764 from vitest-dev/lint-fix
Lint fix
2 parents 3d0927d + ae3a744 commit 520e08f

File tree

10 files changed

+877
-763
lines changed

10 files changed

+877
-763
lines changed

advanced/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ interface GlobReturn {
306306
*/
307307
testFiles: string[]
308308
/**
309-
* 与筛选器匹配的类型检查测试文件。除非 `typecheck.enabled` 为 `true`,否则将为空。
309+
* 与筛选器匹配的类型检查测试文件。除非 `typecheck.enabled` 为 `true`,否则将为空。
310310
*/
311311
typecheckTestFiles: string[]
312312
}

api/expect-typeof.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ This matcher only works with plain object types. It will fail for union types an
9191
```ts
9292
import { expectTypeOf } from 'vitest'
9393

94-
type ResponsiveProp<T> = T | T[] | { xs?: T, sm?: T, md?: T }
94+
type ResponsiveProp<T> = T | T[] | { xs?: T; sm?: T; md?: T }
9595

9696
interface CSSProperties {
9797
margin?: string
@@ -107,10 +107,10 @@ const cssProperties: CSSProperties = { margin: '1px', padding: '2px' }
107107
expectTypeOf(getResponsiveProp(cssProperties))
108108
.extract<{ xs?: any }>() // extracts the last type from a union
109109
.toEqualTypeOf<{
110-
xs?: CSSProperties
111-
sm?: CSSProperties
112-
md?: CSSProperties
113-
}>()
110+
xs?: CSSProperties
111+
sm?: CSSProperties
112+
md?: CSSProperties
113+
}>()
114114

115115
expectTypeOf(getResponsiveProp(cssProperties))
116116
.extract<unknown[]>() // extracts an array from a union

api/expect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ test('expect.soft test', () => {
105105

106106
```ts
107107
interface ExpectPoll extends ExpectStatic {
108-
(actual: () => T, options?: { interval?: number, timeout?: number, message?: string }): Promise<Assertions<T>>
108+
(actual: () => T, options?: { interval?: number; timeout?: number; message?: string }): Promise<Assertions<T>>
109109
}
110110
```
111111

0 commit comments

Comments
 (0)