Link to video 1: https://youtu.be/Iu9iK565uQY Eslint and Prettier with VSCode
Link to video 2: https://youtu.be/-qHA6zbOdLc Git hooks with Husky
The husky
package will pick git hooks. That's why this order is important.
# step 1: Initial your git repository
git init
# step 2: Install all npm packages
npm install
Follow these steps in vscode:
- Install following packages:
code --install-extension dbaeumer.vscode-eslint
code --install-extension esbenp.prettier-vscode
- Add following settings
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"prettier.disableLanguages": ["js"]