diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 838ee34..fb490e0 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -3,16 +3,15 @@ require('@rushstack/eslint-patch/modern-module-resolution') module.exports = { root: true, + parser: "vue-eslint-parser", 'extends': [ 'plugin:vue/vue3-essential', + 'plugin:@typescript-eslint/recommended', 'eslint:recommended', '@vue/eslint-config-typescript', - '@vue/eslint-config-prettier/skip-formatting' + '@vue/eslint-config-prettier/skip-formatting', ], parserOptions: { ecmaVersion: 'latest', - }, - rules: { - "@typescript-eslint/no-explicit-any": "warn", } } diff --git a/server/clientAPI/APIPathGen.ts b/server/clientAPI/APIPathGen.ts index df8fca9..660d343 100644 --- a/server/clientAPI/APIPathGen.ts +++ b/server/clientAPI/APIPathGen.ts @@ -10,8 +10,9 @@ export function APIPathGen( throw new Error('Symbol is not supported'); } - if(map.has(key)){ - return map.get(key)!; + const cachedResult = map.get(key); + if(cachedResult !== undefined){ + return cachedResult; } const nextPath = [...path, key]; diff --git a/server/entity/schemats.ts b/server/entity/schemats.ts index 2b2330e..68b0573 100644 --- a/server/entity/schemats.ts +++ b/server/entity/schemats.ts @@ -1,4 +1,4 @@ -/* tslint:disable */ +/* eslint-disable @typescript-eslint/no-namespace */ /** diff --git a/server/util/LiteHashDRBG.ts b/server/util/LiteHashDRBG.ts index e178059..9b26a86 100644 --- a/server/util/LiteHashDRBG.ts +++ b/server/util/LiteHashDRBG.ts @@ -196,7 +196,7 @@ export class LiteHashDRBG implements RNG { if (nextBlockWait) { nextBlockWait(); } - return nextBlock!; + return nextBlock as Uint8Array; } public async nextBits(bits: number, baseBytes?: number): Promise {