fix (linter): linter setup

This commit is contained in:
MickaelK
2025-08-01 14:08:59 +10:00
parent a442c30509
commit 3c20f044f6
2 changed files with 2 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -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"
}

View File

@ -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));
});