Skip to content

Commit b4be956

Browse files
authored
🔧 Simplify tsconfig (#1496)
1 parent 4e2661b commit b4be956

File tree

6 files changed

+18
-21
lines changed

6 files changed

+18
-21
lines changed

.vscode/settings.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
"jestrunner.codeLensSelector": "",
99
"vitest.filesWatcherInclude": "**/*.test.ts",
1010
"editor.formatOnSave": true,
11-
"typescript.preferences.preferTypeOnlyAutoImports": true
11+
"typescript.preferences.preferTypeOnlyAutoImports": true,
12+
"typescript.tsserver.log": "verbose",
13+
"typescript.tsserver.trace": "messages"
1214
}

packages/languages/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@rallly/tsconfig/base.json",
2+
"extends": "@rallly/tsconfig/react.json",
33
"include": ["**/*.ts"],
44
"exclude": ["node_modules"]
55
}

packages/tsconfig/base.json

-16
This file was deleted.

packages/tsconfig/next.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"display": "Next.js",
4-
"extends": ["./base.json", "@tsconfig/next/tsconfig.json"]
4+
"extends": "@tsconfig/next/tsconfig.json",
5+
"compilerOptions": {
6+
"verbatimModuleSyntax": true
7+
}
58
}

packages/tsconfig/react.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"display": "Next.js",
4-
"extends": ["./base"],
54
"compilerOptions": {
5+
"module": "ESNext",
6+
"moduleResolution": "Bundler",
7+
"noPropertyAccessFromIndexSignature": false,
8+
"exactOptionalPropertyTypes": false,
9+
"noUncheckedIndexedAccess": false,
10+
"noImplicitReturns": false,
11+
"verbatimModuleSyntax": true,
12+
"skipLibCheck": true,
13+
"strictNullChecks": true,
614
"lib": ["dom", "dom.iterable", "esnext"],
715
"jsx": "react-jsx"
816
}

packages/utils/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"compilerOptions": {
33
"types": ["vitest/globals"]
44
},
5-
"extends": "@rallly/tsconfig/base.json",
5+
"extends": "@rallly/tsconfig/react.json",
66
"include": ["**/*.ts", "**/*.tsx"]
77
}

0 commit comments

Comments
 (0)