Add .eslintrc.json

And fix issues
This commit is contained in:
John Factotum
2022-11-04 14:12:07 +00:00
committed by GitHub
parent a9805d3e63
commit 2b51522c43
4 changed files with 29 additions and 5 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ const makeDirectoryLoader = async entry => {
const files = await Promise.all(
entries.map(entry => new Promise((resolve, reject) =>
entry.file(file => resolve([file, entry.fullPath]),
error => reject(error)))))
error => reject(error)))))
const map = new Map(files.map(([file, path]) =>
[path.replace(entry.fullPath + '/', ''), file]))
const decoder = new TextDecoder()
@@ -176,7 +176,7 @@ class Reader {
this.layout.flow = value
this.setAppearance()
},
}
},
])
menu.element.classList.add('menu')