Skip to content

Commit abd7adb

Browse files
committed
chore: update ts config to be stricter
1 parent 300c2be commit abd7adb

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

tsconfig.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
23
"compilerOptions": {
3-
// Enable latest features
4-
"lib": ["ESNext", "DOM"],
5-
"target": "ESNext",
4+
"allowImportingTsExtensions": true,
5+
"allowJs": true,
6+
"forceConsistentCasingInFileNames": true,
7+
"jsx": "react-jsx",
8+
"lib": [
9+
"ESNext",
10+
"DOM"
11+
],
612
"module": "ESNext",
713
"moduleDetection": "force",
8-
"jsx": "react-jsx",
9-
"allowJs": true,
10-
11-
// Bundler mode
1214
"moduleResolution": "bundler",
13-
"allowImportingTsExtensions": true,
14-
"verbatimModuleSyntax": true,
1515
"noEmit": true,
16-
17-
// Best practices
18-
"strict": true,
19-
"skipLibCheck": true,
20-
"noFallthroughCasesInSwitch": true,
21-
22-
// Some stricter flags (disabled by default)
23-
"noUnusedLocals": false,
24-
"noUnusedParameters": false,
16+
"noImplicitAny": true,
17+
"noImplicitReturns": true,
2518
"noPropertyAccessFromIndexSignature": false,
26-
"exactOptionalPropertyTypes": true
27-
}
19+
"outDir": "./dist",
20+
"skipLibCheck": true,
21+
"strict": true,
22+
"target": "ESNext",
23+
"verbatimModuleSyntax": true
24+
},
25+
"extends": "@tsconfig/strictest/tsconfig.json",
26+
"include": [
27+
"src"
28+
]
2829
}

0 commit comments

Comments
 (0)