chore: bump oxlint & enable more supported rules (#14769)

This commit is contained in:
DarkSky authored and GitHub committed 2026-04-03 03:36:52 +08:00
1 parent cdadf8588a
commit 233004f867
285 files changed
+937 -1983

No files matched your search

+2 -2
View File
@@ -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]);