npm install --dev
npm run lint
Note: this will only lint staged files, so don't forget to add with git add