Skip to content

Commit

Permalink
style: turn of ts comment lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
theblockstalk committed Aug 5, 2024
1 parent f0831ab commit edb4e4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/accounts/accounts.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export class AccountsService {
createAccountRequest.usernameHash,
createAccountRequest.publicKey,
createAccountRequest.salt,
// @ts-ignore PrivateKey type error

Check warning on line 76 in src/accounts/accounts.service.ts

View workflow job for this annotation

GitHub Actions / tests

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
EosioUtil.createSigner(idTonomyActiveKey),
);
} catch (e) {
Expand Down
1 change: 1 addition & 0 deletions src/communication/transform-vc/transform-vc.pipe.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit edb4e4b

Please sign in to comment.