Skip to content

Commit 5bfc2ec

Browse files
committed
Additional lint
1 parent 2bf6e31 commit 5bfc2ec

File tree

7 files changed

+11
-21
lines changed

7 files changed

+11
-21
lines changed

src/command/render/latexmk/latexmk.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { OutputRecipe } from "../types.ts";
2323
import { generatePdf } from "./pdf.ts";
2424
import { LatexmkOptions } from "./types.ts";
2525
import { texToPdfOutputRecipe } from "../output-tex.ts";
26-
import { dirname } from "path/mod.ts";
2726

2827
export function useQuartoLatexmk(
2928
format: Format,

src/core/devconfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { ensureDirSync, existsSync } from "fs/mod.ts";
1111

1212
import { md5Hash } from "./hash.ts";
1313

14-
import { isMac, isWindows } from "./platform.ts";
14+
import { isWindows } from "./platform.ts";
1515
import { quartoConfig } from "./quarto.ts";
1616

1717
const kDevConfig = "dev-config";

src/core/handlers/include.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
mappedString,
1616
} from "../lib/mapped-text.ts";
1717

18-
import { relative } from "path/mod.ts";
1918
import { rangedLines } from "../lib/ranged-text.ts";
2019
import { isBlockShortcode } from "../lib/parse-shortcode.ts";
2120
import { DirectiveCell } from "../lib/break-quarto-md-types.ts";

src/core/shell.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,24 @@
77

88
import { which } from "./path.ts";
99
import { requireQuoting, safeWindowsExec } from "./windows.ts";
10-
import { execProcess, ProcessResult } from "./process.ts";
11-
10+
import { execProcess } from "./process.ts";
1211

1312
export async function openUrl(url: string) {
1413
const shellOpen = {
1514
windows: "explorer",
1615
darwin: "open",
1716
linux: "xdg-open",
1817
};
19-
18+
2019
const cmd = shellOpen[Deno.build.os];
21-
20+
2221
// Because URLs may contain characters like '&' that need to be escaped
2322
// on Windoww, we need to check whether the url is one of those
2423
// and use our special windows indirection in that case
2524
if (Deno.build.os === "windows") {
2625
const safeArgs = requireQuoting([url]);
2726
if (safeArgs.status) {
28-
const result = await safeWindowsExec(
27+
await safeWindowsExec(
2928
cmd,
3029
safeArgs.args,
3130
(cmd: string[]) => {
@@ -43,12 +42,10 @@ export async function openUrl(url: string) {
4342
}
4443
}
4544
} else {
46-
// The traditional and simple way to run, which always
47-
// works outside of windows
48-
if (await which(cmd)) {
49-
Deno.run({ cmd: [cmd, url] });
50-
}
45+
// The traditional and simple way to run, which always
46+
// works outside of windows
47+
if (await which(cmd)) {
48+
Deno.run({ cmd: [cmd, url] });
49+
}
5150
}
52-
53-
5451
}

src/core/temp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
*/
77

8-
import { debug, warning } from "log/mod.ts";
8+
import { debug } from "log/mod.ts";
99
import { join } from "path/mod.ts";
1010
import { ensureDirSync, existsSync } from "fs/mod.ts";
1111
import { removeIfExists, safeRemoveIfExists } from "./path.ts";

src/format/html/format-html-shared.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ import {
2727

2828
import { formatResourcePath } from "../../core/resources.ts";
2929
import { Document, Element } from "../../core/deno-dom.ts";
30-
import { HtmlPostProcessResult } from "../../command/render/types.ts";
31-
import { kHtmlEmptyPostProcessResult } from "../../command/render/constants.ts";
3230

3331
// features that are enabled by default for 'html'. setting
3432
// all of these to false will yield the minimal html output

src/project/types/website/website-types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77

88
import {
99
OpenGraphConfig,
10-
SocialMetadata,
1110
TwitterCardConfig,
1211
} from "../../../resources/types/schema-types.ts";
1312

1413
import {
15-
kLocale,
1614
kOpenGraph,
1715
kPageFooter,
1816
kSiteFavicon,
19-
kSiteName,
2017
kSiteNavbar,
2118
kSitePageNavigation,
2219
kSiteRepoActions,

0 commit comments

Comments
 (0)