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

Top comments (1)

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()[...]. 😆