NullVoxPopuli / optional-chaining-codemod

there should be more codemods for mundane stuff like this
16 stars 0 forks source link

Make the codemod more robust by recursively generating optional chains #2

Open NullVoxPopuli opened 5 years ago

NullVoxPopuli commented 5 years ago

before this PR, the codemod only handles single LogicalExpressions (a && a.b).

The aim of this PR is to handle n-length LogicalExpressions (a && a.b && a.b.c && a.b.c.etc)