From 3c20f044f6f09cbef06bc347d8db716b6ba03fcc Mon Sep 17 00:00:00 2001 From: MickaelK Date: Fri, 1 Aug 2025 14:08:59 +1000 Subject: [PATCH] fix (linter): linter setup --- Jenkinsfile | 2 +- public/assets/helpers/loader.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f1727e5f..3d8bad11 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -49,7 +49,7 @@ pipeline { // test frontend docker.image("node:20").inside("--user=root") { sh "cd public && npm install" - // sh "cd public && npm run lint" + sh "cd public && npm run lint" sh "cd public && npm run check" // sh "cd public && npm run test" } diff --git a/public/assets/helpers/loader.js b/public/assets/helpers/loader.js index e1935683..ffb2599f 100644 --- a/public/assets/helpers/loader.js +++ b/public/assets/helpers/loader.js @@ -38,7 +38,7 @@ export async function loadWorker(baseURL, path, opts = {}) { // at application_table.js:58:50 let code = await fetch(new URL(path, baseURL)).then((res) => res.text()); const importPathRE = new RegExp("import\\s+(?:[^'\";]*?\\s+from\\s+)?[\"']([^\"']+)[\"']", "gm"); - code = code.replaceAll("import.meta.url", `"${baseURL}"`) + code = code.replaceAll("import.meta.url", `"${baseURL}"`); code.matchAll(importPathRE).forEach(([_, path]) => { code = code.replaceAll(path, new URL(path, baseURL)); });