diff --git a/package.json b/package.json index 1a4c47148..358dfde69 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "test": "node -r @hydrooj/register packages/common/tests/subtask.spec.ts && node test/entry.js", "benchmark": "cross-env BENCHMARK=true node test/entry.js", "oxlint": "cd framework/eslint-config && node -r @hydrooj/register build.ts && cd ../../ && oxlint --config framework/eslint-config/.oxlintrc.json", - "lint": "eslint --flag v10_config_lookup_from_file packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --fix", - "lint:ci": "eslint --flag v10_config_lookup_from_file packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --max-warnings=0", + "lint": "eslint packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --fix", + "lint:ci": "eslint packages plugins modules framework --ext .ts,.tsx,.jsx,.vue,.yaml,.yml --max-warnings=0", "debug": "node --trace-warnings --async-stack-traces --trace-deprecation packages/hydrooj/bin/hydrooj --debug --template", "start": "packages/hydrooj/bin/hydrooj.js", "postinstall": "node build/prepare.js", diff --git a/packages/hydrooj/src/loader.ts b/packages/hydrooj/src/loader.ts index 9f46554e9..ae6bc30f2 100644 --- a/packages/hydrooj/src/loader.ts +++ b/packages/hydrooj/src/loader.ts @@ -174,7 +174,8 @@ app.plugin(Loader); async function preload() { global.app = await new Promise((resolve) => { app.inject(['timer', 'i18n', '$api'], (c) => { - c.inject({ domain: { required: false } }, resolve); + c.root.domain = undefined as any; + resolve(c); }); }); for (const a of [path.resolve(__dirname, '..'), ...getAddons()]) {