
Let’s face it: JavaScript and TypeScript developers love to argue about tools.
Tabs or spaces? Semicolons or not? And now, the age-old (in JavaSc...
For further actions, you may consider blocking this person and/or reporting abuse
There is also Biome if you want both in one tool
Will check it out
Good article.
I think the best option is to implement automatic run of prettier and eslint with Husky.
By doing this, with each commit, you ensure that you have formatted and error-less code pushed to the remote codebase.
Thankyou :)
Yes, Husky is just great, forgot to mention it in the article, I've also got a few pre-commit hooks set.
Thanks for sharing!
:)
Mod: Nice useful article - I think you make a great point about picking what is right for you. I think too many times in development teams try and fit their project to a mould or what is “the right” way to do something but this doesn’t always mean the “best” way for your team.
Thank you :)
Great article! 🎉 ESLint and Prettier are invaluable tools for maintaining a clean, consistent, professional codebase. They help catch errors early and ensure that your team follows the same coding style, which is a big win for collaboration.
For anyone who wants to take their setup to the next level, I’ve created a couple of tutorials that you might find useful:
1️⃣ ESLint, Prettier, and VSCode Setup for JavaScript Code Linting & Formatting – This video walks you through setting up ESLint and Prettier with VSCode, helping you streamline your JavaScript code linting and formatting workflow.
2️⃣ Git Hooks + Husky + Lint-Staged = Automate code linting & formatting – Here, I show how to set up Git Hooks with Husky and Lint-Staged to automate linting and formatting every time you commit your code.
These tools, when combined, can supercharge your development process and make your codebase more robust and easier to maintain. I’d love to hear your thoughts or any additional tips you might have! 🚀
Thanks for the share :)
This is very nice artice👌
I can code without prettier but I don't feel safe when I am coding without ESLint. I use both but if i have to choose one, i will go with ESLint.
Thank you :)
These days I often grab Biome instead of these two separate tools that I have to configure differently.
Great.
Thanks
Nice read! I like how you broke down the topic—it’s helpful for anyone deciding how to set up their codebase. Thanks for sharing!
Thanks a lot :)