Skip to content

Commit 8016d59

Browse files
committed
Fix lint violations
1 parent 89a11bd commit 8016d59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ function updateCropArea(event: TouchEvent | MouseEvent | KeyboardEvent) {
6868
if (!box) return
6969

7070
const rect = el.getBoundingClientRect()
71-
let deltaX, deltaY, delta
71+
let deltaX
72+
let deltaY
73+
let delta
7274
if (event instanceof KeyboardEvent) {
7375
if (event.key === 'Escape') return setInitialPosition(el)
7476
if (event.key === '-') delta = -10
@@ -204,6 +206,7 @@ class ImageCropElement extends HTMLElement {
204206
if (constructedElements.has(this)) return
205207

206208
const shadowRoot = this.attachShadow({mode: 'open'})
209+
// eslint-disable-next-line github/no-inner-html
207210
shadowRoot.innerHTML = `
208211
<style>
209212
:host { touch-action: none; display: block; }

0 commit comments

Comments
 (0)