fix: add no-new-array rule (#5117)

This commit is contained in:
LongYinan
2023-11-29 04:44:06 +00:00
parent 68caf5027d
commit cb2c659f52
6 changed files with 73 additions and 56 deletions

View File

@@ -265,7 +265,9 @@ test.describe('collaboration members', () => {
await addUserToWorkspace(workspaceId, userB.id, 1 /* READ */);
};
await Promise.all(
new Array(10).fill(1).map(() => createUserAndAddToWorkspace())
Array.from({ length: 10 })
.fill(1)
.map(() => createUserAndAddToWorkspace())
);
await openSettingModal(page);