From e51801d0d3e1b270ebeb19c54a99c6d4240cc24c Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:31:56 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20tsconfig:=20Disable=20strictNull?= =?UTF-8?q?Checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The conversion done in the previous commit came with hundreds of violations of this rule. While some could be addressed by better types, I think the types as-is are acceptable and we can live without these checks. 🚧 this is being re-evaluated: https://github.com/nextstrain/auspice/pull/1864#discussion_r1827092487 --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 71ded34a2..c6275dc6e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -32,6 +32,7 @@ Visit https://aka.ms/tsconfig.json for a detailed list of options. /* Type Checking */ "strict": true, /* Enable all strict type-checking options. */ + "strictNullChecks": false, /* Allow unhandled false/null/undefined values to make incremental TypeScript adoption easier. */ "noImplicitAny": false, /* Allow implicit any to make incremental TypeScript adoption easier. */ "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */ "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */