Bumps lint-staged from 9.5.0 to 10.0.0.
Release notes
Sourced from lint-staged's releases.
v10.0.0
10.0.0 (2020年01月19日)
Bug Fixes
- add all modified files to git index with
git add . (bf532c2)
- automatically add modifications only to originally staged files (083b8e7)
- better workaround for git stash --keep-index bug (f3ae378)
- correctly leave only staged files for running tasks (cfde9ca)
- correctly recover when unstaged changes cannot be restored (d091f71)
- correctly restore untracked files from backup stash (c7d0592)
- error handling skips dropping backup stash after internal git errors (30b4809)
- fail with a message when backup stash is missing (1b64239)
- gitWorkflow handles active merge mode (2f1e886)
- handle git MERGE_* files separately; improve error handling (da22cf2)
- improve debug logging (f88e226)
- keep untracked files around by backing them up (fc03fdc)
- max arg length is by default half of the allowed to prevent edge cases (80406c2)
- prevent Listr from hiding git add warning (cce9809)
- restore metadata about git merge before running tasks (f8ddfc2)
- retry failing apply with 3-way merge (76cb08f)
- support binary files (7b3a334)
- try applying unstaged changes before handling errors (357934f)
- update warning about git add, and to README (6467a66)
- workaround for stashing deleted files for git < 2.23 (1a87333)
Features
- automatically stage task modifications (74ed28d)
- bump Node.js version dependency to at least 10.13.0 (#747) (814b9df)
- split tasks into chunks to support shells with limited max argument length (#732) (cb43872)
- support async function tasks (20d5c5d)
- throw error to prevent empty commits unless --allow-empty is used (#762) (8bdeec0)
- use git stashes for gitWorkflow (40a5db1)
- warn when task contains "git add" (5208399)
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.
v10.0.0-beta.15
Features
... (truncated)
Commits
072924f Merge pull request #724 from okonet/beta
f9e128d docs: Improve config section documentation
e1cd6ba Merge branch 'master' into beta
af58e6e docs: refine examples formatting (#767)
82bee06 Merge branch 'master' into beta
af4604a docs: Improve documentation on the --debug flag (#766)
bd3721f Merge branch 'master' into beta
8bdeec0 feat: throw error to prevent empty commits unless --allow-empty is used (#762)
2cd1d37 docs: add funding property to package.json linking to Open Collective (#763)
056723b docs: Document how to deal with eslintignore warnings (#759)
- Additional commits viewable in compare view
Dependabot compatibility score
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
@dependabot use these labels will set the current labels as the default for future PRs for this repo and language
@dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
@dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
@dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
@dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps lint-staged from 9.5.0 to 10.0.0.
Release notes
Sourced from lint-staged's releases.
Commits
072924fMerge pull request #724 from okonet/betaf9e128ddocs: Improve config section documentatione1cd6baMerge branch 'master' into betaaf58e6edocs: refine examples formatting (#767)82bee06Merge branch 'master' into betaaf4604adocs: Improve documentation on the --debug flag (#766)bd3721fMerge branch 'master' into beta8bdeec0feat: throw error to prevent empty commits unless --allow-empty is used (#762)2cd1d37docs: add funding property to package.json linking to Open Collective (#763)056723bdocs: Document how to deal with eslintignore warnings (#759)Dependabot compatibility score
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readmeAdditionally, you can set the following in your Dependabot dashboard: