workspace: apply eslint edits

This commit is contained in:
undefined committed 2025-03-21 09:48:17 +08:00
1 parent 040f7d8863
commit 0e7f5fe635
63 files changed
+47 -96

No files matched your search

-1
View File
@@ -1,4 +1,3 @@
/* eslint-disable no-await-in-loop */
import path from 'path';
import {
convertIniConfig, LangConfig, normalizeSubtasks, ProblemConfigFile, readSubtasksFromFiles,
-1
View File
@@ -1,4 +1,3 @@
/* eslint-disable no-template-curly-in-string */
import { STATUS } from '@hydrooj/common';
import { FormatError, SystemError } from './error';
import { CopyInFile, runQueued } from './sandbox';
-2
View File
@@ -1,5 +1,3 @@
/* eslint-disable import/no-duplicates */
/* eslint-disable no-constant-condition */
/* eslint-disable no-await-in-loop */
/* ..
.' @`._
-1
View File
@@ -1,4 +1,3 @@
/* eslint-disable no-await-in-loop */
import path from 'path';
import PQueue from 'p-queue';
import superagent from 'superagent';
+1 -1
View File
@@ -249,7 +249,7 @@ export default class VJ4 implements Session {
}
}
async processData(folder: string) { // eslint-disable-line class-methods-use-this
async processData(folder: string) {
let files = await fs.readdir(folder);
if (files.length <= 2) {
if (files.length === 2) files.splice(files.indexOf('version'), 1);
-1
View File
@@ -1,4 +1,3 @@
/* eslint-disable no-sequences */
import { STATUS } from '@hydrooj/common';
import { fs, parseMemoryMB, parseTimeMS } from '@hydrooj/utils';
import checkers from '../checkers';