All I've done is wrap koalaman's shellcheck in a
package.json.
Sometimes there is no other option than to add a shell script to your node package.
This wrapper allows you to "lint" JS and SH altogether.
Installing the package downloads the latest version of shellcheck from the
official servers.
npm install --dev shellcheckNow you can call shellcheck from your npm scripts in package.json.
{
"scripts": {
"lint-js": "eslint --cache --ignore-path .gitignore .",
"lint-sh": "shellcheck **/*.sh",
"lint": "lint-js && lint-sh"
}
}