-
-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[13.0.0] excessive output when invoked through pre-commit script #1164
Comments
Looks like |
Does adding |
Nope. |
Just to be clear, running the previous version of lint-staged through Husky doesn't behave in the same way? V13 dropped support for Node.js 12 but I don't think we did anything else that should directly affect this. To me it looks like listr2 should be updating the current line with new content, but ends up duplicating instead... Maybe you can try running this PR locally to see if it helps: #1163. You can pretty much just copy-paste the code into your |
Confirming that previous version (12.4.0 and 12.5.0 at least) of lint-staged did NOT exhibit this behavior through husky. (Might've held on to an older version of listr2 via lockfile, though?) Running that PR locally did help, though:
|
I'm also seeing what @wKovacs64 lists in the previous comment. That's still different than the output when It appears that Editing my #!/bin/sh
. "$(dirname "$0")/_/husky.sh"
FORCE_COLOR=1 npx lint-staged
|
Had the same problem, fixed by setting |
Same problem here, just with windows, any fixes for this? FORCE_COLOR=1 didn't solve it. |
this did not work for me |
Only by installing version 12.4.1 and setting |
still has this issue in windows os |
Can Windows users please to try to help me get this Draft PR #1163 working? I'm not on a Windows machine so I can't really get the Windows-specific TTY handle opened. |
This is what I get when test Draft PR #1163 on windows and put the js files in node_modules:
|
maybe help you: this is a regression in git 2.36.0 -- for more info see here: https://twitter.com/pre_commit/status/1516492899306909696 |
Thank you @cloudyan. I think we should wait for a bit and not try to add any workarounds. |
I got the same result with version 13.0.2 with git version 2.24.0 I also tested
|
I downgraded to version 9. Although there is no color prompt, it can be output and used normally |
Git |
@remcohaszing isn't it 2.37 that was just released? already upgraded to that version but still got the same error. |
Sorry, no idea where that number came from. But yes, I ran into this issue earlier. This morning I updated to git 2.37 and the issue was gone. |
@remcohaszing are you using windows? what version of lint-staged that u used? |
Git: 2.37 I think that pretty much covers it |
@iiroj I tested your PR on Windows and it looks like you can't open Would it make sense to borrow the technique of using node internals ( |
Just to add a data point: updating git to v2.37.0 had no effect for me. |
@dennisjlee thanks! Problem is I don't think I can develop it realistically since I don't run Windows OS. Would really appreciate any help I can get! |
FORCE_COLOR did not work for me using git 2.36 nor git 2.37. The best solution I found was running lint-staged in quite mode.
|
There is draft PR #1163, which should fix the problem, mentioned in #1145 (comment). Until it's merged, you can use this workaround: typicode/husky#968 (comment). It works in both Windows 10 and macOS. |
Still an issue in git version (Btw, I'm not a fan of the workaround mentioned by @axmrnv because it doesn't work in a lot of situations. @tonyschwebach 's solution always works.) |
…ite a bit of spam otherwise. See lint-staged/lint-staged#1164
It also works with "npx lint-staged --debug", if you don't mind the extra output. |
[ON WINDOWS, vscode w/ husky]: Found another temp fix which works for myself / serves me for now as others didn't, thought I'd post in case it helps anybody else and saves some time! Searched for a while and stumbled across this comment: typicode/husky#968 (comment) Example:
Seems to work just fine as far as I can tell - unsure for other use cases but no repeat logs for each text update on my side. Tested on latest husky & lint-staged versions. |
This help me.
|
…ite a bit of spam otherwise. See lint-staged/lint-staged#1164
I thought I had something for Windows 10 with VS Code Terminal, TortoiseGit, Windows Command Terminal, and Git Bash but it failed on TortoiseGit. #!/usr/bin/env sh if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then npx lint-staged |
same issue with intellij 14:19:31.867: [106801] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false commit -F C:\Users\igem173\AppData\Local\Temp\1\git-commit-msg-.txt -- |
something like this works but doesn't give the output in TortoiseGit and IntelliJ #!/usr/bin/env sh if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then npx lint-staged |
I faced a similar issue before. This was because the previous merge process had failed due to abrupt closure of terminal. I had to delete the |
We can't really use the But: when using husky you actually can set the workaround globally on a per-machine basis. So each developer can work around the issue on demand and it's not per repository…
Will still not work for people using both Git Bash as well as Powershell though… |
Can we have a non-graphical command output like --quiet and it shows only the results. I think the animations is causing the underlying issue? |
EnvironmentOS: Windows 10 Home 22H2 Build 19045.2604 InvestigationI am experiencing the same issue and have traced this to git for windows (at least in the two setups I am using, one installed with winget and one with scoop) stripping ANSI escape sequences, causing previous output to not be cleared when it should. .git/hooks/pre-commit
This hooks can test if ANSI escape sequences are being processed properly. For me, ANSI escape sequences works properly when WorkaroundsAnything that forces the text or verbose renderer (e.g. The |
@clemyan is this what you wanted? I put the snippet in the pre-commit file for husky. |
Oops I didn't word that quite correctly. Are you thinking I want someone do testing for me? What I was saying is that
I have edited my comment above to hopefully make this clear. FWIW, your setup is not displaying ANSI sequences properly so you would see excessive output. In your setup, probably the best workaround/fix would be to set |
Can you try installing |
@iiroj Tested |
In |
EnvironmentOS: Windows 11 22H2 Build 22621.1344 This still seems to be an issue for me on Windows. Am I missing something? Pre-commit hook#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
yarn lint-staged OutputClick to expand◼ Preparing lint-staged...
◼ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠋ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠙ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠹ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
⠹ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
◼ .lintstagedrc.json — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
⠹ .lintstagedrc.json — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
◼ *?(test|spec).{js,jsx,ts,tsx} — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
◼ *?(test|spec).{js,jsx,ts,tsx} — 1 file
◼ *.{css,scss,md,html,json,yml,yaml} — 0 files
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
⠹ *?(test|spec).{js,jsx,ts,tsx} — 1 file
◼ *.{css,scss,md,html,json,yml,yaml} — 0 files
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
⠹ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠹ *.{css,scss,md,html,json,yml,yaml} — 0 files
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
⠹ *?(test|spec).{js,jsx,ts,tsx} — 1 file
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
◼ yarn lint:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
◼ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠹ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠸ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠼ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠴ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠦ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠧ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠇ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠏ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠋ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠙ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠹ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠸ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠼ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠴ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠦ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠧ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠇ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠏ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠋ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠙ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
⠹ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
◼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠹ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠸ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠼ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠴ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠦ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠧ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠇ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠏ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠋ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
⠙ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
❯ *?(test|spec).{js,jsx,ts,tsx} — 1 file
✔ yarn lint:fix
✔ yarn pretty:fix
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ .lintstagedrc.json — 1 file
✔ *?(test|spec).{js,jsx,ts,tsx} — 1 file
↓ *.{css,scss,md,html,json,yml,yaml} — no files [SKIPPED]
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
✔ .lintstagedrc.json — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
⠙ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
⠹ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
⠹ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
⠸ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
✔ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
✔ Cleaning up temporary files...
Done in 4.63s. If I prefix the command in the hook with Click to expand[STARTED] Preparing lint-staged...
[SUCCESS] Preparing lint-staged...
[STARTED] Running tasks for staged files...
[STARTED] .lintstagedrc.json — 1 file
[STARTED] *?(test|spec).{js,jsx,ts,tsx} — 0 files
[STARTED] *.{css,scss,md,html,json,yml,yaml} — 1 file
[SKIPPED] *?(test|spec).{js,jsx,ts,tsx} — no files
[STARTED] yarn pretty:fix
[SUCCESS] yarn pretty:fix
[SUCCESS] *.{css,scss,md,html,json,yml,yaml} — 1 file
[SUCCESS] .lintstagedrc.json — 1 file
[SUCCESS] Running tasks for staged files...
[STARTED] Applying modifications from tasks...
[SUCCESS] Applying modifications from tasks...
[STARTED] Cleaning up temporary files...
[SUCCESS] Cleaning up temporary files...
Done in 2.30s. |
Description
Not sure if this is a bug, but lint-staged v13.0.0 sure is chatty. :) Running
npx lint-staged
(not through a husky pre-commit script) seems to yield the expected output, though. See both examples below.Steps to reproduce
Expand to view output when invoked through husky
Expand to view output when invoked directly (no husky)
Debug Logs
expand to view
Environment
lint-staged
: v13.0.0The text was updated successfully, but these errors were encountered: