okonet/lint-staged
### [`v10.0.7`](https://togithub.com/okonet/lint-staged/releases/v10.0.7)
[Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.6...v10.0.7)
##### Bug Fixes
- replace fs.promises with util.promisify ([#786](https://togithub.com/okonet/lint-staged/issues/786)) ([f71c1c9](https://togithub.com/okonet/lint-staged/commit/f71c1c9ad2d27205199171bf3dc0e908889ba384))
### [`v10.0.6`](https://togithub.com/okonet/lint-staged/releases/v10.0.6)
[Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.5...v10.0.6)
##### Bug Fixes
- make sure deleted files aren't restored due to git bugs ([#778](https://togithub.com/okonet/lint-staged/issues/778)) ([6bfbe6c](https://togithub.com/okonet/lint-staged/commit/6bfbe6c204e351bd7055c5ecc810e1f9074304da))
### [`v10.0.5`](https://togithub.com/okonet/lint-staged/releases/v10.0.5)
[Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.4...v10.0.5)
##### Bug Fixes
- always resolve real git config dir location if .git is a file ([#784](https://togithub.com/okonet/lint-staged/issues/784)) ([b98a5ed](https://togithub.com/okonet/lint-staged/commit/b98a5ed8d422f637af4157a157676a70e3f1981a))
### [`v10.0.4`](https://togithub.com/okonet/lint-staged/releases/v10.0.4)
[Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.3...v10.0.4)
##### Bug Fixes
- use verbose renderer when TERM=dumb ([#782](https://togithub.com/okonet/lint-staged/issues/782)) ([9c08e8e](https://togithub.com/okonet/lint-staged/commit/9c08e8ee0bdf00de7dc6e15cd660e6fc55129832))
### [`v10.0.3`](https://togithub.com/okonet/lint-staged/releases/v10.0.3)
[Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.2...v10.0.3)
##### Bug Fixes
- correctly restore untracked files after running ([#780](https://togithub.com/okonet/lint-staged/issues/780)) ([4010db0](https://togithub.com/okonet/lint-staged/commit/4010db09f6d168af677bd4ca1c815ba40460ae80))
### [`v10.0.2`](https://togithub.com/okonet/lint-staged/releases/v10.0.2)
[Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.1...v10.0.2)
##### Bug Fixes
- only warn about git add when it's the exact command ([24febb3](https://togithub.com/okonet/lint-staged/commit/24febb3c906dd84f8ee19bae74509e42db034380))
- parse command string with string-argv unless --shell is used ([4cb4dde](https://togithub.com/okonet/lint-staged/commit/4cb4ddee0c6b6500eefd20eb3d1bad249d51b96a))
- print a better warning when the initial commit is missing ([293547d](https://togithub.com/okonet/lint-staged/commit/293547d46080eac007393709a0d63a63f2063fff))
### [`v10.0.1`](https://togithub.com/okonet/lint-staged/releases/v10.0.1)
[Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.0...v10.0.1)
##### Bug Fixes
- preserve merge states in submodules ([#769](https://togithub.com/okonet/lint-staged/issues/769)) ([e646b2c](https://togithub.com/okonet/lint-staged/commit/e646b2c46ad34344b526462200471fa47dcc398f))
### [`v10.0.0`](https://togithub.com/okonet/lint-staged/releases/v10.0.0)
[Compare Source](https://togithub.com/okonet/lint-staged/compare/v9.5.0...v10.0.0)
##### Bug Fixes
- add all modified files to git index with `git add .` ([bf532c2](https://togithub.com/okonet/lint-staged/commit/bf532c2af9dbd3514b16768a106fea82ddc99923))
- automatically add modifications only to originally staged files ([083b8e7](https://togithub.com/okonet/lint-staged/commit/083b8e7d67307a177d427d694ead22cb0c95b0ca))
- better workaround for git stash --keep-index bug ([f3ae378](https://togithub.com/okonet/lint-staged/commit/f3ae378aa8d7207f990c4ffec854cc8da4d38b1d))
- correctly leave only staged files for running tasks ([cfde9ca](https://togithub.com/okonet/lint-staged/commit/cfde9ca64bed7fa236eda69e63478c536f9f9068))
- correctly recover when unstaged changes cannot be restored ([d091f71](https://togithub.com/okonet/lint-staged/commit/d091f71ff50b1eddc59e759b1b09a95ed613c4d2))
- correctly restore untracked files from backup stash ([c7d0592](https://togithub.com/okonet/lint-staged/commit/c7d05922b24524707795c4045339801c86affe9d))
- error handling skips dropping backup stash after internal git errors ([30b4809](https://togithub.com/okonet/lint-staged/commit/30b480925a313f5c2b614eb40eb1a340a6cefae5))
- fail with a message when backup stash is missing ([1b64239](https://togithub.com/okonet/lint-staged/commit/1b64239163f5560b7235843909a9d30ff7ca1b83))
- gitWorkflow handles active merge mode ([2f1e886](https://togithub.com/okonet/lint-staged/commit/2f1e886cba422844b0496a96696dae5296835862))
- handle git MERGE\_\* files separately; improve error handling ([da22cf2](https://togithub.com/okonet/lint-staged/commit/da22cf22bbd21be98a73b880a4ce43dbd0129021))
- improve debug logging ([f88e226](https://togithub.com/okonet/lint-staged/commit/f88e22619b8dea4fbcda3d57a85ca9d1be152908))
- keep untracked files around by backing them up ([fc03fdc](https://togithub.com/okonet/lint-staged/commit/fc03fdc2e869384eb2d6423ff31f84e3cf22007e))
- max arg length is by default half of the allowed to prevent edge cases ([80406c2](https://togithub.com/okonet/lint-staged/commit/80406c20fd3d1a86b0a0558c10f6747b2b47698e))
- prevent Listr from hiding git add warning ([cce9809](https://togithub.com/okonet/lint-staged/commit/cce9809a2ce335a3b2c3f44e4c521270b13f9d4c))
- restore metadata about git merge before running tasks ([f8ddfc2](https://togithub.com/okonet/lint-staged/commit/f8ddfc22d22fec2b417a67249573e7cd6abdb9fc))
- retry failing apply with 3-way merge ([76cb08f](https://togithub.com/okonet/lint-staged/commit/76cb08f6eecd68f3ae7e606216b4c5fdc1da94f0))
- support binary files ([7b3a334](https://togithub.com/okonet/lint-staged/commit/7b3a334ac33ffe1bda930583a055fb1db0b6d181))
- try applying unstaged changes before handling errors ([357934f](https://togithub.com/okonet/lint-staged/commit/357934fe1e193040d1a138d3d138da1377004be2))
- update warning about git add, and to README ([6467a66](https://togithub.com/okonet/lint-staged/commit/6467a66b13657f1a39b0f1f3a079dc31a8461fe9))
- workaround for stashing deleted files for git < 2.23 ([1a87333](https://togithub.com/okonet/lint-staged/commit/1a87333f9ee0704b3bb332bf5fbc11dbd25f7821))
##### Features
- automatically stage task modifications ([74ed28d](https://togithub.com/okonet/lint-staged/commit/74ed28d5edc70c66d769f7658b90b550029a2acf))
- bump Node.js version dependency to at least 10.13.0 ([#747](https://togithub.com/okonet/lint-staged/issues/747)) ([814b9df](https://togithub.com/okonet/lint-staged/commit/814b9dfe131f55c18a8996f775dd5dd582d0a766))
- split tasks into chunks to support shells with limited max argument length ([#732](https://togithub.com/okonet/lint-staged/issues/732)) ([cb43872](https://togithub.com/okonet/lint-staged/commit/cb43872fb6c05366a8fc25a8bd889b95918f45a3))
- support async function tasks ([20d5c5d](https://togithub.com/okonet/lint-staged/commit/20d5c5d4cb92f9a4c501e5308cc51379d10581a8))
- throw error to prevent empty commits unless --allow-empty is used ([#762](https://togithub.com/okonet/lint-staged/issues/762)) ([8bdeec0](https://togithub.com/okonet/lint-staged/commit/8bdeec067f425150722bd0ee78e310e0992a1444))
- use git stashes for gitWorkflow ([40a5db1](https://togithub.com/okonet/lint-staged/commit/40a5db1f6b1ad17b5a593974b6db93015f50824c))
- warn when task contains "git add" ([5208399](https://togithub.com/okonet/lint-staged/commit/52083990166cbea3bfe3d316ad6598c6c198fe1e))
##### BREAKING CHANGES
- Previously, lint-staged would allow empty commits in the situation where a linter task like "prettier --write" reverts all staged changes automatically. Now the default behaviour is to throw an error with a helpful warning message. The --allow empty option can be used to allow empty commits, or `allowEmpty: true` for the Node.js API.
- Node.js v8 is no longer supported because it will reach EOL on 2019-12-31
- Prior to version 10, tasks had to manually include `git add` as the final step. This behavior has been integrated into lint-staged itself in order to prevent race conditions with multiple tasks editing the same files. If lint-staged detects `git add` in task configurations, it will show a warning in the console. Please remove `git add` from your configuration after upgrading.
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you tick the rebase/retry checkbox below.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
~9.5.0
->~10.0.0
Release Notes
okonet/lint-staged
### [`v10.0.7`](https://togithub.com/okonet/lint-staged/releases/v10.0.7) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.6...v10.0.7) ##### Bug Fixes - replace fs.promises with util.promisify ([#786](https://togithub.com/okonet/lint-staged/issues/786)) ([f71c1c9](https://togithub.com/okonet/lint-staged/commit/f71c1c9ad2d27205199171bf3dc0e908889ba384)) ### [`v10.0.6`](https://togithub.com/okonet/lint-staged/releases/v10.0.6) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.5...v10.0.6) ##### Bug Fixes - make sure deleted files aren't restored due to git bugs ([#778](https://togithub.com/okonet/lint-staged/issues/778)) ([6bfbe6c](https://togithub.com/okonet/lint-staged/commit/6bfbe6c204e351bd7055c5ecc810e1f9074304da)) ### [`v10.0.5`](https://togithub.com/okonet/lint-staged/releases/v10.0.5) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.4...v10.0.5) ##### Bug Fixes - always resolve real git config dir location if .git is a file ([#784](https://togithub.com/okonet/lint-staged/issues/784)) ([b98a5ed](https://togithub.com/okonet/lint-staged/commit/b98a5ed8d422f637af4157a157676a70e3f1981a)) ### [`v10.0.4`](https://togithub.com/okonet/lint-staged/releases/v10.0.4) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.3...v10.0.4) ##### Bug Fixes - use verbose renderer when TERM=dumb ([#782](https://togithub.com/okonet/lint-staged/issues/782)) ([9c08e8e](https://togithub.com/okonet/lint-staged/commit/9c08e8ee0bdf00de7dc6e15cd660e6fc55129832)) ### [`v10.0.3`](https://togithub.com/okonet/lint-staged/releases/v10.0.3) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.2...v10.0.3) ##### Bug Fixes - correctly restore untracked files after running ([#780](https://togithub.com/okonet/lint-staged/issues/780)) ([4010db0](https://togithub.com/okonet/lint-staged/commit/4010db09f6d168af677bd4ca1c815ba40460ae80)) ### [`v10.0.2`](https://togithub.com/okonet/lint-staged/releases/v10.0.2) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.1...v10.0.2) ##### Bug Fixes - only warn about git add when it's the exact command ([24febb3](https://togithub.com/okonet/lint-staged/commit/24febb3c906dd84f8ee19bae74509e42db034380)) - parse command string with string-argv unless --shell is used ([4cb4dde](https://togithub.com/okonet/lint-staged/commit/4cb4ddee0c6b6500eefd20eb3d1bad249d51b96a)) - print a better warning when the initial commit is missing ([293547d](https://togithub.com/okonet/lint-staged/commit/293547d46080eac007393709a0d63a63f2063fff)) ### [`v10.0.1`](https://togithub.com/okonet/lint-staged/releases/v10.0.1) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v10.0.0...v10.0.1) ##### Bug Fixes - preserve merge states in submodules ([#769](https://togithub.com/okonet/lint-staged/issues/769)) ([e646b2c](https://togithub.com/okonet/lint-staged/commit/e646b2c46ad34344b526462200471fa47dcc398f)) ### [`v10.0.0`](https://togithub.com/okonet/lint-staged/releases/v10.0.0) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v9.5.0...v10.0.0) ##### Bug Fixes - add all modified files to git index with `git add .` ([bf532c2](https://togithub.com/okonet/lint-staged/commit/bf532c2af9dbd3514b16768a106fea82ddc99923)) - automatically add modifications only to originally staged files ([083b8e7](https://togithub.com/okonet/lint-staged/commit/083b8e7d67307a177d427d694ead22cb0c95b0ca)) - better workaround for git stash --keep-index bug ([f3ae378](https://togithub.com/okonet/lint-staged/commit/f3ae378aa8d7207f990c4ffec854cc8da4d38b1d)) - correctly leave only staged files for running tasks ([cfde9ca](https://togithub.com/okonet/lint-staged/commit/cfde9ca64bed7fa236eda69e63478c536f9f9068)) - correctly recover when unstaged changes cannot be restored ([d091f71](https://togithub.com/okonet/lint-staged/commit/d091f71ff50b1eddc59e759b1b09a95ed613c4d2)) - correctly restore untracked files from backup stash ([c7d0592](https://togithub.com/okonet/lint-staged/commit/c7d05922b24524707795c4045339801c86affe9d)) - error handling skips dropping backup stash after internal git errors ([30b4809](https://togithub.com/okonet/lint-staged/commit/30b480925a313f5c2b614eb40eb1a340a6cefae5)) - fail with a message when backup stash is missing ([1b64239](https://togithub.com/okonet/lint-staged/commit/1b64239163f5560b7235843909a9d30ff7ca1b83)) - gitWorkflow handles active merge mode ([2f1e886](https://togithub.com/okonet/lint-staged/commit/2f1e886cba422844b0496a96696dae5296835862)) - handle git MERGE\_\* files separately; improve error handling ([da22cf2](https://togithub.com/okonet/lint-staged/commit/da22cf22bbd21be98a73b880a4ce43dbd0129021)) - improve debug logging ([f88e226](https://togithub.com/okonet/lint-staged/commit/f88e22619b8dea4fbcda3d57a85ca9d1be152908)) - keep untracked files around by backing them up ([fc03fdc](https://togithub.com/okonet/lint-staged/commit/fc03fdc2e869384eb2d6423ff31f84e3cf22007e)) - max arg length is by default half of the allowed to prevent edge cases ([80406c2](https://togithub.com/okonet/lint-staged/commit/80406c20fd3d1a86b0a0558c10f6747b2b47698e)) - prevent Listr from hiding git add warning ([cce9809](https://togithub.com/okonet/lint-staged/commit/cce9809a2ce335a3b2c3f44e4c521270b13f9d4c)) - restore metadata about git merge before running tasks ([f8ddfc2](https://togithub.com/okonet/lint-staged/commit/f8ddfc22d22fec2b417a67249573e7cd6abdb9fc)) - retry failing apply with 3-way merge ([76cb08f](https://togithub.com/okonet/lint-staged/commit/76cb08f6eecd68f3ae7e606216b4c5fdc1da94f0)) - support binary files ([7b3a334](https://togithub.com/okonet/lint-staged/commit/7b3a334ac33ffe1bda930583a055fb1db0b6d181)) - try applying unstaged changes before handling errors ([357934f](https://togithub.com/okonet/lint-staged/commit/357934fe1e193040d1a138d3d138da1377004be2)) - update warning about git add, and to README ([6467a66](https://togithub.com/okonet/lint-staged/commit/6467a66b13657f1a39b0f1f3a079dc31a8461fe9)) - workaround for stashing deleted files for git < 2.23 ([1a87333](https://togithub.com/okonet/lint-staged/commit/1a87333f9ee0704b3bb332bf5fbc11dbd25f7821)) ##### Features - automatically stage task modifications ([74ed28d](https://togithub.com/okonet/lint-staged/commit/74ed28d5edc70c66d769f7658b90b550029a2acf)) - bump Node.js version dependency to at least 10.13.0 ([#747](https://togithub.com/okonet/lint-staged/issues/747)) ([814b9df](https://togithub.com/okonet/lint-staged/commit/814b9dfe131f55c18a8996f775dd5dd582d0a766)) - split tasks into chunks to support shells with limited max argument length ([#732](https://togithub.com/okonet/lint-staged/issues/732)) ([cb43872](https://togithub.com/okonet/lint-staged/commit/cb43872fb6c05366a8fc25a8bd889b95918f45a3)) - support async function tasks ([20d5c5d](https://togithub.com/okonet/lint-staged/commit/20d5c5d4cb92f9a4c501e5308cc51379d10581a8)) - throw error to prevent empty commits unless --allow-empty is used ([#762](https://togithub.com/okonet/lint-staged/issues/762)) ([8bdeec0](https://togithub.com/okonet/lint-staged/commit/8bdeec067f425150722bd0ee78e310e0992a1444)) - use git stashes for gitWorkflow ([40a5db1](https://togithub.com/okonet/lint-staged/commit/40a5db1f6b1ad17b5a593974b6db93015f50824c)) - warn when task contains "git add" ([5208399](https://togithub.com/okonet/lint-staged/commit/52083990166cbea3bfe3d316ad6598c6c198fe1e)) ##### BREAKING CHANGES - Previously, lint-staged would allow empty commits in the situation where a linter task like "prettier --write" reverts all staged changes automatically. Now the default behaviour is to throw an error with a helpful warning message. The --allow empty option can be used to allow empty commits, or `allowEmpty: true` for the Node.js API. - Node.js v8 is no longer supported because it will reach EOL on 2019-12-31 - Prior to version 10, tasks had to manually include `git add` as the final step. This behavior has been integrated into lint-staged itself in order to prevent race conditions with multiple tasks editing the same files. If lint-staged detects `git add` in task configurations, it will show a warning in the console. Please remove `git add` from your configuration after upgrading.Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you tick the rebase/retry checkbox below.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.