DEV Community

Add00
Add00

Posted on

Formatting and Linting

Greetings,

For this assignment we had to add a formatter and linter to our projects. I opted to go with ESLint and Prettier and as they work well in the JS/Node ecosystem. Both tools are widely used, well-documented, and have strong community support.

After installing, I ran ESLint and Prettier commands. ESLint highlighted a few code issues, such as unused variables. Then Prettier flagged areas where formatting was inconsistent and fixed it. Some ESLint errors were fixed automatically, while others required manual refactoring, which helped improve the overall structure of the code.

Setting up ESLint and Prettier helped me a lot about the importance of static analysis. Using these tools help to standardized the code between developers and also reduced errors. I feel this would likely reducing the need for stylistic changes in pull requests.

Top comments (0)