mirror of
https://github.com/zkitter/ui.git
synced 2026-01-08 20:57:59 -05:00
fix lint issues
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"include": [
|
||||
"src",
|
||||
"jest.config"
|
||||
"jest.config.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
|
||||
Reference in New Issue
Block a user