Skip to content

Commit a304f59

Browse files
committed
chore: exception for no-extra-semi lint rule
typescript-eslint v6 don't want them, but prettier adds them.
1 parent 881646e commit a304f59

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class Pluggable<Instance = DOMWrapper<Node>> {
4848
return handler(instance, options) // invoke the setup method passed to install
4949
}
5050
const bindProperty = ([property, value]: [string, any]) => {
51+
// eslint-disable-next-line no-extra-semi
5152
;(instance as any)[property] =
5253
typeof value === 'function' ? value.bind(instance) : value
5354
}

src/createInstance.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export function createInstance(
231231
}
232232
// also intercept the proxy calls to make the mocks available on the instance
233233
// (useful when a template access a global function like $t and the developer wants to mock it)
234+
// eslint-disable-next-line no-extra-semi
234235
;(this.$ as any).proxy = new Proxy((this.$ as any).proxy, {
235236
get(target, key) {
236237
if (key in global.mocks) {
@@ -243,6 +244,7 @@ export function createInstance(
243244
for (const [k, v] of Object.entries(
244245
global.mocks as { [key: string]: any }
245246
)) {
247+
// eslint-disable-next-line no-extra-semi
246248
;(this as any)[k] = v
247249
}
248250
}

0 commit comments

Comments
 (0)