Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

268 changes: 0 additions & 268 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion bin/asinit.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ function ensurePackageJson() {
updated = true;
}
if (!scripts["start"]) {
scripts["start"] = "npx serve .",
scripts["start"] = "npx serve .";
pkg["scripts"] = scripts;
updated = true;
}
Expand Down
16 changes: 8 additions & 8 deletions cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export async function main(argv, options) {
} catch (e1) {
try {
transform = require(resolved);
} catch (e2) {
} catch {
return prepareResult(e1);
}
}
Expand Down Expand Up @@ -670,7 +670,7 @@ export async function main(argv, options) {
.replace(/\\/g, "/")
.replace(extension_re, "")
.replace(/\/$/, "");

// Try entryPath.ext, then entryPath/index.ext
let sourceText = await readFile(sourcePath + extension, baseDir);
if (sourceText == null) {
Expand Down Expand Up @@ -867,7 +867,7 @@ export async function main(argv, options) {
// Prepare output
if (!opts.noEmit) {
if (opts.binaryFile) {
// We catched lagacy field for binary output (before 0.20)
// We caught legacy field for binary output (before 0.20)
return prepareResult(Error("Usage of the --binaryFile compiler option is no longer supported. Use --outFile instead."));
}
let bindings = opts.bindings || [];
Expand Down Expand Up @@ -959,7 +959,7 @@ export async function main(argv, options) {
writeFile(opts.textFile, out, baseDir)
);
} else if (!hasStdout) {
hasStdout = true;
// hasStdout = true;
writeStdout(out);
}
}
Expand Down Expand Up @@ -1024,7 +1024,7 @@ export async function main(argv, options) {
try {
stats.readCount++;
return await fs.promises.readFile(name, "utf8");
} catch (e) {
} catch {
return null;
}
}
Expand All @@ -1038,7 +1038,7 @@ export async function main(argv, options) {
await fs.promises.mkdir(dirPath, { recursive: true });
await fs.promises.writeFile(filePath, contents);
return true;
} catch (e) {
} catch {
return false;
}
}
Expand All @@ -1049,7 +1049,7 @@ export async function main(argv, options) {
stats.readCount++;
return (await fs.promises.readdir(path.join(baseDir, dirname)))
.filter(file => extension_re_except_d.test(file));
} catch (e) {
} catch {
return null;
}
}
Expand Down Expand Up @@ -1106,7 +1106,7 @@ async function getConfig(file, baseDir, readFile) {
try {
config = JSON.parse(contents);
} catch(ex) {
throw new Error(`Asconfig is not valid json: ${location}`);
throw new Error(`Asconfig is not valid json: ${location}`, { cause: ex });
}

// validate asconfig shape
Expand Down
Loading
Loading