mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 10:56:31 +08:00
fix (linter): canary linter
This commit is contained in:
@ -362,7 +362,7 @@ function workerImplFile({ progress, speed }) {
|
||||
const numberOfChunks = Math.ceil(file.size / chunkSize);
|
||||
const headersNoCache = {
|
||||
"Cache-Control": "no-store",
|
||||
"Pragma": "no-cache"
|
||||
"Pragma": "no-cache",
|
||||
};
|
||||
|
||||
// Case1: basic upload
|
||||
|
||||
@ -104,7 +104,7 @@ window.CodeMirror.registerGlobalHelper("fold", "drawer", function(mode) {
|
||||
|
||||
window.CodeMirror.registerHelper("orgmode", "init", (editor) => {
|
||||
editor.setOption("extraKeys", {
|
||||
Tab: (cm) => org_cycle(cm),
|
||||
"Tab": (cm) => org_cycle(cm),
|
||||
"Shift-Tab": (cm) => org_shifttab(cm),
|
||||
"Alt-Left": (cm) => org_metaleft(cm),
|
||||
"Alt-Right": (cm) => org_metaright(cm),
|
||||
|
||||
@ -148,7 +148,7 @@ function readOnlyForm(formSpec) {
|
||||
formSpec["readonly"] = true;
|
||||
return formSpec;
|
||||
}
|
||||
for (let key in formSpec) {
|
||||
for (const key in formSpec) {
|
||||
formSpec[key] = readOnlyForm(formSpec[key]);
|
||||
}
|
||||
return formSpec;
|
||||
|
||||
@ -67,6 +67,10 @@
|
||||
"allowTemplateLiterals": true
|
||||
}
|
||||
],
|
||||
"quote-props": [
|
||||
"error",
|
||||
"consistent"
|
||||
],
|
||||
"indent": [
|
||||
"error",
|
||||
4
|
||||
|
||||
Reference in New Issue
Block a user