-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
32 lines (32 loc) · 1.49 KB
/
tsconfig.json
File metadata and controls
32 lines (32 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"compilerOptions": {
// コンパイルのオプション
"target": "es5", // どのバージョンのjsを吐き出すか
"lib": ["dom", "dom.iterable", "esnext"], // コンパイルする際に組み込むライブラリ
"allowJs": true, // .js、.jsxをコンパイル対象にする
"skipLibCheck": true,
"strict": true, //TypeScriptの恩恵を受けるためのstrictを設定
// -- noImplicitAny = true
// -- noImplicitThis = true
// -- alwaysStrict = true
// -- strictBindCallApply = true
// -- strictNullChecks = true
// -- strictFunctionTypes = true
// -- strictPropertyInitialization = true
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": false, // 型定義ファイルをファイルごとに作成
"declarationMap": false, // 型定義のmapファイルをファイルごとに作成
"sourceMap": false, // jsファイルのmapファイルを作成
"jsx": "preserve", // tsファイルをjsxやjsにコンパイルする際の出力の形式を指定
"noFallthroughCasesInSwitch": true, // switch文の脱出処理がないものにエラー
"removeComments": false // コンパイル結果の出力ファイルからコメントを削除
},
"exclude": ["node_modules", ".next", "out"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"]
}