Skip to content

Commit 9a4ade8

Browse files
authored
chore: add vite-checker (#508)
1 parent 170eca4 commit 9a4ade8

File tree

4 files changed

+120
-4
lines changed

4 files changed

+120
-4
lines changed

apps/ui/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
"eslint-plugin-react-hooks": "^4.6.0",
8383
"eslint-plugin-react-refresh": "^0.4.3",
8484
"typescript": "^5.0.2",
85-
"vite": "^4.4.5"
85+
"vite": "^4.4.5",
86+
"vite-plugin-checker": "^0.6.2"
8687
}
8788
}

apps/ui/src/components/nodes/Rich.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ const MyEditor = ({
340340
autoLinkAllowedTLDs: ["dev", ...TOP_50_TLDS],
341341
}),
342342
new UnderlineExtension(),
343-
new EmojiExtension({ data: emojiData, plainText: true }),
343+
new EmojiExtension({ data: emojiData as any, plainText: true }),
344344
new SlashExtension({
345345
extraAttributes: { type: "user" },
346346
matchers: [

apps/ui/vite.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
import { defineConfig } from "vite";
22
import react from "@vitejs/plugin-react-swc";
33
// import react from "@vitejs/plugin-react";
4+
import checker from "vite-plugin-checker";
45

56
// https://vitejs.dev/config/
67
export default defineConfig({
78
server: { port: 3000 },
8-
plugins: [react({ tsDecorators: true })],
9+
plugins: [
10+
react({ tsDecorators: true }),
11+
checker({
12+
// e.g. use TypeScript check
13+
typescript: true,
14+
}),
15+
],
916
});

pnpm-lock.yaml

Lines changed: 109 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)