From ac1e2b3c799b7d074b1875461ca64632c8149257 Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Sun, 1 May 2022 14:16:12 +0200 Subject: [PATCH] add: tsconfig.json This configures TS to look at JS files as well, so that IDEs like VSCode can provide better edit-time checks --- tsconfig.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tsconfig.json diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..e6524ca --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2021", "DOM"], + "allowSyntheticDefaultImports": true, + "experimentalDecorators": true, + "resolveJsonModule": true, + "downlevelIteration": true, + "jsx": "preserve", + // Check JS files too + "allowJs": true, + "checkJs": true, + // Used for temp builds + "outDir": "build", + "moduleResolution": "Node", + "module": "ESNext" + }, + "exclude": ["node_modules", "build"] +}