Skip to content

Commit

Permalink
chore: add vite-checker (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihebi authored Sep 6, 2023
1 parent 170eca4 commit 9a4ade8
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.0.2",
"vite": "^4.4.5"
"vite": "^4.4.5",
"vite-plugin-checker": "^0.6.2"
}
}
2 changes: 1 addition & 1 deletion apps/ui/src/components/nodes/Rich.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ const MyEditor = ({
autoLinkAllowedTLDs: ["dev", ...TOP_50_TLDS],
}),
new UnderlineExtension(),
new EmojiExtension({ data: emojiData, plainText: true }),
new EmojiExtension({ data: emojiData as any, plainText: true }),
new SlashExtension({
extraAttributes: { type: "user" },
matchers: [
Expand Down
9 changes: 8 additions & 1 deletion apps/ui/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
// import react from "@vitejs/plugin-react";
import checker from "vite-plugin-checker";

// https://vitejs.dev/config/
export default defineConfig({
server: { port: 3000 },
plugins: [react({ tsDecorators: true })],
plugins: [
react({ tsDecorators: true }),
checker({
// e.g. use TypeScript check
typescript: true,
}),
],
});
110 changes: 109 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a4ade8

Please sign in to comment.