Skip to content

Commit

Permalink
chore: centralize common TS config options
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragory committed Jan 27, 2024
1 parent b83f388 commit 7ba318a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 33 deletions.
19 changes: 2 additions & 17 deletions backend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"moduleResolution": "NodeNext",
"module": "NodeNext",
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"target": "esnext",
"lib": ["es2023"],
"baseUrl": ".",
"resolveJsonModule": true,
"esModuleInterop": true,
"outDir": "./dist",
"paths": {
"@shared/*": ["../shared/src/*"]
},
"sourceMap": true,
"alwaysStrict": true,
"noImplicitThis": true,
"skipLibCheck": true,
"strict": true,
"strictPropertyInitialization": false,
"useUnknownInCatchVariables": false,
"allowJs": true
}
},
"include": ["src/**/*.ts"]
}
9 changes: 1 addition & 8 deletions dashboard/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"moduleResolution": "node",
"module": "esnext",
"target": "es2018",
"sourceMap": true,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strict": false,
"lib": ["esnext", "dom"],
"baseUrl": ".",
"resolveJsonModule": true,
"esModuleInterop": true,
"allowJs": true,
"paths": {
"@shared/*": ["../shared/src/*"]
Expand Down
9 changes: 1 addition & 8 deletions shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"moduleResolution": "NodeNext",
"module": "NodeNext",
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"target": "es2022",
"lib": ["es2022"],
"baseUrl": "src",
"resolveJsonModule": true,
"esModuleInterop": true,
"outDir": "./dist"
},
"include": ["src/**/*.ts"]
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": {
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"target": "esnext",
"lib": ["es2023"],
"resolveJsonModule": true,
"esModuleInterop": true,
"sourceMap": true,
"alwaysStrict": true,
"noImplicitThis": true,
"skipLibCheck": true,
"strict": true,
"strictPropertyInitialization": false,
"useUnknownInCatchVariables": false
}
}

0 comments on commit 7ba318a

Please sign in to comment.