Benfits:
- Won't trigger ASI (array expression or object/function/class expression may need parens some time, will need insert leading semicolon )
- Won't turn into a statement (object can parsed as a
BlockStatement)
- Won't add parens around (object need parens when it's member expression head)
- suitable for other needs
prettier/prettier#18350 (comment)
If you want, I can help.
Benfits:
BlockStatement)prettier/prettier#18350 (comment)
If you want, I can help.