lint-staged-sh

lint-staged-sh [0.x]

Except bugs, errors and/or strange behavior

Zero-{dependency,config,install,file} single-file lint-staged posix shell script

List of contents:

Usage

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

Requirements

See Getting Started page if you didn’t read

Below guide same as Installation

First-time installation

curl -fsSLO https://raw.githubusercontent.com/dalisoft/lint-staged-sh/master/lint-staged.sh
chmod +x ./lint-staged.sh

Husky integration

mv ./lint-staged.sh .husky/pre-commit

Lefthook

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