Tidelift

Lyn Muldrow
Lyn Muldrow

Posted on

What's something new you learned this week?

Learn something new this week about a project, at work, or in your day-to-day? Talk about it here!

learn something new

Discussion (1)

Collapse
tiegz profile image
Tieg Zaharia

This week I learned (or re-learned? 🤔) the semi-colon rule in the Prettier formatter! prettier.io/docs/en/rationale.html...

It inserts a semi-colon at the beginning of the line when you start a line with [] to prevent cases where JS can't tell if you're doing aFunction()[...] or just aFunction()[...]. 😆