Except bugs, errors and/or strange behavior
Zero-{dependency,config,install,file} single-file lint-staged
posix shell
script
List of contents:
This project can be used as you wish, local, remote, on CI and/or at VPS. Everywhere it works on same logic as you provide same credentials
See Getting Started page if you didn’t read
Below guide same as Installation
curl -fsSLO https://raw.githubusercontent.com/dalisoft/lint-staged-sh/master/lint-staged.sh
chmod +x ./lint-staged.sh
mv ./lint-staged.sh .husky/pre-commit
mkdir -p .lefthook
mv ./lint-staged.sh .lefthook/pre-commit/lint-staged.sh
then add .lefthook
folder to your git
and add this to your lefthook
configuration
pre-commit:
scripts:
"lint-staged.sh":
runner: sh