Open luquera opened 3 years ago
https://github.com/typicode/husky/issues/968#issuecomment-1455110738
this comment fixed the original issue for me. i reverted my pre-commit file
Documented a combination of fixes in https://gist.github.com/webbertakken/c2b457d39224baf701c8de1589b61555.
Works for:
Tested with WebStorm IDE and latest git versions.
@Geczy @akmaldira @MrFlyHouse @loriswit this should solve your problems as well.
@webbertakken Thank you! Your script is exactly what I was looking for! I've tried settings manually FORCE_COLOR
to 0
and 1
as it's written in other guides but it didn't help me.
Cheers!
Documented a combination of fixes in https://gist.github.com/webbertakken/c2b457d39224baf701c8de1589b61555.
Works for:
- 🍎 MacOS using Zsh (cli) or IDE (no tty)
- 💻 Ubuntu using Zsh (cli) or IDE (no tty)
- 🪟 Windows using Git Bash or PowerShell or IDE (no tty)
Tested with WebStorm IDE and latest git versions.
@Geczy @akmaldira @MrFlyHouse @loriswit this should solve your problems as well.
Unfortunately it does not work with Windows Terminal WSL under a docker container. For example using Laravel Sail.
@typicode It's not fixed in v9? I'm facing the same issue...
Everything is set up correctly, according to the documentation. I'm using Windows 10.
by husky:
by npm script (running lint-staged):
Thanks!