Skip to content

Commit 067201e

Browse files
author
Jerry Bruwes
committed
modified: tsconfig.json
1 parent b6e20d3 commit 067201e

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

tsconfig.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
3+
// Enable latest features
4+
"lib": ["ESNext", "DOM"],
5+
"target": "ESNext",
6+
"module": "ESNext",
7+
"moduleDetection": "force",
8+
"jsx": "react-jsx",
9+
"allowJs": true,
10+
11+
// Bundler mode
12+
"moduleResolution": "bundler",
13+
"allowImportingTsExtensions": true,
14+
"verbatimModuleSyntax": true,
15+
"noEmit": true,
16+
17+
// Best practices
418
"strict": true,
5-
"module": "preserve"
19+
"skipLibCheck": true,
20+
"noFallthroughCasesInSwitch": true,
21+
22+
// Some stricter flags (disabled by default)
23+
"noUnusedLocals": false,
24+
"noUnusedParameters": false,
25+
"noPropertyAccessFromIndexSignature": false
626
}
727
}

0 commit comments

Comments
 (0)