From e84a0519565a2782e24c85cc1df943710d175724 Mon Sep 17 00:00:00 2001 From: Convly Date: Tue, 5 Apr 2022 16:32:47 +0200 Subject: [PATCH] Update tsconfig base files in @strapi/typescript-utils --- .../utils/typescript/lib/configs/admin.json | 20 +++++++++++++++++++ .../utils/typescript/lib/configs/server.json | 18 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 packages/utils/typescript/lib/configs/admin.json create mode 100644 packages/utils/typescript/lib/configs/server.json diff --git a/packages/utils/typescript/lib/configs/admin.json b/packages/utils/typescript/lib/configs/admin.json new file mode 100644 index 0000000000..3f6dbe65eb --- /dev/null +++ b/packages/utils/typescript/lib/configs/admin.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + + "compilerOptions": { + "module": "ES2020", + "moduleResolution": "node", + "lib": ["ES2020", "DOM"], + "target": "ES5", + + "jsx": "react", + "sourceMap": true, + "incremental": true, + + "allowJs": true, + "allowSyntheticDefaultImports": true, + "resolveJsonModule": true, + "noEmit": true, + "skipLibCheck": true + } +} \ No newline at end of file diff --git a/packages/utils/typescript/lib/configs/server.json b/packages/utils/typescript/lib/configs/server.json new file mode 100644 index 0000000000..fb60fa1f1c --- /dev/null +++ b/packages/utils/typescript/lib/configs/server.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + + "compilerOptions": { + "module": "CommonJS", + "moduleResolution": "Node", + "lib": ["ES2020"], + "target": "ES2019", + + "strict": false, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + + "esModuleInterop": true, + "resolveJsonModule": true, + "noEmitOnError": true + } +} \ No newline at end of file