Skip to content

Commit 152c78a

Browse files
committed
fix linting errors, fix electron vite popping up index.html, docs typescript errors, etc.
1 parent 462a1b6 commit 152c78a

4 files changed

Lines changed: 16 additions & 3 deletions

File tree

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,12 @@
5454
},
5555
"files.associations": {
5656
"*.css": "tailwindcss"
57+
},
58+
"go.lintTool": "staticcheck",
59+
"go.lintFlags": ["-checks=all,-ST1005,-QF1003,-ST1000,-ST1003"],
60+
"gopls": {
61+
"analyses": {
62+
"QF1003": false
63+
}
5764
}
5865
}

docs/docs/config.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ id: "config"
44
title: "Configuration"
55
---
66

7-
import { Kbd } from "@site/src/components/kbd.tsx";
8-
import { PlatformProvider, PlatformSelectorButton } from "@site/src/components/platformcontext.tsx";
7+
import { Kbd } from "@site/src/components/kbd";
8+
import { PlatformProvider, PlatformSelectorButton } from "@site/src/components/platformcontext";
99

1010
<PlatformProvider>
1111

docs/src/components/platformcontext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const PlatformProviderInternal = ({ children }: { children: ReactNode }) => {
4646
);
4747
};
4848

49-
export const PlatformProvider: React.FC = ({ children }: { children: ReactNode }) => {
49+
export const PlatformProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
5050
return (
5151
<BrowserOnly fallback={<div />}>
5252
{() => <PlatformProviderInternal>{children}</PlatformProviderInternal>}

electron.vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export default defineConfig({
2727
"@": "frontend",
2828
},
2929
},
30+
server: {
31+
open: false,
32+
},
3033
define: {
3134
"process.env.WS_NO_BUFFER_UTIL": "true",
3235
"process.env.WS_NO_UTF_8_VALIDATE": "true",
@@ -47,6 +50,9 @@ export default defineConfig({
4750
},
4851
outDir: "dist/preload",
4952
},
53+
server: {
54+
open: false,
55+
},
5056
plugins: [tsconfigPaths(), flow()],
5157
},
5258
renderer: {

0 commit comments

Comments
 (0)