workspace: update eslint rule (#1027)

This commit is contained in:
undefined authored and GitHub committed 2025-08-06 18:51:25 +01:00
1 parent 05c3b8f2bd
commit cee3c00ddb
150 files changed
+1069 -1043

No files matched your search

+4 -2
View File
@@ -1,5 +1,6 @@
/* eslint-disable no-tabs */
/* eslint-disable no-await-in-loop */
/* eslint-disable style/no-tabs */
import path from 'path';
import zlib from 'zlib';
import mariadb from 'mariadb';
@@ -34,7 +35,7 @@ export async function run({
host = 'localhost', port = 3306, name,
username, password, domainId, contestType = 'oi',
dataDir, imageDir, rerun = true, randomMail = false,
}, report: Function) {
}, report: (data: any) => void) {
const src = await mariadb.createConnection({
host,
port,
@@ -150,6 +151,7 @@ export async function run({
hint: pdoc.hint,
source: pdoc.source,
}, 'html');
// eslint-disable-next-line regexp/no-super-linear-backtracking
const uploadFiles = content.matchAll(/(?:src|href)="\/images\/([^"]+\/([^"]+))"/g);
for (const file of uploadFiles) {
try {