add lint command, lint and lint:fix project

This commit is contained in:
wearrrrr 2024-09-01 19:01:24 -05:00
parent 430c7ad6ec
commit 93b609932d
23 changed files with 36916 additions and 25 deletions

View file

@ -8,8 +8,8 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
construct({ args, call }) {
if (args[0] instanceof URL) args[0] = args[0].href;
if (args[0].startsWith("blob:") || args[0].startsWith("data:")) {
let data = syncfetch(client, args[0]);
let id = Math.random().toString(8).slice(5);
const data = syncfetch(client, args[0]);
const id = Math.random().toString(8).slice(5);
args[0] = "/scramjet/worker?id=" + id;
if (args[1] && args[1].type === "module") {