Skip to content

Commit aa0b8d9

Browse files
authored
lint fix (#767)
2 parents daacbb8 + 857aa09 commit aa0b8d9

File tree

4 files changed

+155
-154
lines changed

4 files changed

+155
-154
lines changed

api/expect-typeof.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

guide/migration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ export default defineConfig({
454454
Vitest 没有 Jest 的 `jest` 命名空间,需直接从 `vitest` 导入类型:
455455

456456
```ts
457-
// [!code --]
458-
import type { Mock } from 'vitest' let fn: jest.Mock<(name: string) => number> // [!code ++]
457+
let fn: jest.Mock<(name: string) => number> // [!code --]
458+
import type { Mock } from 'vitest' // [!code ++]
459459
let fn: Mock<(name: string) => number> // [!code ++]
460460
```
461461

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@vitest/coverage-istanbul": "^4.0.0-beta.7",
3838
"@vitest/coverage-v8": "^4.0.0-beta.7",
3939
"@vitest/ui": "^4.0.0-beta.7",
40-
"eslint": "^9.30.1",
40+
"eslint": "^9.38.0",
4141
"esno": "^4.8.0",
4242
"fs-extra": "^11.3.0",
4343
"https-localhost": "^4.7.1",

0 commit comments

Comments
 (0)