Skip to content

Commit

Permalink
refactor: tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
collettemathieu committed Dec 17, 2024
1 parent 82bbaa6 commit b2e1f36
Show file tree
Hide file tree
Showing 14 changed files with 141 additions and 69 deletions.
21 changes: 13 additions & 8 deletions apps/pathway-design/server/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"module": "ES2022",
"types": ["node"],
"disableReferencedProjectLoad": true,
"emitDecoratorMetadata": true,
"target": "es2022",
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
"module": "ES2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitThis": true,
"outDir": "../../../dist/out-tsc",
"strict": true,
"strictBindCallApply": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true
"strictNullChecks": true,
"strictPropertyInitialization": true,
"target": "es2022",
"types": ["node"]
},
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts", "src/**/*.step.ts"],
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"]
}
16 changes: 11 additions & 5 deletions libs/common/configs/server/env/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
16 changes: 11 additions & 5 deletions libs/common/configs/server/swagger/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
16 changes: 11 additions & 5 deletions libs/common/contracts/events/pathway/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
16 changes: 11 additions & 5 deletions libs/common/events/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
16 changes: 11 additions & 5 deletions libs/common/tools/server/http-exceptions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
16 changes: 11 additions & 5 deletions libs/pathway-design/common/business/pathway/rules/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
16 changes: 11 additions & 5 deletions libs/pathway-design/server/pathway/application/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,4 @@ export class ResearchFieldValueObjects {
toString() {
return this.researchField;
}

private isEmpty(researchField: string | undefined) {
return researchField === undefined || researchField.length === 0;
}
}
16 changes: 11 additions & 5 deletions libs/pathway-design/server/pathway/business/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
16 changes: 11 additions & 5 deletions libs/pathway-design/server/pathway/infrastructure/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../tsconfig.base.json",
"files": [],
"include": ["src/**/*.ts"],
"references": [
Expand Down
16 changes: 11 additions & 5 deletions libs/pathway-design/server/pathway/presenters/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"disableReferencedProjectLoad": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"incremental": true,
"module": "es2022",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true
},
"extends": "../../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
Expand Down
9 changes: 7 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"lib": ["es2020", "dom"],
"module": "ES2022",
"inlineSources": true,
"lib": ["es2022", "dom"],
"module": "esnext",
"moduleResolution": "node",
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noEmitOnError": true,
"paths": {
"@bewoak/common-configs-server-env": ["libs/common/configs/server/env/src/index.ts"],
"@bewoak/common-configs-server-swagger": ["libs/common/configs/server/swagger/src/index.ts"],
Expand Down

0 comments on commit b2e1f36

Please sign in to comment.