Skip to content

Commit 9a9323b

Browse files
chore(deps): update dependency @antfu/eslint-config to v6 (#8832)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
1 parent 77aa316 commit 9a9323b

File tree

31 files changed

+392
-316
lines changed

31 files changed

+392
-316
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test:browser:playwright": "pnpm -C test/browser run test:playwright"
3838
},
3939
"devDependencies": {
40-
"@antfu/eslint-config": "^5.4.1",
40+
"@antfu/eslint-config": "^6.2.0",
4141
"@antfu/ni": "^27.0.1",
4242
"@playwright/test": "^1.56.1",
4343
"@rollup/plugin-commonjs": "^28.0.9",

packages/browser-webdriverio/src/commands/keyboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface KeyboardState {
1010

1111
export const keyboard: UserEventCommand<(
1212
text: string,
13-
state: KeyboardState
13+
state: KeyboardState,
1414
) => Promise<{ unreleased: string[] }>> = async (
1515
context,
1616
text,

packages/browser/src/node/commands/screenshotMatcher/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ export interface Codec<
1818
> {
1919
decode: (
2020
buffer: TypedArray,
21-
options: DecoderOptions
21+
options: DecoderOptions,
2222
) => Promisable<{
2323
data: TypedArray
2424
metadata: DecoderMetadata & BaseMetadata
2525
}>
2626
encode: (
2727
image: { data: TypedArray; metadata: BaseMetadata },
28-
options: EncoderOptions
28+
options: EncoderOptions,
2929
) => Promisable<TypedArray>
3030
}
3131

@@ -45,7 +45,7 @@ export type Comparator<Options extends Record<string, unknown>> = (
4545
* Note that the comparator might choose to ignore the flag, so a diff image is not guaranteed.
4646
*/
4747
createDiff: boolean
48-
} & Options
48+
} & Options,
4949
) => Promisable<{ pass: boolean; diff: TypedArray | null; message: string | null }>
5050

5151
type CustomComparatorsToRegister = {

packages/browser/src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ export interface WebSocketBrowserHandlers {
3131
debug: (...args: string[]) => void
3232
resolveId: (
3333
id: string,
34-
importer?: string
34+
importer?: string,
3535
) => Promise<ServerIdResolution | null>
3636
triggerCommand: <T>(
3737
sessionId: string,
3838
command: string,
3939
testPath: string | undefined,
40-
payload: unknown[]
40+
payload: unknown[],
4141
) => Promise<T>
4242
resolveMock: (
4343
id: string,
@@ -46,7 +46,7 @@ export interface WebSocketBrowserHandlers {
4646
) => Promise<ServerMockResolution>
4747
invalidate: (ids: string[]) => void
4848
getBrowserFileSourceMap: (
49-
id: string
49+
id: string,
5050
) => SourceMap | null | { mappings: '' } | undefined
5151
wdioSwitchContext: (direction: 'iframe' | 'parent') => void
5252

packages/expect/src/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ export type Tester = (
1818
this: TesterContext,
1919
a: any,
2020
b: any,
21-
customTesters: Array<Tester>
21+
customTesters: Array<Tester>,
2222
) => boolean | undefined
2323

2424
export interface TesterContext {
2525
equals: (
2626
a: unknown,
2727
b: unknown,
2828
customTesters?: Array<Tester>,
29-
strictCheck?: boolean
29+
strictCheck?: boolean,
3030
) => boolean
3131
}
3232
export type { DiffOptions } from '@vitest/utils/diff'
@@ -52,7 +52,7 @@ export interface MatcherState {
5252
a: unknown,
5353
b: unknown,
5454
customTesters?: Array<Tester>,
55-
strictCheck?: boolean
55+
strictCheck?: boolean,
5656
) => boolean
5757
expand?: boolean
5858
expectedAssertionsNumber?: number | null
@@ -399,7 +399,7 @@ export interface JestAssertion<T = any> extends jest.Matchers<void, T>, CustomMa
399399
*/
400400
toHaveProperty: <E>(
401401
property: string | (string | number)[],
402-
value?: E
402+
value?: E,
403403
) => void
404404

405405
/**
@@ -684,7 +684,7 @@ export interface Assertion<T = any>
684684
| 'object'
685685
| 'string'
686686
| 'symbol'
687-
| 'undefined'
687+
| 'undefined',
688688
) => void
689689

690690
/**

packages/mocker/src/browser/hints.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ export function createCompilerHints(options?: CompilerHintsOptions): ModuleMocke
3737
// @ts-expect-error injected by the plugin
3838
? globalThis[globalThisAccessor]
3939
: new Proxy(
40-
{} as any,
41-
{
42-
get(_, name) {
43-
throw new Error(
44-
'Vitest mocker was not initialized in this environment. '
45-
+ `vi.${String(name)}() is forbidden.`,
46-
)
40+
{} as any,
41+
{
42+
get(_, name) {
43+
throw new Error(
44+
'Vitest mocker was not initialized in this environment. '
45+
+ `vi.${String(name)}() is forbidden.`,
46+
)
47+
},
4748
},
48-
},
49-
)
49+
)
5050
}
5151

5252
return {

packages/mocker/src/browser/mocker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export interface ModuleMockerRPC {
253253
resolveMock: (
254254
id: string,
255255
importer: string,
256-
options: { mock: 'spy' | 'factory' | 'auto' }
256+
options: { mock: 'spy' | 'factory' | 'auto' },
257257
) => Promise<ResolveMockResult>
258258
}
259259

packages/mocker/src/node/esmWalker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ interface Visitors {
4141
onIdentifier?: (
4242
node: Positioned<Identifier>,
4343
info: IdentifierInfo,
44-
parentStack: Node[]
44+
parentStack: Node[],
4545
) => void
4646
onImportMeta?: (node: Node) => void
4747
onDynamicImport?: (node: Positioned<ImportExpression>) => void

packages/mocker/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
type Awaitable<T> = T | PromiseLike<T>
22

33
export type ModuleMockFactoryWithHelper<M = unknown> = (
4-
importOriginal: <T extends M = M>() => Promise<T>
4+
importOriginal: <T extends M = M>() => Promise<T>,
55
) => Awaitable<Partial<M>>
66
export type ModuleMockFactory = () => any
77
export interface ModuleMockOptions {

packages/runner/src/fixture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function resolveFixtureValue(
270270
async function resolveFixtureFunction(
271271
fixtureFn: (
272272
context: unknown,
273-
useFn: (arg: unknown) => Promise<void>
273+
useFn: (arg: unknown) => Promise<void>,
274274
) => Promise<void>,
275275
context: unknown,
276276
cleanupFnArray: (() => void | Promise<void>)[],

0 commit comments

Comments
 (0)