Comments (4)
Let me reopen this issue, I can check if it's possible to emit a warning when cancelling because that would make sense.
from lint-staged.
Yes, we can't really help it. The backup stash is left behind for manual recovery:
git stash list
from lint-staged.
Would it be possible to print some information about this, to say that changes are stashed and to run that command to recover the changes?
I've lost some changes a couple of times without realizing and it's caused a lot of grief because it's not obvious that the contents of my files have changed.
from lint-staged.
Can you post your debug logs? Lint-staged should already automatically restore the original state in case tasks are interrupted with SIGINT
, for example. I don't think I can add any additional handling for this case.
from lint-staged.
Related Issues (20)
- firebase emulator is not running by lint-staged HOT 8
- SyntaxError: Named export 'getStreamAsBuffer' not found HOT 2
- "No files matching the pattern ... was found" when using ESLint flat configuration file format HOT 2
- No staged files found HOT 2
- Script fails when using grouped layouts in Next.js HOT 5
- lint-staged does not detect changed files, skips scripts HOT 4
- High vulnerability in 'braces' dependency HOT 3
- Add flag to simplify testing `lint-staged` integration HOT 2
- Silent failure of configuration loading HOT 2
- Monorepo and different `.lintstagedrc.json` configuration files HOT 2
- WSL incorrect resolveGitRepo: Current directory is not a git directory HOT 5
- Issue: Targeted files skip tsconfig HOT 1
- Failing to get staged files on 15.2.6 HOT 11
- Version 12+ results in exit code 1 instead of working HOT 2
- Fail to find git dir with git "rev-parse" HOT 1
- The 'File Ignored' warning is still a big problem HOT 1
- 'Integrate with Next.js' not working properly without '--dir' in monorepo.
- The docs suggests having empty config, but it doesn't work HOT 2
- Failed to get staged files HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lint-staged.