You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error:
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✖ Prevented an empty git commit!
✔ Reverting to original state because of errors...
✔ Cleaning up temporary files...
⚠ lint-staged prevented an empty git commit.
Use the --allow-empty option to continue, or check your task configuration
What happend: Prettier did run, as indicated by lint-staged, which prepared and processed the staged files. However, since the file wasn’t re-staged after formatting, the commit was prevented (indicating Prettier likely did apply changes but didn’t stage them).
Solution: I just added space, that was not enough "changes". Added a console.log line.
The text was updated successfully, but these errors were encountered:
Error:
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✖ Prevented an empty git commit!
✔ Reverting to original state because of errors...
✔ Cleaning up temporary files...
⚠ lint-staged prevented an empty git commit.
Use the --allow-empty option to continue, or check your task configuration
What happend: Prettier did run, as indicated by lint-staged, which prepared and processed the staged files. However, since the file wasn’t re-staged after formatting, the commit was prevented (indicating Prettier likely did apply changes but didn’t stage them).
Solution: I just added space, that was not enough "changes". Added a console.log line.
The text was updated successfully, but these errors were encountered: