Skip to content

Commit

Permalink
chore: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
sinchang committed Nov 17, 2023
1 parent 84f1ea3 commit 3f477c9
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 588 deletions.
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu()
6 changes: 3 additions & 3 deletions example/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fileElement.addEventListener(
const files: FileList = <FileList>(<HTMLInputElement>e.target).files
qrcodeParser(files[0])
.then((res) => {
document.getElementById('content3')!.innerText = res
document.getElementById('content3')!.textContent = res
})
.catch((err) => {
// eslint-disable-next-line no-console
Expand All @@ -26,7 +26,7 @@ document.getElementById('parse-image-url')!.addEventListener(
return

qrcodeParser(url).then((res) => {
document.getElementById('content1')!.innerText = res
document.getElementById('content1')!.textContent = res
})
},
false,
Expand All @@ -42,7 +42,7 @@ document.getElementById('parse-image-base64')!.addEventListener(
return

qrcodeParser(url).then((res) => {
document.getElementById('content2')!.innerText = res
document.getElementById('content2')!.textContent = res
})
},
false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"jsqr": "^1.4.0"
},
"devDependencies": {
"@antfu/eslint-config": "^1.0.0",
"@antfu/eslint-config": "^1.2.0",
"@playwright/test": "^1.31.2",
"@types/node": "^20.0.0",
"eslint": "^8.46.0",
Expand Down
Loading

0 comments on commit 3f477c9

Please sign in to comment.