mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: apply eslint edits
This commit is contained in:
63 files changed
+47
-96
No files matched your search
@@ -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,5 +1,5 @@
|
||||
import { AnsiUp } from 'ansi_up';
|
||||
import { moment, ObjectId } from 'hydrooj';
|
||||
import { AnsiUp } from 'ansi_up';
|
||||
|
||||
export { size, formatSeconds } from 'hydrooj';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user