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

+5 -5
View File
@@ -1,12 +1,12 @@
import esbuild from 'esbuild';
import {
Context, fs, Handler, Logger, NotFoundError, param, SettingModel, sha1,
size, SystemModel, Types, UiContextBase,
} from 'hydrooj';
import { tmpdir } from 'os';
import {
basename, join, relative, resolve,
} from 'path';
import {
Context, fs, Handler, Logger, NotFoundError, param, SettingModel, sha1,
size, SystemModel, Types, UiContextBase,
} from 'hydrooj';
import esbuild from 'esbuild';
declare module 'hydrooj' {
interface UI {
@@ -232,4 +232,4 @@ export default function plugin(md) {
state.posMax = max;
return true;
});
};
}
@@ -1,5 +1,4 @@
/* eslint-disable max-len */
/* eslint-disable prefer-destructuring */
import type MarkdownIt from 'markdown-it';
import { v4 as uuid } from 'uuid';
+1 -1
View File
@@ -1,5 +1,5 @@
import { AnsiUp } from 'ansi_up';
import { moment, ObjectId } from 'hydrooj';
import { AnsiUp } from 'ansi_up';
export { size, formatSeconds } from 'hydrooj';
+2 -2
View File
@@ -1,12 +1,12 @@
import path from 'path';
import * as status from '@hydrooj/common/status';
import { findFileSync } from '@hydrooj/utils/lib/utils';
import { convert } from 'html-to-text';
import {
avatar, Context, difficultyAlgorithm, fs, PERM, PRIV, Service, STATUS, yaml,
} from 'hydrooj';
import { convert } from 'html-to-text';
import jsesc from 'jsesc';
import nunjucks from 'nunjucks';
import path from 'path';
import markdown from './markdown';
import { ensureTag, xss } from './markdown-it-xss';
import * as misc from './misc';