mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: update eslint rule (#1027)
This commit is contained in:
1 parent
05c3b8f2bd
commit
cee3c00ddb
150 files changed
+1069
-1043
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user