fix lint issues

This commit is contained in:
r1oga
2023-02-14 19:32:51 +01:00
committed by r1oga
parent 7593234391
commit c97e71bc81
4 changed files with 12 additions and 2 deletions

View File

@@ -20,3 +20,11 @@ rules:
- error
- allowEmptyCatch: true
no-unused-vars: off
overrides:
- files: ['./src/components/DraftEditor/index.tsx']
rules:
no-useless-escape: warn
- files: ['./src/**/*.ts']
rules:
no-async-promise-executor: warn

View File

@@ -12,6 +12,7 @@
"test": "NODE_ENV=test jest --config jest.config.ts --coverage=false",
"test:coverage": "npm run test --coverage=true",
"test:ci": "npm run test --silent --reporters=jest-silent-reporter",
"fix": "npm run lint:fix && npm run format:fix",
"format:check": "prettier --check 'src'",
"format:fix": "prettier --write 'src'",
"format:ci": "npm run format:check --loglevel warn",

View File

@@ -15,7 +15,8 @@ import { getEpoch } from './zkchat';
import { sha256 } from './crypto';
import { findProof } from './merkle';
import { Identity } from '@semaphore-protocol/identity';
import { SerializedIdentity } from '@zk-kit/identity/src/types/index';
// eslint-disable-next-line import/no-unresolved
import { SerializedIdentity } from '@zk-kit/identity/src/types';
export const generateRLNProof =
(signalString: string) =>

View File

@@ -1,7 +1,7 @@
{
"include": [
"src",
"jest.config"
"jest.config.ts"
],
"compilerOptions": {
"baseUrl": ".",