lint fixes

This commit is contained in:
Zef Hemel
2026-07-28 14:30:10 +02:00
parent c135bcbdb7
commit 02ee8c7942
3 changed files with 7 additions and 4 deletions
+1
View File
@@ -45,6 +45,7 @@
"!**/website_build",
"!**/test-results",
"!**/.chrome-data",
"!target",
"!**/*.html",
"!**/*.plug.js",
"!plugs/*/assets",
+5 -3
View File
@@ -158,9 +158,11 @@ class Printer {
case "TableConstructor":
return this.tableConstructor(e.fields, depth);
case "FunctionDefinition":
return (
"function" + this.functionRest(e.body.parameters, e.body.block, depth)
);
return `function${this.functionRest(
e.body.parameters,
e.body.block,
depth,
)}`;
case "FunctionCall":
return this.functionCall(e, depth);
case "Query": {
+1 -1
View File
@@ -70,7 +70,7 @@ export const jsApi = new LuaTable({
callback: async (_sf, path: string) => {
const base = document.baseURI.replace(/\/*$/, "/");
const rel = String(path).replace(/^\/+/, "");
let m = await import(base + fsEndpoint.slice(1) + "/" + rel);
let m = await import(`${base}${fsEndpoint.slice(1)}/${rel}`);
// Unwrap default if it exists (same contract as `js.import`).
if (Object.keys(m).length === 1 && m.default) {
m = m.default;