AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Javascript formatter1/17/2024 ![]() If you’d like to learn more about how to enforce Prettier via git commit hooks, checkout my blog post on Husky and Lint Staged with Prettier that even works with nested folders. I end up with consistent formatting across my entire project instead of just doing whatever I felt was best at the time. I don’t ever wonder “oh should I put this on multiple lines or keep it all in one line?” Instead, I focus on solving my problem, hit Save and let Prettier do the rest. I find when using Prettier, along with the Format On Save option in VS Code, I don’t think about how to format my code anymore. Formatting is something I never worry about anymore The rest of the Prettier configuration options can be found here. That way anytime you or someone else works on that codebase, everyone is using the same settings. prettierrc file, especially when you’re on a team. Note: you can configure these settings directly in VS Code as well without a config file, but I think it’s better to use a.
0 Comments
Read More
Leave a Reply. |