feat(cli): enable useUnknownInCatchVariables by default (#12547)

Closes #11826

**BREAKING CHANGE** this behaviour was disable when introduced in Deno 1.14/TypeScript 4.4. It will highlight code that unsafely handles variables that are caught, and will cause type errors in unsafe code.
This commit is contained in:
Kitson Kelly 2021-10-28 08:43:40 +11:00 committed by GitHub
parent be68b82eb4
commit a065604155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 56 additions and 17 deletions

View file

@ -629,8 +629,6 @@ impl Inner {
"strict": true,
"target": "esnext",
"useDefineForClassFields": true,
// TODO(@kitsonk) remove for Deno 1.15
"useUnknownInCatchVariables": false,
}));
let config = &self.config;
let workspace_settings = config.get_workspace_settings();