style: enable import-x/no-duplicates (#6279)

This commit is contained in:
EYHN
2024-03-25 03:55:32 +00:00
parent 7ce2bfbf0b
commit f2adbdaba4
342 changed files with 881 additions and 1033 deletions

View File

@@ -5,7 +5,8 @@ import path, { resolve } from 'node:path';
import process from 'node:process';
import type { DocCollection } from '@blocksuite/store';
import { type BrowserContext, test as baseTest } from '@playwright/test';
import type { BrowserContext } from '@playwright/test';
import { test as baseTest } from '@playwright/test';
export const rootDir = resolve(__dirname, '..', '..');
// assert that the rootDir is the root of the project

View File

@@ -10,12 +10,8 @@ import {
} from '@affine-test/kit/utils/sidebar';
import { faker } from '@faker-js/faker';
import { hash } from '@node-rs/argon2';
import {
type BrowserContext,
type Cookie,
expect,
type Page,
} from '@playwright/test';
import type { BrowserContext, Cookie, Page } from '@playwright/test';
import { expect } from '@playwright/test';
import { z } from 'zod';
export async function getCurrentMailMessageCount() {

View File

@@ -1,4 +1,5 @@
import { expect, type Page } from '@playwright/test';
import type { Page } from '@playwright/test';
import { expect } from '@playwright/test';
export const coreUrl = 'http://localhost:8080';

View File

@@ -1,4 +1,5 @@
import { expect, type Page } from '@playwright/test';
import type { Page } from '@playwright/test';
import { expect } from '@playwright/test';
export const getPropertyValueLocator = (page: Page, property: string) => {
return page.locator(

View File

@@ -1,4 +1,5 @@
import { expect, type Page } from '@playwright/test';
import type { Page } from '@playwright/test';
import { expect } from '@playwright/test';
import { waitForEditorLoad } from './page-logic';