Posts

Showing posts with the label front end

Itch in a Developer's eyes

   I am a big fan of Prettier . As a developer, I think it makes my life easier. I can switch off a part of my brain which worries about formatting while writing code. I have integrated it with my editor. The moment I press ' save ', it formats my code. A beautiful code structure appears in front of my eyes. No worries. The first thing I do, when I set up any JS projects, is set up prettier in my workspace. Just make a '. prettierrc ' file and my editor has a plugin to detect it and my work is done. It automatically starts formatting and beautifying my code.     When I joined my current company, I had convinced my coworkers to move to prettier. They had an ESlint set up which was doing the code formatting during committing with the help of a pre-commit hook . I did not like this for two main reasons. (1) I do not like the ESlint plugin showing me spacing errors in the editor. As a result, my workspace turns red. That's why I had to disable the lint plugin in my wor