MobileFrontend pre-commit hooks don't work on Windows. They run commands defined in package.json "scripts", which are executed using the default command line (probably Bash on your Linux system, and cmd.exe on Windows), using a lot of Bash-specific syntax features (including: ** globs, setting env variables in the same command, subcommands in {}, relying on shebangs to run other shell scripts).
If you want to have non-trivial commit hooks, please write their code as normal separate files, instead of sticking them in package.json. (You have one good example, dev-scripts/svg_check.sh.)
(It's okay to use .sh scripts and Unixy executables, all of that can be installed on Windows and probably is already installed by most users with Git, but you can't assume that everything goes through Bash if you don't call it explicitly.)
Workaround is to use git commit -n. This is sad because it forces me to switch from my editor (which I usually use to commit changes often as I work on things) to command line :(