diff --git a/apps/pathway-design/server/tsconfig.app.json b/apps/pathway-design/server/tsconfig.app.json index 828517b4..e1d3a87b 100644 --- a/apps/pathway-design/server/tsconfig.app.json +++ b/apps/pathway-design/server/tsconfig.app.json @@ -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"] } diff --git a/libs/common/configs/server/env/tsconfig.json b/libs/common/configs/server/env/tsconfig.json index 679400da..2f5d83dd 100644 --- a/libs/common/configs/server/env/tsconfig.json +++ b/libs/common/configs/server/env/tsconfig.json @@ -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": [ diff --git a/libs/common/configs/server/swagger/tsconfig.json b/libs/common/configs/server/swagger/tsconfig.json index 679400da..2f5d83dd 100644 --- a/libs/common/configs/server/swagger/tsconfig.json +++ b/libs/common/configs/server/swagger/tsconfig.json @@ -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": [ diff --git a/libs/common/contracts/events/pathway/tsconfig.json b/libs/common/contracts/events/pathway/tsconfig.json index 679400da..2f5d83dd 100644 --- a/libs/common/contracts/events/pathway/tsconfig.json +++ b/libs/common/contracts/events/pathway/tsconfig.json @@ -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": [ diff --git a/libs/common/events/tsconfig.json b/libs/common/events/tsconfig.json index cfb13557..b66ccf16 100644 --- a/libs/common/events/tsconfig.json +++ b/libs/common/events/tsconfig.json @@ -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": [ diff --git a/libs/common/tools/server/http-exceptions/tsconfig.json b/libs/common/tools/server/http-exceptions/tsconfig.json index 679400da..2f5d83dd 100644 --- a/libs/common/tools/server/http-exceptions/tsconfig.json +++ b/libs/common/tools/server/http-exceptions/tsconfig.json @@ -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": [ diff --git a/libs/pathway-design/common/business/pathway/rules/tsconfig.json b/libs/pathway-design/common/business/pathway/rules/tsconfig.json index 27fb839a..4085d7dd 100644 --- a/libs/pathway-design/common/business/pathway/rules/tsconfig.json +++ b/libs/pathway-design/common/business/pathway/rules/tsconfig.json @@ -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": [ diff --git a/libs/pathway-design/server/pathway/application/tsconfig.json b/libs/pathway-design/server/pathway/application/tsconfig.json index 679400da..2f5d83dd 100644 --- a/libs/pathway-design/server/pathway/application/tsconfig.json +++ b/libs/pathway-design/server/pathway/application/tsconfig.json @@ -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": [ diff --git a/libs/pathway-design/server/pathway/business/src/lib/value-objects/research-field.value-object.ts b/libs/pathway-design/server/pathway/business/src/lib/value-objects/research-field.value-object.ts index 56d6855c..92dc13ce 100644 --- a/libs/pathway-design/server/pathway/business/src/lib/value-objects/research-field.value-object.ts +++ b/libs/pathway-design/server/pathway/business/src/lib/value-objects/research-field.value-object.ts @@ -18,8 +18,4 @@ export class ResearchFieldValueObjects { toString() { return this.researchField; } - - private isEmpty(researchField: string | undefined) { - return researchField === undefined || researchField.length === 0; - } } diff --git a/libs/pathway-design/server/pathway/business/tsconfig.json b/libs/pathway-design/server/pathway/business/tsconfig.json index 679400da..2f5d83dd 100644 --- a/libs/pathway-design/server/pathway/business/tsconfig.json +++ b/libs/pathway-design/server/pathway/business/tsconfig.json @@ -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": [ diff --git a/libs/pathway-design/server/pathway/infrastructure/tsconfig.json b/libs/pathway-design/server/pathway/infrastructure/tsconfig.json index 679400da..2f5d83dd 100644 --- a/libs/pathway-design/server/pathway/infrastructure/tsconfig.json +++ b/libs/pathway-design/server/pathway/infrastructure/tsconfig.json @@ -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": [ diff --git a/libs/pathway-design/server/pathway/interface-adapters/tsconfig.json b/libs/pathway-design/server/pathway/interface-adapters/tsconfig.json index 05ae6b5b..99c949f3 100644 --- a/libs/pathway-design/server/pathway/interface-adapters/tsconfig.json +++ b/libs/pathway-design/server/pathway/interface-adapters/tsconfig.json @@ -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": [ diff --git a/libs/pathway-design/server/pathway/presenters/tsconfig.json b/libs/pathway-design/server/pathway/presenters/tsconfig.json index 679400da..2f5d83dd 100644 --- a/libs/pathway-design/server/pathway/presenters/tsconfig.json +++ b/libs/pathway-design/server/pathway/presenters/tsconfig.json @@ -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": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index edc6bb14..f7e9dc85 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -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"],