Intellij: Before commit: run git hooks
Back then i couldn't find it, but later on i did, so just wanted to share it with you guys.
The following package will do it for you pre-commit
Its amazingly simple, just install it:
npm install pre-commit --save-dev
and add this to your package.json
{
"pre-commit": ["test", "build"],
}
and you're golden
Quote from IJ forums:
The option appears there when git hooks that can be skipped - pre-commit and commit-msg - are added to the repo.
So you need to create hooks in .git/hooks to make it appear.