How to Setup Eslint, Prettier, and Babel for your React Project #Dev

medium.com
2 months ago
How to Setup Eslint, Prettier, and Babel for your React Project

Building high-quality apps these days is hard. That’s why nowadays, there are many tools that allow us to write quality code and make sure our apps don’t break. You may think of testing tools like Jest at first, but before even writing a test, you can prevent many head-scratching situations. In this article, we will overview the process, how I set up these tools for a React project. First of all, you need to install Prettier. For using this tool you need to install Prettier: npm install -D prettier Now you have Prettier installed and from now with a little config, your code will be always consistent. I’m sure many of you were work on projects where some files have tabs, some spaces, or have a trailing comma and others don’t… Prettier is a project which takes all the conversation out of context and it standardizes to a predefined style….

Leave a Reply