Describe the bug

Pre-commit hook fails when I try to commit using GitHub Desktop.
Following is an excerpt of my package.json file
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "npm run lint"
}
This works when trying to commit using the command line and when tried using VSCode's Git integration, but fails on GitHub Desktop.
lint-stage is installed locally and I prefer to keep it that way.
Version & OS
Version 2.6.3
Windows 10 Home