chore: bump oxlint & enable more supported rules (#14769)
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user