A shim to run shellcheck on staged shell files via lint-staged, supporting shebang detection and filename patterns. Version 0.1.2 (latest). Stable but low activity. Key differentiator: works around lint-staged's lack of shebang-based file matching, allowing shell scripts without .sh extension to be checked. Ignores via .shellcheckignore. Requires shellcheck binary and lint-staged as peer.
npm install lint-staged-shellcheckNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure lint-staged to run lint-staged-shellcheck on all files, which filters shell scripts by shebang or .sh/.bash/.zsh extension.
Install shellcheck: brew install shellcheck (macOS) or apt install shellcheck (Linux).
Ensure lint-staged is configured as the runner.
Upgrade Node.js to >= 10.
Install shellcheck: brew install shellcheck (macOS) or apt install shellcheck (Linux).
Ensure lint-staged config has a '*' rule that includes 'lint-staged-shellcheck'.