Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tidy-gifts-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@virtual-live-lab/tsconfig": patch
---

Disable allowJs and checkJs by default
2 changes: 0 additions & 2 deletions packages/tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"module": "Node16",
"moduleResolution": "Node16",
"resolveJsonModule": true,
// js support
"checkJs": true,
// interop
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
Expand Down
8 changes: 6 additions & 2 deletions packages/tsconfig/docs/base/compiler-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,15 @@ JavaScriptファイルをTypeScriptファイルへimportすることを許可す

### [Check Js](https://www.typescriptlang.org/ja/tsconfig/#checkJs)

設定値: `true`
設定値: `false (default)`

JavaScriptファイルにおいてもTypeScriptと同等の型チェックをするかどうか設定する。

基本的には`true`にしておく。
~~基本的には`true`にしておく。~~

\#105のように、`tsc`がJavaScriptファイルもトランスパイルしようとしてOverwriteエラーが発生してしまうので、`false`にしておく。

なお、JavaScriptでも型チェックが必要な場合は`// @ts-check`をファイルの先頭に書くことで有効にできる。

### [Max Node Module JS Depth](https://www.typescriptlang.org/ja/tsconfig/#maxNodeModuleJsDepth)

Expand Down