$ git add ./image.png
$ git commit -m wip
> husky - npm run -s precommit
> husky - node v9.10.1
❯ Running tasks for *.{png,jpeg,jpg,gif,svg}
⠙ imagemin-lint-staged
❯ Running tasks for *.{png,jpeg,jpg,gif,svg}
⠹ imagemin-lint-staged
❯ Running tasks for *.{png,jpeg,jpg,gif,svg}
⠸ imagemin-lint-staged
❯ Running tasks for *.{png,jpeg,jpg,gif,svg}
⠼ imagemin-lint-staged
❯ Running tasks for *.{png,jpeg,jpg,gif,svg}
⠴ imagemin-lint-staged
❯ Running tasks for *.{png,jpeg,jpg,gif,svg}
✖ imagemin-lint-staged
→ { Error: ENOENT: no such file or directory, open '--' errno: -2, code: 'ENOENT', syscall: 'open', path: '--' }
git add
↓ Running tasks for *.less [skipped]
→ No staged files match *.less
↓ Running tasks for hhmobile/static/js/**/*.js [skipped]
→ No staged files match hhmobile/static/js/**/*.js
↓ Running tasks for *.py [skipped]
→ No staged files match *.py
↓ Running tasks for package.json [skipped]
→ No staged files match package.json
🚫 imagemin-lint-staged found some errors. Please fix them and try committing again.
{ Error: ENOENT: no such file or directory, open '--' errno: -2, code: 'ENOENT', syscall: 'open', path: '--' }
$ imagemin-lint-staged -- image.png
{ Error: ENOENT: no such file or directory, open '--' errno: -2, code: 'ENOENT', syscall: 'open', path: '--' }