Setup of ESLint, Prettier and Husky
Setup of the ESLint, Prettier and Husky for better code formatting.
Environment configuration
All the installation and setup of the proposed tools are described below.
Why are we using it?
Husky is being used as a pre-commit hook tool. Currently, whenever the developer commits, Husky will run the commands:
$ npx prettier --check . --write
$ npx eslint
If there are no warnings from ESLint, your terminal will output the message below. Else, it will output the sections with the wrong formatting.