Skip to content

Project boilerplate with ESLint, Prettier, Husky and Lint staged package ✔✔✔

Notifications You must be signed in to change notification settings

mohokh67/project-linter-boilerplate

Repository files navigation

Notes

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

VSCode

Follow these steps in vscode:

  1. Install following packages:
code --install-extension dbaeumer.vscode-eslint

code --install-extension esbenp.prettier-vscode
  1. Add following settings
"editor.formatOnSave": true,
  "[javascript]": {
    "editor.formatOnSave": false
  },
  "eslint.autoFixOnSave": true,
  "eslint.alwaysShowStatus": true,
  "prettier.disableLanguages": ["js"]

Useful links