Browse Source

typecheck with tsgo

Yuki Takei 2 months ago
parent
commit
6b70e0f851

+ 1 - 1
packages/editor/package.json

@@ -14,7 +14,7 @@
     "watch": "pnpm run dev -w --emptyOutDir=false",
     "serve": "vite",
     "lint:js": "biome check",
-    "lint:typecheck": "vue-tsc --noEmit",
+    "lint:typecheck": "tsgo --noEmit",
     "lint": "npm-run-all -p lint:*"
   },
   "dependencies": {

+ 1 - 1
packages/editor/src/client/services/use-codemirror-editor/utils/editor-shortcuts/make-text-bold.ts

@@ -1,6 +1,6 @@
 import type { EditorView, KeyBinding } from '@codemirror/view';
-import type { KeyMapMode } from 'src/consts';
 
+import type { KeyMapMode } from '../../../../../consts';
 import { useInsertMarkdownElements } from '../insert-markdown-elements';
 import { generateAddMarkdownSymbolCommand } from './generate-add-markdown-symbol-command';
 

+ 1 - 1
packages/editor/src/client/stores/use-editor-shortcuts.ts

@@ -1,8 +1,8 @@
 import { useEffect } from 'react';
 import type { EditorView } from '@codemirror/view';
 import { type KeyBinding, keymap } from '@codemirror/view';
-import type { KeyMapMode } from 'src/consts';
 
+import type { KeyMapMode } from '../../consts';
 import type { UseCodeMirrorEditor } from '../services';
 import { useAddMultiCursorKeyBindings } from '../services/use-codemirror-editor/utils/editor-shortcuts/add-multi-cursor';
 import { useInsertBlockquoteKeyBinding } from '../services/use-codemirror-editor/utils/editor-shortcuts/insert-blockquote';

+ 0 - 1
packages/editor/tsconfig.json

@@ -21,7 +21,6 @@
     "noUnusedParameters": true,
     "noFallthroughCasesInSwitch": true,
 
-    "baseUrl": ".",
     "paths": {
       "/*": ["./public/*"]
     }