Skip to content

Add Babel plugin for optional chaining

Simon Knox requested to merge psi-optional-chaining into master

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

Merge request reports