From 037b67da9714792d1ccbf8756fd6e3caee15ae45 Mon Sep 17 00:00:00 2001 From: Rex Lorenzo Date: Thu, 7 May 2026 08:39:27 -0700 Subject: [PATCH] chore(lint): use vue-tsc for staged .vue type-checking Plain tsc cannot resolve named imports from .vue files (e.g. `import type { ScheduleSemester } from "./ScheduleView.vue"`), which made the staged-files type-check in scripts/lint-staged-vue.js fail on every Vue commit since 72491d42 (Phase 4 bulk deletion) introduced those imports. lint-staged-ts.js already uses vue-tsc for VueApp/src/ files; this mirrors that for the .vue path. --- scripts/lint-staged-vue.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lint-staged-vue.js b/scripts/lint-staged-vue.js index 4597380e2..fa2765846 100644 --- a/scripts/lint-staged-vue.js +++ b/scripts/lint-staged-vue.js @@ -205,8 +205,9 @@ try { // Check app files with tsconfig.app.json if (appFiles.length > 0) { logger.info(`Checking ${appFiles.length} application files...`) + // Plain tsc can't resolve named imports from .vue modules. const appResult = runCommand( - "tsc", + "vue-tsc", ["--project", "tsconfig.app.json", "--noEmit"], "TypeScript app checking", vueAppDir,