From f597e00150e437d7e16912992aa0765f00c27c46 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Thu, 20 Jul 2023 16:49:44 +0200 Subject: [PATCH] chore: exception for no-extra-semi lint rule typescript-eslint v6 don't want them, but prettier adds them. --- src/config.ts | 1 + src/createInstance.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/config.ts b/src/config.ts index 44939a91c..41f4181b4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -48,6 +48,7 @@ class Pluggable> { return handler(instance, options) // invoke the setup method passed to install } const bindProperty = ([property, value]: [string, any]) => { + // eslint-disable-next-line no-extra-semi ;(instance as any)[property] = typeof value === 'function' ? value.bind(instance) : value } diff --git a/src/createInstance.ts b/src/createInstance.ts index bb79fe94c..7dbb4f4ee 100644 --- a/src/createInstance.ts +++ b/src/createInstance.ts @@ -231,6 +231,7 @@ export function createInstance( } // also intercept the proxy calls to make the mocks available on the instance // (useful when a template access a global function like $t and the developer wants to mock it) + // eslint-disable-next-line no-extra-semi ;(this.$ as any).proxy = new Proxy((this.$ as any).proxy, { get(target, key) { if (key in global.mocks) { @@ -243,6 +244,7 @@ export function createInstance( for (const [k, v] of Object.entries( global.mocks as { [key: string]: any } )) { + // eslint-disable-next-line no-extra-semi ;(this as any)[k] = v } }