DEV Community

Discussion on: Bad Habits of Mid-Level React Developers

Collapse
 
pelv profile image
Alex Benfaremo • Edited

Talking about "// @ts-check" i don't know if you use the comment for some means but actually there is an options in the settings that enabled it by default for all javascript file.

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

Adding the TS pragma makes it work on any team member VSCode without having to check that they have it enabled in their IDE, so it's a convenience while working in a team.

Thread Thread
 
pelv profile image
Alex Benfaremo

make sense :)