eslint: enable extra rules

no-implicit-coercion, no-extra-boolean-cast, no-invalid-this, logical-assignment-operators, no-unmodified-loop-condition
This commit is contained in:
undefined committed 2023-01-06 00:28:35 +08:00
1 parent 5ac9d930b2
commit 7f51df236a
34 files changed
+100 -96

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import {
Context, ForbiddenError, superagent, SystemModel,
Context, ForbiddenError, Handler, superagent, SystemModel,
TokenModel, UserFacingError, ValidationError,
} from 'hydrooj';
@@ -11,7 +11,7 @@ declare module 'hydrooj' {
}
}
async function get() {
async function get(this: Handler) {
const [appid, [state]] = await Promise.all([
SystemModel.get('login-with-github.id'),
TokenModel.add(TokenModel.TYPE_OAUTH, 600, { redirect: this.request.referer }),