Skip to content

Commit 86d6447

Browse files
chore: Stricter tsconfig options (#5264)
* Re-order tsconfig options * Add more options * Even more options * Remove unnecessary options * Move jsx config out of root * Remove unnecessary scripts/tsconfig.json
1 parent 57336fc commit 86d6447

File tree

5 files changed

+22
-21
lines changed

5 files changed

+22
-21
lines changed

packages/react-table-devtools/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4+
"jsx": "react",
45
"rootDir": "./src",
56
"outDir": "./build/lib"
67
},

packages/react-table/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4+
"jsx": "react",
45
"rootDir": "./src",
56
"outDir": "./build/lib"
67
},

packages/solid-table/tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4+
"jsx": "preserve",
5+
"jsxImportSource": "solid-js",
46
"rootDir": "./src",
57
"outDir": "./build/lib"
68
},

scripts/tsconfig.json

-9
This file was deleted.

tsconfig.json

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
23
"compilerOptions": {
3-
"lib": ["DOM", "DOM.Iterable", "ES2020"],
4-
"target": "ES2020",
5-
"module": "ES2020",
6-
"moduleResolution": "Bundler",
4+
"allowJs": true,
75
"allowSyntheticDefaultImports": true,
8-
"strict": true,
9-
"noUncheckedIndexedAccess": true,
10-
"strictNullChecks": true,
11-
"jsx": "react",
6+
"allowUnreachableCode": false,
7+
"allowUnusedLabels": false,
8+
"checkJs": true,
129
"declaration": true,
1310
"esModuleInterop": true,
11+
"forceConsistentCasingInFileNames": true,
12+
"isolatedModules": true,
13+
"lib": ["DOM", "DOM.Iterable", "ES2022"],
14+
"module": "ES2022",
15+
"moduleResolution": "Bundler",
16+
"noImplicitReturns": false, // TODO enable
17+
"noUncheckedIndexedAccess": true,
18+
"noUnusedLocals": false, // TODO enable
19+
"noUnusedParameters": false, // TODO enable
20+
"resolveJsonModule": true,
1421
"skipLibCheck": true,
15-
"baseUrl": ".",
16-
"allowJs": true,
17-
"checkJs": true
22+
"strict": true,
23+
"target": "ES2020"
1824
},
19-
"include": ["prettier.config.cjs"]
25+
"include": ["prettier.config.cjs", "scripts"]
2026
}

0 commit comments

Comments
 (0)