lint 수정
This commit is contained in:
+3
-4
@@ -3,16 +3,15 @@ require('@rushstack/eslint-patch/modern-module-resolution')
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
|
parser: "vue-eslint-parser",
|
||||||
'extends': [
|
'extends': [
|
||||||
'plugin:vue/vue3-essential',
|
'plugin:vue/vue3-essential',
|
||||||
|
'plugin:@typescript-eslint/recommended',
|
||||||
'eslint:recommended',
|
'eslint:recommended',
|
||||||
'@vue/eslint-config-typescript',
|
'@vue/eslint-config-typescript',
|
||||||
'@vue/eslint-config-prettier/skip-formatting'
|
'@vue/eslint-config-prettier/skip-formatting',
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 'latest',
|
ecmaVersion: 'latest',
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
"@typescript-eslint/no-explicit-any": "warn",
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,9 @@ export function APIPathGen<T extends object, V>(
|
|||||||
throw new Error('Symbol is not supported');
|
throw new Error('Symbol is not supported');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(map.has(key)){
|
const cachedResult = map.get(key);
|
||||||
return map.get(key)!;
|
if(cachedResult !== undefined){
|
||||||
|
return cachedResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
const nextPath = [...path, key];
|
const nextPath = [...path, key];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* tslint:disable */
|
/* eslint-disable @typescript-eslint/no-namespace */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ export class LiteHashDRBG implements RNG {
|
|||||||
if (nextBlockWait) {
|
if (nextBlockWait) {
|
||||||
nextBlockWait();
|
nextBlockWait();
|
||||||
}
|
}
|
||||||
return nextBlock!;
|
return nextBlock as Uint8Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async nextBits(bits: number, baseBytes?: number): Promise<Uint8Array> {
|
public async nextBits(bits: number, baseBytes?: number): Promise<Uint8Array> {
|
||||||
|
|||||||
Reference in New Issue
Block a user