Add Babel plugin for optional chaining
What does this MR do?
add support for ?.
before: gon && gon.current_user && gon.current_user.name
now: gon?.current_user?.name
downsides
- might break people's editor syntax highlighting
Does this MR meet the acceptance criteria?
Conformity
Edited by Simon Knox