Alexey Mironov

Results 5 comments of Alexey Mironov

There is draft PR #1163, which should fix the problem, mentioned in https://github.com/okonet/lint-staged/issues/1145#issuecomment-1143616749. Until it's merged, you can use this workaround: https://github.com/typicode/husky/issues/968#issuecomment-1176848345. It works in both Windows 10 and macOS.

TL;DR: Adding `exec 1> /dev/tty` or `exec >/dev/tty 2>&1` to your git hook before `npx lint-staged` looks like a workaround: ```bash #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" exec >/dev/tty 2>&1...

Yes, it's git. I don't know why git hook's stdout is not a tty. Maybe there is a reason for that. In theory, we could fix (workaround) it here by...

@valentinoli, thanks for pointing this out! However, this workaround may be improved. It should work most of the time as `stdout` & `stderr` often go hand in hand; but that's...

I had a similar issue, `grep -irl '"formula":' "${HOMEBREW_PREFIX}/Caskroom"` and `brew reinstall --cask` fixed it. The first command displayed the [emacs-app](https://formulae.brew.sh/cask/emacs-app) cask (although I don't think I had it installed,...