lint fixes
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
"!**/website_build",
|
||||
"!**/test-results",
|
||||
"!**/.chrome-data",
|
||||
"!target",
|
||||
"!**/*.html",
|
||||
"!**/*.plug.js",
|
||||
"!plugs/*/assets",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user