From 60b83e36a9a9ac59f3d41a27cd12d40d1832114e Mon Sep 17 00:00:00 2001 From: MickaelK Date: Fri, 6 Dec 2024 18:32:58 +1100 Subject: [PATCH] fix (linter): canary linter --- public/assets/pages/filespage/ctrl_upload.js | 2 +- public/assets/pages/viewerpage/application_editor/orgmode.js | 2 +- public/assets/pages/viewerpage/application_form.js | 2 +- public/package.json | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public/assets/pages/filespage/ctrl_upload.js b/public/assets/pages/filespage/ctrl_upload.js index 942f3798..badd3914 100644 --- a/public/assets/pages/filespage/ctrl_upload.js +++ b/public/assets/pages/filespage/ctrl_upload.js @@ -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 diff --git a/public/assets/pages/viewerpage/application_editor/orgmode.js b/public/assets/pages/viewerpage/application_editor/orgmode.js index 128c011a..ebf2f30a 100644 --- a/public/assets/pages/viewerpage/application_editor/orgmode.js +++ b/public/assets/pages/viewerpage/application_editor/orgmode.js @@ -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), diff --git a/public/assets/pages/viewerpage/application_form.js b/public/assets/pages/viewerpage/application_form.js index bc634452..6efd2adb 100644 --- a/public/assets/pages/viewerpage/application_form.js +++ b/public/assets/pages/viewerpage/application_form.js @@ -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; diff --git a/public/package.json b/public/package.json index a438a513..16e85d1a 100644 --- a/public/package.json +++ b/public/package.json @@ -67,6 +67,10 @@ "allowTemplateLiterals": true } ], + "quote-props": [ + "error", + "consistent" + ], "indent": [ "error", 4