Skip to content

Commit

Permalink
🔧 Simplify tsconfig (#1496)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella authored Jan 15, 2025
1 parent 4e2661b commit b4be956
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 21 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
"jestrunner.codeLensSelector": "",
"vitest.filesWatcherInclude": "**/*.test.ts",
"editor.formatOnSave": true,
"typescript.preferences.preferTypeOnlyAutoImports": true
"typescript.preferences.preferTypeOnlyAutoImports": true,
"typescript.tsserver.log": "verbose",
"typescript.tsserver.trace": "messages"
}
2 changes: 1 addition & 1 deletion packages/languages/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@rallly/tsconfig/base.json",
"extends": "@rallly/tsconfig/react.json",
"include": ["**/*.ts"],
"exclude": ["node_modules"]
}
16 changes: 0 additions & 16 deletions packages/tsconfig/base.json

This file was deleted.

5 changes: 4 additions & 1 deletion packages/tsconfig/next.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Next.js",
"extends": ["./base.json", "@tsconfig/next/tsconfig.json"]
"extends": "@tsconfig/next/tsconfig.json",
"compilerOptions": {
"verbatimModuleSyntax": true
}
}
10 changes: 9 additions & 1 deletion packages/tsconfig/react.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Next.js",
"extends": ["./base"],
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"noPropertyAccessFromIndexSignature": false,
"exactOptionalPropertyTypes": false,
"noUncheckedIndexedAccess": false,
"noImplicitReturns": false,
"verbatimModuleSyntax": true,
"skipLibCheck": true,
"strictNullChecks": true,
"lib": ["dom", "dom.iterable", "esnext"],
"jsx": "react-jsx"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"compilerOptions": {
"types": ["vitest/globals"]
},
"extends": "@rallly/tsconfig/base.json",
"extends": "@rallly/tsconfig/react.json",
"include": ["**/*.ts", "**/*.tsx"]
}

0 comments on commit b4be956

Please sign in to comment.