mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
chore: bump oxlint & enable more supported rules (#14769)
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@affine-test/kit": "workspace:*",
|
||||
"@affine-tools/cli": "workspace:*",
|
||||
"@affine-tools/utils": "workspace:*",
|
||||
"@playwright/test": "=1.58.2"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
|
||||
@@ -6,9 +6,5 @@
|
||||
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo"
|
||||
},
|
||||
"include": ["./e2e"],
|
||||
"references": [
|
||||
{ "path": "../kit" },
|
||||
{ "path": "../../tools/cli" },
|
||||
{ "path": "../../tools/utils" }
|
||||
]
|
||||
"references": [{ "path": "../kit" }]
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ test.skip('use keyboard copy inside code block copy', async ({
|
||||
|
||||
await type(page, 'use');
|
||||
await page.keyboard.down('Shift');
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
||||
// oxlint-disable-next-line @typescript-eslint/prefer-for-of
|
||||
for (let i = 0; i < 'use'.length; i++) {
|
||||
await page.keyboard.press('ArrowLeft');
|
||||
}
|
||||
|
||||
@@ -1376,7 +1376,7 @@ test('scroll should update dragging area and select blocks when dragging', async
|
||||
await initParagraphsByCount(page, 20);
|
||||
|
||||
await page.mouse.click(0, 0);
|
||||
// eslint-disable-next-line sonarjs/no-identical-functions
|
||||
// oxlint-disable-next-line sonarjs/no-identical-functions
|
||||
async function getViewportScrollTop() {
|
||||
return page.evaluate(() => {
|
||||
const viewport = document.querySelector('.affine-page-viewport');
|
||||
|
||||
@@ -240,7 +240,7 @@ export async function enterPlaygroundWithList(
|
||||
title: new window.$blocksuite.store.Text(),
|
||||
});
|
||||
const noteId = doc.addBlock('affine:note', {}, rootId);
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
||||
// oxlint-disable-next-line @typescript-eslint/prefer-for-of
|
||||
for (let i = 0; i < contents.length; i++) {
|
||||
doc.addBlock(
|
||||
'affine:list',
|
||||
@@ -799,7 +799,7 @@ export async function getClipboardHTML(page: Page) {
|
||||
const indentAfter = ' '.repeat(level >= 2 ? level - 2 : 0);
|
||||
let textNode;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
||||
// oxlint-disable-next-line @typescript-eslint/prefer-for-of
|
||||
for (let i = 0; i < node.children.length; i++) {
|
||||
textNode = document.createTextNode('\n' + indentBefore);
|
||||
node.insertBefore(textNode, node.children[i]);
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
"@blocksuite/integration-test": "workspace:*",
|
||||
"@playwright/test": "=1.58.2",
|
||||
"@toeverything/theme": "^1.1.23",
|
||||
"json-stable-stringify": "^1.2.1",
|
||||
"rxjs": "^7.8.2"
|
||||
"json-stable-stringify": "^1.2.1"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
"@node-rs/argon2": "^2.0.2",
|
||||
"@playwright/test": "=1.58.2",
|
||||
"@toeverything/infra": "workspace:*",
|
||||
"express": "^5.0.0",
|
||||
"http-proxy-middleware": "^3.0.3"
|
||||
"express": "^5.1.0",
|
||||
"http-proxy-middleware": "^3.0.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@playwright/test": "*",
|
||||
|
||||
@@ -114,7 +114,7 @@ export async function writeTextToClipboard(
|
||||
// paste the url
|
||||
await page.evaluate(
|
||||
async ([text]) => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
// oxlint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
navigator.clipboard.writeText('');
|
||||
const e = new ClipboardEvent('paste', {
|
||||
clipboardData: new DataTransfer(),
|
||||
|
||||
Reference in New Issue
Block a user