Skip to content

Commit a97cf16

Browse files
committed
chore: ignore some lint issues
1 parent 07e9928 commit a97cf16

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/components/Brand/Customize.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ async function downloadCustomPng() {
8080
8181
const img = new Image()
8282
const loaded = new Promise<void>((resolve, reject) => {
83+
// oxlint-disable-next-line eslint-plugin-unicorn(prefer-add-event-listener)
8384
img.onload = () => resolve()
85+
// oxlint-disable-next-line eslint-plugin-unicorn(prefer-add-event-listener)
8486
img.onerror = () => reject(new Error('Failed to load custom SVG'))
8587
})
8688
img.src = url

app/composables/useSvgToPng.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ export function useSvgToPng() {
66
img.crossOrigin = 'anonymous'
77

88
const loaded = new Promise<void>((resolve, reject) => {
9+
// oxlint-disable-next-line eslint-plugin-unicorn(prefer-add-event-listener)
910
img.onload = () => resolve()
11+
// oxlint-disable-next-line eslint-plugin-unicorn(prefer-add-event-listener)
1012
img.onerror = () => reject(new Error(`Failed to load SVG: ${svgUrl}`))
1113
})
1214

0 commit comments

Comments
 (0)