mirror of
https://github.com/anonklub/anonklub.git
synced 2026-01-09 18:07:55 -05:00
chore: remove eslint-disable statements
eslint is not used anymore. We use biome instead
This commit is contained in:
@@ -7,7 +7,6 @@ let halo2EcdsaWasm: IHalo2EthMembershipWasm
|
||||
let initialized = false
|
||||
|
||||
export const halo2EcdsaWorker: IHalo2EthMembershipaWorker = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
async prepare(num_threads: number) {
|
||||
halo2EcdsaWasm = await import('@anonklub/halo2-eth-membership')
|
||||
halo2EcdsaWasm.initPanicHook()
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { IsNumberString } from 'class-validator'
|
||||
|
||||
export class EthBalanceAnonSetRequest {
|
||||
// @eslint-disable-next-line
|
||||
@IsNumberString()
|
||||
min = '100'
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ let spartanEcdsaWasm: ISpartanEcdsaWasm
|
||||
let initialized = false
|
||||
|
||||
export const spartanEcdsaWorker: ISpartanEcdsaWorker = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
async prepare() {
|
||||
spartanEcdsaWasm = await import('@anonklub/spartan-ecdsa-wasm')
|
||||
spartanEcdsaWasm.init_panic_hook()
|
||||
|
||||
@@ -11,7 +11,6 @@ export const useMerkleTreeWasmWorker = () => {
|
||||
): Promise<Uint8Array> => {
|
||||
process.env.NODE_ENV === 'development' && console.time('==>merkle')
|
||||
|
||||
// eslint-disable-next-line no-useless-catch
|
||||
try {
|
||||
const proof = await MerkleTreeWorker.generateMerkleProof(
|
||||
leaves,
|
||||
|
||||
@@ -60,7 +60,6 @@ export const useProofRequest = () => {
|
||||
setIsGeneratingMerkleProof(false)
|
||||
}
|
||||
})()
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [address, isWorkerReady, message, rawSignature, anonSet])
|
||||
|
||||
return {
|
||||
|
||||
@@ -6,6 +6,5 @@ export function useSetHelp(helpText: string[]) {
|
||||
|
||||
useEffect(() => {
|
||||
setHelpText(helpText)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [])
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ export const useWorker = (
|
||||
await worker.prepare()
|
||||
setIsWorkerReady(true)
|
||||
})()
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [])
|
||||
|
||||
return isWorkerReady
|
||||
|
||||
Reference in New Issue
Block a user