summaryrefslogtreecommitdiff
path: root/tools/lint.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lint.js')
-rwxr-xr-xtools/lint.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/lint.js b/tools/lint.js
index f1fa96a2c..ee438ed8b 100755
--- a/tools/lint.js
+++ b/tools/lint.js
@@ -40,12 +40,12 @@ async function dlint() {
const chunks = splitToChunks(sourceFiles, `${execPath} run`.length);
for (const chunk of chunks) {
- const { status } = await Deno.spawn(execPath, {
+ const { success } = await Deno.spawn(execPath, {
args: ["run", "--config=" + configFile, ...chunk],
stdout: "inherit",
stderr: "inherit",
});
- if (!status.success) {
+ if (!success) {
throw new Error("dlint failed");
}
}
@@ -71,12 +71,12 @@ async function dlintPreferPrimordials() {
const chunks = splitToChunks(sourceFiles, `${execPath} run`.length);
for (const chunk of chunks) {
- const { status } = await Deno.spawn(execPath, {
+ const { success } = await Deno.spawn(execPath, {
args: ["run", "--rule", "prefer-primordials", ...chunk],
stdout: "inherit",
stderr: "inherit",
});
- if (!status.success) {
+ if (!success) {
throw new Error("prefer-primordials failed");
}
}
@@ -108,7 +108,7 @@ async function clippy() {
cmd.push("--release");
}
- const { status } = await Deno.spawn("cargo", {
+ const { success } = await Deno.spawn("cargo", {
args: [
...cmd,
"--",
@@ -124,7 +124,7 @@ async function clippy() {
stdout: "inherit",
stderr: "inherit",
});
- if (!status.success) {
+ if (!success) {
throw new Error("clippy failed");
}
}