Sonarlint provides pre-commit feedback to developers on new bugs and quality issues injected into code, with several languages supported and simple usage.
npm install --save-dev sonarlint
sonarlint to your test suite like this, or see my package.json for an example of how I do it:
"test": "sonarlint --src 'src/**' --tests 'test/**'"
[ Sonarlint for Command Line is licensed under the GNU Lesser Public License v3.0 ]