Skip to content

Commit

Permalink
chore: add root tsconfig and extend in the packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hussedev committed Sep 24, 2024
1 parent d08c01f commit 9a01090
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 62 deletions.
19 changes: 3 additions & 16 deletions packages/builder/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"sourceMap": true,
"incremental": true,
"baseUrl": "src",
"baseUrl": "./",
"paths": {
"@/*": ["./*"]
"@/*": ["src/*"]
}
},
"include": ["src", "craco.config.js", ".eslintrc.js"]
Expand Down
20 changes: 3 additions & 17 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
{
"include": ["src/*"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"outDir": "dist",
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"declarationMap": true,
"sourceMap": true,
"declaration": true,
"incremental": true
"outDir": "dist"
},
"include": ["src/*"]
}
16 changes: 1 addition & 15 deletions packages/grant-explorer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"sourceMap": true,
"types": ["vitest/globals", "@testing-library/jest-dom"],
"incremental": true,
"baseUrl": "src",
"paths": {
"@/*": ["./*"]
Expand Down
15 changes: 1 addition & 14 deletions packages/round-manager/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["@testing-library/jest-dom", "jest", "node"],
"incremental": true,
"baseUrl": "src",
"paths": {
"@/*": ["./*"]
Expand Down
19 changes: 19 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"sourceMap": true,
"incremental": true
}
}

0 comments on commit 9a01090

Please sign in to comment.