# The first Rule Engine customer (#2824 / burin-labs/burin-code#1629):
# find every `src?.key ?? default` shape so the codemod can fold it into a
# destructuring bind. `fix` makes this a codemod; `transform` + interpolation
# of the bound metavars into the replacement land in #2834.
= "destructure-with-defaults"
= "typescript"
= "warning"
= "Collapse `?.x ?? default` into a destructuring bind with a default"
= "{ $KEY: $SRC }"
[]
= "$SRC?.$KEY ?? $DEFAULT"