noUncheckedIndexedAccess
w/ destructuring
#56154
Labels
Duplicate
An existing issue was already created
π Search Terms
noUncheckedIndexedAccess, destructuring
β Viability Checklist
β Suggestion
The
!
qualifier should be allowed in destructuring patterns:π Motivating Example
This feature makes migrating a large codebase to
noUncheckedIndexedAccess
easier, as we no longer need to migrate all existing destructuring patterns in one go.π» Use Cases
We're working to enable
noUncheckedIndexedAccess
on a very large codebase (10k+ files). I wrote a codemod adding the!
qualifier to existing unchecked accesses, but while it's easy to do this onfoo[expr]
andfoo.prop
nodes, I didn't find a good solution for destructured accesses:The following doesn't parse, where it seems it should:
The text was updated successfully, but these errors were encountered: