From dcbf9a7eb90c8ced60a3101b9837968ba639ba5d Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Mon, 30 Nov 2020 11:59:49 -0600 Subject: [PATCH] =?UTF-8?q?refactor(web):=20=E2=99=BB=20specify=20noFallth?= =?UTF-8?q?roughCasesInSwitch=20for=20create-react-app=20v4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/tsconfig.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/web/tsconfig.json b/web/tsconfig.json index af10394b4..e18c413eb 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, @@ -13,7 +17,10 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react" + "jsx": "react-jsx", + "noFallthroughCasesInSwitch": true }, - "include": ["src"] + "include": [ + "src" + ] }