--noUncheckedIndexedAccess (#39560)

* Initial implementation + tests

* linty

* Support destructuring declarations and assignments

* lint

* Fix destructuring assignment and element access into known properties

* Update baselines

* Rename flag to unUncheckedIndexedAccess

* Add test for unique symbol indexing

* Fix flag order in baselines

Co-authored-by: Andrew Branch <andrew@wheream.io>
This commit is contained in:
Ryan Cavanaugh
2020-09-11 14:43:10 -07:00
committed by GitHub
parent 9c8d11b5ed
commit 3d235b42a0
32 changed files with 1686 additions and 24 deletions

View File

@@ -624,6 +624,14 @@ namespace ts {
category: Diagnostics.Additional_Checks,
description: Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement
},
{
name: "noUncheckedIndexedAccess",
type: "boolean",
affectsSemanticDiagnostics: true,
showInSimplifiedHelpView: false,
category: Diagnostics.Additional_Checks,
description: Diagnostics.Include_undefined_in_index_signature_results
},
// Module Resolution
{