From edb4e4bb5ce0245585dc8e6d5b612e3c89d61779 Mon Sep 17 00:00:00 2001 From: Jack Tanner Date: Mon, 5 Aug 2024 13:35:02 +0200 Subject: [PATCH] style: turn of ts comment lint errors --- eslint.config.js | 1 + src/accounts/accounts.service.ts | 1 + src/communication/transform-vc/transform-vc.pipe.spec.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index 9af5a4e..0d941dd 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -12,6 +12,7 @@ export default [ eqeqeq: 'error', 'no-console': 'warn', 'prettier/prettier': 'error', + '@typescript-eslint/ban-ts-comment': 'warn', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-explicit-any': 'warn', diff --git a/src/accounts/accounts.service.ts b/src/accounts/accounts.service.ts index c678d51..da90223 100644 --- a/src/accounts/accounts.service.ts +++ b/src/accounts/accounts.service.ts @@ -73,6 +73,7 @@ export class AccountsService { createAccountRequest.usernameHash, createAccountRequest.publicKey, createAccountRequest.salt, + // @ts-ignore PrivateKey type error EosioUtil.createSigner(idTonomyActiveKey), ); } catch (e) { diff --git a/src/communication/transform-vc/transform-vc.pipe.spec.ts b/src/communication/transform-vc/transform-vc.pipe.spec.ts index 7ffbab8..7320f9d 100644 --- a/src/communication/transform-vc/transform-vc.pipe.spec.ts +++ b/src/communication/transform-vc/transform-vc.pipe.spec.ts @@ -14,6 +14,7 @@ describe('TransformVcPipe', () => { beforeEach(async () => { const privateKey = PrivateKey.generate(KeyType.K1); + // @ts-ignore PrivateKey type error const issuer = await util.toDidKeyIssuer(privateKey); const subject = { foo: 'bar' }; const signedVc = await util.VerifiableCredential.sign(