Skip to content

Commit 25ce8a7

Browse files
haoqunjiangsxzz
authored andcommitted
fix: use consistent array type syntax
1 parent 9fb7565 commit 25ce8a7

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ module.exports = defineConfig({
6262
'node/no-unpublished-require': 'off',
6363
'node/no-unsupported-features/es-syntax': 'off',
6464

65-
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
6665
'@typescript-eslint/ban-ts-comment': 'off', // TODO: we should turn this on in a new PR
6766
'@typescript-eslint/ban-types': 'off', // TODO: we should turn this on in a new PR
6867
'@typescript-eslint/explicit-module-boundary-types': [

packages/plugin-vue/src/utils/descriptorCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { ResolvedOptions, VueQuery } from '..'
88
// compiler-sfc should be exported so it can be re-used
99
export interface SFCParseResult {
1010
descriptor: SFCDescriptor
11-
errors: Array<CompilerError | SyntaxError>
11+
errors: (CompilerError | SyntaxError)[]
1212
}
1313

1414
export const cache = new Map<string, SFCDescriptor>()

playground/test-utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,18 @@ type UntilBrowserLogAfterCallback = (logs: string[]) => PromiseLike<void> | void
193193

194194
export async function untilBrowserLogAfter(
195195
operation: () => any,
196-
target: string | RegExp | Array<string | RegExp>,
196+
target: string | RegExp | (string | RegExp)[],
197197
expectOrder?: boolean,
198198
callback?: UntilBrowserLogAfterCallback,
199199
): Promise<string[]>
200200
export async function untilBrowserLogAfter(
201201
operation: () => any,
202-
target: string | RegExp | Array<string | RegExp>,
202+
target: string | RegExp | (string | RegExp)[],
203203
callback?: UntilBrowserLogAfterCallback,
204204
): Promise<string[]>
205205
export async function untilBrowserLogAfter(
206206
operation: () => any,
207-
target: string | RegExp | Array<string | RegExp>,
207+
target: string | RegExp | (string | RegExp)[],
208208
arg3?: boolean | UntilBrowserLogAfterCallback,
209209
arg4?: UntilBrowserLogAfterCallback,
210210
): Promise<string[]> {
@@ -221,7 +221,7 @@ export async function untilBrowserLogAfter(
221221
}
222222

223223
async function untilBrowserLog(
224-
target?: string | RegExp | Array<string | RegExp>,
224+
target?: string | RegExp | (string | RegExp)[],
225225
expectOrder = true,
226226
): Promise<string[]> {
227227
let resolve: () => void

0 commit comments

Comments
 (0)