From 7670ee01133942680835ab1ee22dce0a35f9728f Mon Sep 17 00:00:00 2001 From: Hasan Mothaffar Date: Wed, 13 Jul 2022 09:18:57 +0300 Subject: [PATCH] FE: Configure typescript to warn on undefined index access https://github.com/microsoft/TypeScript/issues/13778 --- packages/client/tsconfig.json | 39 ++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.json index c48a54f..1a0edc9 100644 --- a/packages/client/tsconfig.json +++ b/packages/client/tsconfig.json @@ -1,21 +1,22 @@ { - "compilerOptions": { - "baseUrl": "./", - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noFallthroughCasesInSwitch": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": false, - "jsx": "react-jsx" - }, - "include": ["src"] + "compilerOptions": { + "baseUrl": "./", + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noFallthroughCasesInSwitch": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": false, + "jsx": "react-jsx", + "noUncheckedIndexedAccess": true + }, + "include": ["src"] }