Skip to content

Commit ff722c9

Browse files
committed
Fixing lint errors in wdk package
1 parent f562119 commit ff722c9

38 files changed

Lines changed: 242 additions & 222 deletions

packages/wallet/core/src/state/sequence/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class Provider implements ProviderInterface {
191191
throw new Error(`unexpected compact sapient signature by ${signer}`)
192192
}
193193
} catch {
194-
//
194+
// ignore
195195
}
196196
}
197197

@@ -228,7 +228,7 @@ export class Provider implements ProviderInterface {
228228
}
229229
}
230230
} catch {
231-
//
231+
// ignore
232232
}
233233
}
234234

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
import { config as baseConfig } from '@repo/eslint-config/base'
22

33
/** @type {import("eslint").Linter.Config} */
4-
export default baseConfig
4+
export default [
5+
...baseConfig,
6+
{
7+
// files: ['**/*.{test,spec}.ts'],
8+
rules: {
9+
'@typescript-eslint/no-explicit-any': 'off',
10+
},
11+
},
12+
]

packages/wallet/wdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dev": "tsc --watch",
1313
"test": "vitest run && npm run test:ssr",
1414
"test:coverage": "vitest run --coverage",
15-
"test:ssr": "node test/test-ssr-safety.mjs",
15+
"test:ssr": "node test/test-ssr-safety.js",
1616
"typecheck": "tsc --noEmit",
1717
"clean": "rimraf dist",
1818
"lint": "eslint . --max-warnings 0"

packages/wallet/wdk/src/dbs/auth-commitments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Generic, Migration } from './generic.js'
1+
import { Generic } from './generic.js'
22
import { IDBPDatabase, IDBPTransaction } from 'idb'
33

44
const TABLE_NAME = 'auth-commitments'

packages/wallet/wdk/src/dbs/auth-keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Generic, Migration } from './generic.js'
1+
import { Generic } from './generic.js'
22
import { IDBPDatabase, IDBPTransaction } from 'idb'
33
import type { WdkEnv } from '../env.js'
44

packages/wallet/wdk/src/dbs/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Message } from '../sequence/types/message-request.js'
2-
import { Generic, Migration } from './generic.js'
2+
import { Generic } from './generic.js'
33
import { IDBPDatabase, IDBPTransaction } from 'idb'
44

55
const TABLE_NAME = 'messages'

packages/wallet/wdk/src/dbs/passkey-credentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Generic, Migration } from './generic.js'
1+
import { Generic } from './generic.js'
22
import { IDBPDatabase, IDBPTransaction } from 'idb'
33
import { Address } from 'ox'
44
import { Extensions } from '@0xsequence/wallet-primitives'

packages/wallet/wdk/src/dbs/recovery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Generic, Migration } from './generic.js'
1+
import { Generic } from './generic.js'
22
import { QueuedRecoveryPayload } from '../sequence/types/recovery.js'
33
import { IDBPDatabase, IDBPTransaction } from 'idb'
44

packages/wallet/wdk/src/dbs/signatures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BaseSignatureRequest } from '../sequence/index.js'
2-
import { Generic, Migration } from './generic.js'
2+
import { Generic } from './generic.js'
33
import { IDBPDatabase, IDBPTransaction } from 'idb'
44

55
const TABLE_NAME = 'envelopes'

packages/wallet/wdk/src/dbs/transactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Transaction } from '../sequence/types/transaction-request.js'
2-
import { Generic, Migration } from './generic.js'
2+
import { Generic } from './generic.js'
33
import { IDBPDatabase, IDBPTransaction } from 'idb'
44

55
const TABLE_NAME = 'transactions'

0 commit comments

Comments
 (0)