-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
30 lines (27 loc) · 785 Bytes
/
tsconfig.json
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
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"jsx": "react-jsx",
// enable latest features
"lib": ["ESNext"],
"moduleDetection": "force",
"module": "ESNext", // allow importing `.js` from `.ts`
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true, // support JSX
"allowJs": true,
// Best practices
"strict": true,
"noFallthroughCasesInSwitch": true,
"noPropertyAccessFromIndexSignature": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
// Some stricter flags
"useUnknownInCatchVariables": true,
"noEmit": true,
"verbatimModuleSyntax": true,
"skipLibCheck": true
}
}