Skip to content

Commit

Permalink
typecheckをデフォルトでvue-tscに (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored Sep 19, 2023
1 parent 9224583 commit 3903a6f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,9 @@ typos
## 型チェック

TypeScript の型チェックを行います。
※ 現在チェック方法は 2 種類ありますが、将来的に 1 つになります。

```bash
# .tsのみ型チェック
npm run typecheck

# .vueも含めて型チェック
# ※ 現状、大量にエラーが検出されます。
npm run typecheck:vue-tsc
```

## Markdownlint
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"lint": "eslint --ext .js,.vue,.ts *.config.* src tests build",
"fmt": "eslint --ext .js,.vue,.ts *.config.* src tests build --fix",
"markdownlint": "markdownlint --ignore node_modules/ --ignore dist/ --ignore dist_electron/ ./",
"typecheck": "tsc --noEmit",
"typecheck:vue-tsc": "vue-tsc --noEmit",
"typecheck": "vue-tsc --noEmit",
"electron:build": "cross-env VITE_TARGET=electron vite build && electron-builder --config electron-builder.config.js",
"electron:build_dir": "cross-env VITE_TARGET=electron vite build && electron-builder --config electron-builder.config.js --dir",
"electron:build_pnever": "cross-env VITE_TARGET=electron vite build && electron-builder --config electron-builder.config.js --publish never",
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ export default defineConfig((options) => {
lintCommand: "eslint --ext .ts,.vue .",
},
typescript: true,
// FIXME: vue-tscの型エラーを解決したら有効化する
// vueTsc: true,
vueTsc: true,
}),
isElectron &&
electron({
Expand Down

0 comments on commit 3903a6f

Please sign in to comment.