Skip to content

Commit 58049a9

Browse files
committed
Upgrade xo and prettier.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 9810d69 commit 58049a9

File tree

10 files changed

+916
-1425
lines changed

10 files changed

+916
-1425
lines changed

app/common/link-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function openBrowser(url: URL): Promise<void> {
1616
fs.writeFileSync(
1717
file,
1818
html`
19-
<!DOCTYPE html>
19+
<!doctype html>
2020
<html>
2121
<head>
2222
<meta charset="UTF-8" />

app/renderer/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<meta charset="UTF-8" />
33
<link rel="stylesheet" href="css/about.css" />
44

app/renderer/css/fonts.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
font-family: "Material Icons";
33
font-style: normal;
44
font-weight: 400;
5-
src: local("Material Icons"), local("MaterialIcons-Regular"),
5+
src:
6+
local("Material Icons"),
7+
local("MaterialIcons-Regular"),
68
url("../fonts/MaterialIcons-Regular.ttf") format("truetype");
79
}
810

app/renderer/css/preference.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ img.server-info-icon {
307307
}
308308

309309
.settings-card:hover {
310-
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 0 0 rgb(0 0 0 / 12%);
310+
box-shadow:
311+
0 2px 5px 0 rgb(0 0 0 / 16%),
312+
0 2px 0 0 rgb(0 0 0 / 12%);
311313
}
312314

313315
.hidden {

app/renderer/js/pages/preference/general-section.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,8 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
460460
filters: [{name: "CSS file", extensions: ["css"]}],
461461
};
462462

463-
const {filePaths, canceled} = await dialog.showOpenDialog(
464-
showDialogOptions,
465-
);
463+
const {filePaths, canceled} =
464+
await dialog.showOpenDialog(showDialogOptions);
466465
if (!canceled) {
467466
ConfigUtil.setConfigItem("customCSS", filePaths[0]);
468467
ipcRenderer.send("forward-message", "hard-reload");
@@ -529,9 +528,8 @@ export function initGeneralSection({$root}: GeneralSectionProps): void {
529528
properties: ["openDirectory"],
530529
};
531530

532-
const {filePaths, canceled} = await dialog.showOpenDialog(
533-
showDialogOptions,
534-
);
531+
const {filePaths, canceled} =
532+
await dialog.showOpenDialog(showDialogOptions);
535533
if (!canceled) {
536534
ConfigUtil.setConfigItem("downloadsPath", filePaths[0]);
537535
const downloadFolderPath: HTMLElement = $root.querySelector(

app/renderer/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en" class="responsive desktop">
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

app/renderer/network.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en" class="responsive desktop">
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

app/renderer/preference.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<meta charset="UTF-8" />
33
<link rel="stylesheet" href="css/fonts.css" />
44
<link rel="stylesheet" href="css/preference.css" />

0 commit comments

Comments
 (0)