From 7ba318a6d9b6eebcfd587bbab427241b8dc91fa5 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 27 Jan 2024 12:50:09 +0200 Subject: [PATCH] chore: centralize common TS config options --- backend/tsconfig.json | 19 ++----------------- dashboard/tsconfig.json | 9 +-------- shared/tsconfig.json | 9 +-------- tsconfig.json | 19 +++++++++++++++++++ 4 files changed, 23 insertions(+), 33 deletions(-) create mode 100644 tsconfig.json diff --git a/backend/tsconfig.json b/backend/tsconfig.json index bec249ad..2000565b 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -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"] } diff --git a/dashboard/tsconfig.json b/dashboard/tsconfig.json index 1bd1fd32..34507dfc 100644 --- a/dashboard/tsconfig.json +++ b/dashboard/tsconfig.json @@ -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/*"] diff --git a/shared/tsconfig.json b/shared/tsconfig.json index c5c16316..cea9087a 100644 --- a/shared/tsconfig.json +++ b/shared/tsconfig.json @@ -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"] diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..3701310e --- /dev/null +++ b/tsconfig.json @@ -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 + } +}