From da9e29c2bdd2e56c1884a421939f0f6e93bfd637 Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Wed, 13 Dec 2023 12:09:13 -0600 Subject: [PATCH] fix: lint issues --- packages/site/.eslintrc.js | 4 ++++ packages/snap/src/handlers.test.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/packages/site/.eslintrc.js b/packages/site/.eslintrc.js index 268a79f..4fc4215 100644 --- a/packages/site/.eslintrc.js +++ b/packages/site/.eslintrc.js @@ -3,6 +3,10 @@ module.exports = { parserOptions: { project: './tsconfig.eslint.json', }, + rules: { + 'spaced-comment': 'off', + 'import/unambiguous': 'off', + }, overrides: [ { files: ['**/*.{ts,tsx}'], diff --git a/packages/snap/src/handlers.test.ts b/packages/snap/src/handlers.test.ts index ec6ac58..c5f0254 100644 --- a/packages/snap/src/handlers.test.ts +++ b/packages/snap/src/handlers.test.ts @@ -229,6 +229,7 @@ describe('onRPCRequest', () => { const decryptRequest = keystore.SelfDecryptRequest.encode({ requests: [ { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion payload: decodedEncryptResponse.responses[0].result!.encrypted, }, ], @@ -243,6 +244,7 @@ describe('onRPCRequest', () => { const decryptResultProto = keystore.DecryptResponse.decode( base64Decode(decryptResultPayload), ); + // eslint-disable-next-line jest/prefer-strict-equal expect(decryptResultProto.responses[0].result?.decrypted).toEqual( originalData, );