-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Add better support for partially staged files #62
Comments
Partial staging bugging me a lot but I don't know how to solve this. If you know how to solve that issue, you're welcome to re-open the issue and file a PR. Otherwise I'll close the issue as won't fix. |
Sure 😊 I'm not familiar with the mechanism, so I don't have a solution to propose right now. |
Why not simply temporarily doing |
This sounds interesting and is worth trying. Thanks for pointing it out. |
Hmm. Maybe first concentrate on the simple case when linter doesn't modify the working copy, and address the case of Also you proposed in PR to |
I don't think it will. The conflict will only happen if the actual content has diverged from stashed one. Otherwise, it will successfully merge them. So this use case can be solved with the post-command.
I really don't want to loose this feature. So if there is a way of not losing it, I'd take this effort. So for now this is the only issue that prevents me from releasing it (besides of some code that needs to be written and the cleanup). |
For now, the second case doesn't seem to be solvable without a user interaction which sucks :( If someone has a better solution for that, any ideas are appreciated! See #73 for some more context. |
Well, if you stash then allow linters to perform changes, conflicts might happen. Either don't stash, or disable the linter --fix option. Maybe you can let the user choose what they prefer. Personally I would just disable the --fix option, so that I can use stash -k. Otherwise, lint-staged's behavior is simply incorrect (it lints code which isn't meant to be committed). |
These aren't solutions but workaround of the problem :( To add {
"*.js": ["git stash -k", "eslint", "git stash pop"]
} |
Oh that's nice, I'll give that a try. Should it be documented? But how is that a problem? Isn't it normal to ask for user input, if a merge conflict occurs? |
Well, technically, yes :) But in this case, I don't think so since the changes are coming from eslint and this will result in annoying user prompts. BTW: I agree this should be backed into the library but the |
Actually, didn't manage to get this working: ❯ Running tasks for *.js
→ or: git stash clear
✖ git stash -k
→ or: git stash clear
eslint
git stash pop
🚫 git stash -k found some errors. Please fix them and try committing again.
usage: git stash list [<options>]
or: git stash show [<stash>]
or: git stash drop [-q|--quiet] [<stash>]
or: git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
or: git stash branch <branchname> [<stash>]
or: git stash [save [--patch] [-k|--[no-]keep-index] [-q|--quiet]
[-u|--include-untracked] [-a|--all] [<message>]]
or: git stash clear
pre-commit:
pre-commit: We've failed to pass the specified git pre-commit hooks as the `lint-staged`
pre-commit: hook returned an exit code (1). If you're feeling adventurous you can
pre-commit: skip the git pre-commit hooks by adding the following flags to your commit:
pre-commit:
pre-commit: git commit -n (or --no-verify)
pre-commit:
pre-commit: This is ill-advised since the commit is broken.
pre-commit: |
Hmm, it's probably since I'm always passing paths to the command 🤔 |
The readme mentions that as of 3.1, lint-staged stashes un-staged changes. This is apparently not the case? |
@kmiyashiro yes, it seems it slipped into the Readme. I'll remove it. |
So, while I don't know what the approach would be for getting this working in lint-staged, I think conflicts are always going to be an issue, i managed to get this working using pre-commit and some git trickery, with a lot owed to this answer on stack overflow. My partial package.json: "lint-staged": {
"*.js": [
"eslint",
"jest --bail --findRelatedTests"
],
"*.scss": "stylelint --syntax scss",
"*.css": "stylelint"
},
"scripts": {
"lint-staged": "lint-staged || (yarn run pop-stash >> /dev/null && exit 1)",
"stash-unstaged": "git stash save -k 'pre-linting-stash' >> /dev/null",
"pop-stash": "git stash && git stash pop stash@{1} && git read-tree stash && git stash drop",
},
"pre-commit": [
"stash-unstaged",
"lint-staged",
"pop-stash"
], This works by first stashing the unstaged hunks, as above, then running the lint-staged script, which will pop the stash if it fails, and return a non-zero exit code to ensure it fails the overall pre-commit hook. Lastly it uses the trick in the aforelinked stackoverflow answer to safely return the stashed changes. Hope this helps someone! |
@okonet Ah cool, yeah that stack overflow answer really helped me, it's a clever sequence of git commands, I don't think I would got there myself in the end. With regards to the fix flag, I've been playing with it this morning, and it's actually a really tough problem, that I'm not sure will be possible cleanly or without some user interaction. Say I have the following code: export default function() {
return "My hello world module";
} I stage this and then add the following line: export default function() {
console.log("I don't want this committed just yet");
return "My hello world module";
} If I run the steps from my previous comment with
export default function() {
return "My hello world module";
}
export default function() {
return 'My hello world module';
}
export default function() {
console.log("I don't want this committed just yet");
return "My hello world module";
}
export default function() {
return 'My hello world module';
}
export default function() {
console.log("I don't want this committed just yet");
return "My hello world module"; // This fix has been undone.
} I don't think the end result is achievable, without also applying a linting fix to the
Now your working tree should contain all of the same fixes as your index, as we applied Anyway, sorry this turned out so long, but hope it helps. |
Also consider adding the the |
How would they if we only lint staged files? |
@okonet True, in most cases untracked files wouldn't be picked up, unless the scripts being run don't support accepting a list of files as arguments, instead running on the entire directory anyway. |
This PR contains the following updates: | Package | Type | Update | Change | References | |---|---|---|---|---| | lint-staged | devDependencies | major | `7.3.0` -> `8.0.0` | [source](https://renovatebot.com/gh/okonet/lint-staged) | --- ### Release Notes <details> <summary>okonet/lint-staged</summary> ### [`v8.0.0`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.0) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v7.3.0...v8.0.0) ### [8.0.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0) (2018-10-29) ##### Features - Add support for partially staged files ([#​75](http://git+https/github.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#​62](http://git+https/github.com/lint-staged/lint-staged/issues/62) ##### BREAKING CHANGES - Node >= 8.6 is required </details> --- ### 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 modify the PR title to begin with "`rebase!`". :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#simonkberg/simon-kjellberg).
## Overview The following dependencies have been updated by [dependencies.io](https://www.dependencies.io/): - `lint-staged` in `package.json` from "7.2.2" to "8.0.0" ## Details ### `lint-staged` This dependency is located in `package.json` and was updated from "7.2.2" to "8.0.0". <details> <summary>7.3.0</summary> # [7.3.0](lint-staged/lint-staged@v7.2.2...v7.3.0) (2018-09-20) ### Features * Allow linting files outside of project folder ([#495](https://www.dependencies.io/github-redirect/okonet/lint-staged/issues/495)) ([d386c80](lint-staged/lint-staged@d386c80)) </details> <details> <summary>8.0.0</summary> # [8.0.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0) (2018-10-29) ### Features * Add support for partially staged files ([#75](http://git+https/github.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#62](http://git+https/github.com/lint-staged/lint-staged/issues/62) ### BREAKING CHANGES * Node >= 8.6 is required </details>
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 7.3.0 to 8.0.3. <details> <summary>Release notes</summary> *Sourced from [lint-staged's releases](https://github.com/okonet/lint-staged/releases).* > ## v8.0.3 > ## [8.0.3](http://git+https/github.com/okonet/lint-staged/compare/v8.0.2...v8.0.3) (2018-10-30) > > > ### Bug Fixes > > * Allow to use lint-staged on CI ([#523](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/523)) ([225a904](http://git+https/github.com/okonet/lint-staged/commit/225a904)) > > ## v8.0.2 > ## [8.0.2](http://git+https/github.com/okonet/lint-staged/compare/v8.0.1...v8.0.2) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir in hasPartiallyStagedFiles ([#520](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/520)) ([af99172](http://git+https/github.com/okonet/lint-staged/commit/af99172)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.1 > ## [8.0.1](http://git+https/github.com/okonet/lint-staged/compare/v8.0.0...v8.0.1) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir to resolve to .git for git commands ([#518](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/518)) ([da42f8a](http://git+https/github.com/okonet/lint-staged/commit/da42f8a)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.0 > # [8.0.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0) (2018-10-29) > > > ### Features > > * Add support for partially staged files ([#75](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#62](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/62) > > > ### BREAKING CHANGES > > * Node >= 8.6 is required > > ## v7.4.0 > # [7.4.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v7.4.0) (2018-10-29) > > > ### Features > > * Add support for partially staged files ([#75](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/75)) ([9e0aa6f](http://git+https/github.com/okonet/lint-staged/commit/9e0aa6f)), closes [#62](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/62) </details> <details> <summary>Commits</summary> - [`225a904`](lint-staged/lint-staged@225a904) fix: Allow to use lint-staged on CI ([#523](https://github-redirect.dependabot.com/okonet/lint-staged/issues/523)) - [`af99172`](lint-staged/lint-staged@af99172) fix(git): Use resolveGitDir in hasPartiallyStagedFiles ([#520](https://github-redirect.dependabot.com/okonet/lint-staged/issues/520)) - [`da42f8a`](lint-staged/lint-staged@da42f8a) fix(git): Use resolveGitDir to resolve to .git for git commands ([#518](https://github-redirect.dependabot.com/okonet/lint-staged/issues/518)) - [`592486f`](lint-staged/lint-staged@592486f) docs: Update readme to include info about partially staged files support - [`f82443c`](lint-staged/lint-staged@f82443c) feat: Add support for partially staged files ([#75](https://github-redirect.dependabot.com/okonet/lint-staged/issues/75)) - [`e6a6ec6`](lint-staged/lint-staged@e6a6ec6) chore: upgrade to jest 23 ([#507](https://github-redirect.dependabot.com/okonet/lint-staged/issues/507)) - [`f05ada6`](lint-staged/lint-staged@f05ada6) docs: Add an example for type checking with flow ([#502](https://github-redirect.dependabot.com/okonet/lint-staged/issues/502)) - [`bcd0af4`](lint-staged/lint-staged@bcd0af4) docs: Add SurviveJS link - [`d782fa1`](lint-staged/lint-staged@d782fa1) docs: Update documentation for husky 1.0 ([#496](https://github-redirect.dependabot.com/okonet/lint-staged/issues/496)) - See full diff in [compare view](lint-staged/lint-staged@v7.3.0...v8.0.3) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.3.0&new-version=8.0.3)](https://dependabot.com/compatibility-score.html?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.3.0&new-version=8.0.3) 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 will **not** automatically merge this PR because it includes an out-of-range update to a development dependency. --- <details> <summary>Dependabot commands and options</summary> <br /> 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 cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - 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) Finally, you can contact us by mentioning @dependabot. </details>
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 7.3.0 to 8.0.3. <details> <summary>Release notes</summary> *Sourced from [lint-staged's releases](https://github.com/okonet/lint-staged/releases).* > ## v8.0.3 > ## [8.0.3](http://git+https/github.com/okonet/lint-staged/compare/v8.0.2...v8.0.3) (2018-10-30) > > > ### Bug Fixes > > * Allow to use lint-staged on CI ([#523](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/523)) ([225a904](http://git+https/github.com/okonet/lint-staged/commit/225a904)) > > ## v8.0.2 > ## [8.0.2](http://git+https/github.com/okonet/lint-staged/compare/v8.0.1...v8.0.2) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir in hasPartiallyStagedFiles ([#520](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/520)) ([af99172](http://git+https/github.com/okonet/lint-staged/commit/af99172)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.1 > ## [8.0.1](http://git+https/github.com/okonet/lint-staged/compare/v8.0.0...v8.0.1) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir to resolve to .git for git commands ([#518](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/518)) ([da42f8a](http://git+https/github.com/okonet/lint-staged/commit/da42f8a)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.0 > # [8.0.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0) (2018-10-29) > > > ### Features > > * Add support for partially staged files ([#75](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#62](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/62) > > > ### BREAKING CHANGES > > * Node >= 8.6 is required > > ## v7.4.0 > # [7.4.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v7.4.0) (2018-10-29) > > > ### Features > > * Add support for partially staged files ([#75](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/75)) ([9e0aa6f](http://git+https/github.com/okonet/lint-staged/commit/9e0aa6f)), closes [#62](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/62) </details> <details> <summary>Commits</summary> - [`225a904`](lint-staged/lint-staged@225a904) fix: Allow to use lint-staged on CI ([#523](https://github-redirect.dependabot.com/okonet/lint-staged/issues/523)) - [`af99172`](lint-staged/lint-staged@af99172) fix(git): Use resolveGitDir in hasPartiallyStagedFiles ([#520](https://github-redirect.dependabot.com/okonet/lint-staged/issues/520)) - [`da42f8a`](lint-staged/lint-staged@da42f8a) fix(git): Use resolveGitDir to resolve to .git for git commands ([#518](https://github-redirect.dependabot.com/okonet/lint-staged/issues/518)) - [`592486f`](lint-staged/lint-staged@592486f) docs: Update readme to include info about partially staged files support - [`f82443c`](lint-staged/lint-staged@f82443c) feat: Add support for partially staged files ([#75](https://github-redirect.dependabot.com/okonet/lint-staged/issues/75)) - [`e6a6ec6`](lint-staged/lint-staged@e6a6ec6) chore: upgrade to jest 23 ([#507](https://github-redirect.dependabot.com/okonet/lint-staged/issues/507)) - [`f05ada6`](lint-staged/lint-staged@f05ada6) docs: Add an example for type checking with flow ([#502](https://github-redirect.dependabot.com/okonet/lint-staged/issues/502)) - [`bcd0af4`](lint-staged/lint-staged@bcd0af4) docs: Add SurviveJS link - [`d782fa1`](lint-staged/lint-staged@d782fa1) docs: Update documentation for husky 1.0 ([#496](https://github-redirect.dependabot.com/okonet/lint-staged/issues/496)) - See full diff in [compare view](lint-staged/lint-staged@v7.3.0...v8.0.3) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.3.0&new-version=8.0.3)](https://dependabot.com/compatibility-score.html?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.3.0&new-version=8.0.3) 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`. --- <details> <summary>Dependabot commands and options</summary> <br /> 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 cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - 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) Finally, you can contact us by mentioning @dependabot. </details>
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 7.2.0 to 8.0.4. <details> <summary>Release notes</summary> *Sourced from [lint-staged's releases](https://github.com/okonet/lint-staged/releases).* > ## v8.0.4 > ## [8.0.4](http://git+https/github.com/okonet/lint-staged/compare/v8.0.3...v8.0.4) (2018-10-31) > > > ### Bug Fixes > > * **package:** update staged-git-files to version 1.1.2 ([ce434d3](http://git+https/github.com/okonet/lint-staged/commit/ce434d3)) > > ## v8.0.3 > ## [8.0.3](http://git+https/github.com/okonet/lint-staged/compare/v8.0.2...v8.0.3) (2018-10-30) > > > ### Bug Fixes > > * Allow to use lint-staged on CI ([#523](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/523)) ([225a904](http://git+https/github.com/okonet/lint-staged/commit/225a904)) > > ## v8.0.2 > ## [8.0.2](http://git+https/github.com/okonet/lint-staged/compare/v8.0.1...v8.0.2) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir in hasPartiallyStagedFiles ([#520](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/520)) ([af99172](http://git+https/github.com/okonet/lint-staged/commit/af99172)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.1 > ## [8.0.1](http://git+https/github.com/okonet/lint-staged/compare/v8.0.0...v8.0.1) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir to resolve to .git for git commands ([#518](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/518)) ([da42f8a](http://git+https/github.com/okonet/lint-staged/commit/da42f8a)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.0 > # [8.0.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0) (2018-10-29) > > > ### Features > > * Add support for partially staged files ([#75](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#62](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/62) > > > ### BREAKING CHANGES > > * Node >= 8.6 is required > > ## v7.4.0 > # [7.4.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v7.4.0) (2018-10-29) > > > ### Features ></table> ... (truncated) </details> <details> <summary>Commits</summary> - [`5e165a3`](lint-staged/lint-staged@5e165a3) Merge pull request [#513](https://github-redirect.dependabot.com/okonet/lint-staged/issues/513) from okonet/greenkeeper/staged-git-files-1.1.2 - [`07fd087`](lint-staged/lint-staged@07fd087) Merge branch 'master' into greenkeeper/staged-git-files-1.1.2 - [`00047de`](lint-staged/lint-staged@00047de) docs: fix typo ([#527](https://github-redirect.dependabot.com/okonet/lint-staged/issues/527)) - [`bedba5a`](lint-staged/lint-staged@bedba5a) refactor: Use object spread ([#524](https://github-redirect.dependabot.com/okonet/lint-staged/issues/524)) - [`225a904`](lint-staged/lint-staged@225a904) fix: Allow to use lint-staged on CI ([#523](https://github-redirect.dependabot.com/okonet/lint-staged/issues/523)) - [`af99172`](lint-staged/lint-staged@af99172) fix(git): Use resolveGitDir in hasPartiallyStagedFiles ([#520](https://github-redirect.dependabot.com/okonet/lint-staged/issues/520)) - [`da42f8a`](lint-staged/lint-staged@da42f8a) fix(git): Use resolveGitDir to resolve to .git for git commands ([#518](https://github-redirect.dependabot.com/okonet/lint-staged/issues/518)) - [`c4e8a2d`](lint-staged/lint-staged@c4e8a2d) chore(package): update lockfile yarn.lock - [`ce434d3`](lint-staged/lint-staged@ce434d3) fix(package): update staged-git-files to version 1.1.2 - [`592486f`](lint-staged/lint-staged@592486f) docs: Update readme to include info about partially staged files support - Additional commits viewable in [compare view](lint-staged/lint-staged@v7.2.0...v8.0.4) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.2.0&new-version=8.0.4)](https://dependabot.com/compatibility-score.html?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.2.0&new-version=8.0.4) 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`. --- <details> <summary>Dependabot commands and options</summary> <br /> 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 cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - 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) Finally, you can contact us by mentioning @dependabot. </details>
## The devDependency [lint-staged](https://github.com/okonet/lint-staged) was updated from `7.3.0` to `8.0.0`. This version is **not covered** by your **current version range**. If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update. --- <details> <summary>Release Notes for v8.0.0</summary> <h1><a href="http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0" rel="nofollow">8.0.0</a> (2018-10-29)</h1> <h3>Features</h3> <ul> <li>Add support for partially staged files (<a href="http://git+https/github.com/lint-staged/lint-staged/issues/75" rel="nofollow">#75</a>) (<a href="http://git+https/github.com/okonet/lint-staged/commit/f82443c" rel="nofollow">f82443c</a>), closes <a href="http://git+https/github.com/lint-staged/lint-staged/issues/62" rel="nofollow">#62</a></li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li>Node >= 8.6 is required</li> </ul> </details> <details> <summary>Commits</summary> <p>The new version differs by 5 commits.</p> <ul> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/f82443c7f7b147aae11e65a797b280ce375c8515"><code>f82443c</code></a> <code>feat: Add support for partially staged files (#75)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/e6a6ec66af26a4fa505279fac937f076687777e7"><code>e6a6ec6</code></a> <code>chore: upgrade to jest 23 (#507)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/f05ada6c8f5190999df1ac036fcc647dc9ca624e"><code>f05ada6</code></a> <code>docs: Add an example for type checking with flow (#502)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/bcd0af4467a6da98ab4f115f5a0b987030e7c93c"><code>bcd0af4</code></a> <code>docs: Add SurviveJS link</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/d782fa199855ffac533b8dc8822e01d3fee4673a"><code>d782fa1</code></a> <code>docs: Update documentation for husky 1.0 (#496)</code></li> </ul> <p>See the <a href="https://urls.greenkeeper.io/okonet/lint-staged/compare/d386c802b42f8e374090b1f9c58e4b60531d30ff...f82443c7f7b147aae11e65a797b280ce375c8515">full diff</a></p> </details> <details> <summary>FAQ and help</summary> There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new). </details> --- Your [Greenkeeper](https://greenkeeper.io) bot 🌴
## The devDependency [lint-staged](https://github.com/okonet/lint-staged) was updated from `7.3.0` to `8.0.0`. This version is **not covered** by your **current version range**. If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update. --- <details> <summary>Release Notes for v8.0.0</summary> <h1><a href="http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0" rel="nofollow">8.0.0</a> (2018-10-29)</h1> <h3>Features</h3> <ul> <li>Add support for partially staged files (<a href="http://git+https/github.com/lint-staged/lint-staged/issues/75" rel="nofollow">#75</a>) (<a href="http://git+https/github.com/okonet/lint-staged/commit/f82443c" rel="nofollow">f82443c</a>), closes <a href="http://git+https/github.com/lint-staged/lint-staged/issues/62" rel="nofollow">#62</a></li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li>Node >= 8.6 is required</li> </ul> </details> <details> <summary>Commits</summary> <p>The new version differs by 5 commits.</p> <ul> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/f82443c7f7b147aae11e65a797b280ce375c8515"><code>f82443c</code></a> <code>feat: Add support for partially staged files (#75)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/e6a6ec66af26a4fa505279fac937f076687777e7"><code>e6a6ec6</code></a> <code>chore: upgrade to jest 23 (#507)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/f05ada6c8f5190999df1ac036fcc647dc9ca624e"><code>f05ada6</code></a> <code>docs: Add an example for type checking with flow (#502)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/bcd0af4467a6da98ab4f115f5a0b987030e7c93c"><code>bcd0af4</code></a> <code>docs: Add SurviveJS link</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/d782fa199855ffac533b8dc8822e01d3fee4673a"><code>d782fa1</code></a> <code>docs: Update documentation for husky 1.0 (#496)</code></li> </ul> <p>See the <a href="https://urls.greenkeeper.io/okonet/lint-staged/compare/d386c802b42f8e374090b1f9c58e4b60531d30ff...f82443c7f7b147aae11e65a797b280ce375c8515">full diff</a></p> </details> <details> <summary>FAQ and help</summary> There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new). </details> --- Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 7.3.0 to 8.0.4. <details> <summary>Release notes</summary> *Sourced from [lint-staged's releases](https://github.com/okonet/lint-staged/releases).* > ## v8.0.4 > ## [8.0.4](http://git+https/github.com/okonet/lint-staged/compare/v8.0.3...v8.0.4) (2018-10-31) > > > ### Bug Fixes > > * **package:** update staged-git-files to version 1.1.2 ([ce434d3](http://git+https/github.com/okonet/lint-staged/commit/ce434d3)) > > ## v8.0.3 > ## [8.0.3](http://git+https/github.com/okonet/lint-staged/compare/v8.0.2...v8.0.3) (2018-10-30) > > > ### Bug Fixes > > * Allow to use lint-staged on CI ([#523](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/523)) ([225a904](http://git+https/github.com/okonet/lint-staged/commit/225a904)) > > ## v8.0.2 > ## [8.0.2](http://git+https/github.com/okonet/lint-staged/compare/v8.0.1...v8.0.2) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir in hasPartiallyStagedFiles ([#520](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/520)) ([af99172](http://git+https/github.com/okonet/lint-staged/commit/af99172)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.1 > ## [8.0.1](http://git+https/github.com/okonet/lint-staged/compare/v8.0.0...v8.0.1) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir to resolve to .git for git commands ([#518](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/518)) ([da42f8a](http://git+https/github.com/okonet/lint-staged/commit/da42f8a)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.0 > # [8.0.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0) (2018-10-29) > > > ### Features > > * Add support for partially staged files ([#75](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#62](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/62) > > > ### BREAKING CHANGES > > * Node >= 8.6 is required > > ## v7.4.0 > # [7.4.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v7.4.0) (2018-10-29) > > > ### Features ></table> ... (truncated) </details> <details> <summary>Commits</summary> - [`5e165a3`](lint-staged/lint-staged@5e165a3) Merge pull request [#513](https://github-redirect.dependabot.com/okonet/lint-staged/issues/513) from okonet/greenkeeper/staged-git-files-1.1.2 - [`07fd087`](lint-staged/lint-staged@07fd087) Merge branch 'master' into greenkeeper/staged-git-files-1.1.2 - [`00047de`](lint-staged/lint-staged@00047de) docs: fix typo ([#527](https://github-redirect.dependabot.com/okonet/lint-staged/issues/527)) - [`bedba5a`](lint-staged/lint-staged@bedba5a) refactor: Use object spread ([#524](https://github-redirect.dependabot.com/okonet/lint-staged/issues/524)) - [`225a904`](lint-staged/lint-staged@225a904) fix: Allow to use lint-staged on CI ([#523](https://github-redirect.dependabot.com/okonet/lint-staged/issues/523)) - [`af99172`](lint-staged/lint-staged@af99172) fix(git): Use resolveGitDir in hasPartiallyStagedFiles ([#520](https://github-redirect.dependabot.com/okonet/lint-staged/issues/520)) - [`da42f8a`](lint-staged/lint-staged@da42f8a) fix(git): Use resolveGitDir to resolve to .git for git commands ([#518](https://github-redirect.dependabot.com/okonet/lint-staged/issues/518)) - [`c4e8a2d`](lint-staged/lint-staged@c4e8a2d) chore(package): update lockfile yarn.lock - [`ce434d3`](lint-staged/lint-staged@ce434d3) fix(package): update staged-git-files to version 1.1.2 - [`592486f`](lint-staged/lint-staged@592486f) docs: Update readme to include info about partially staged files support - Additional commits viewable in [compare view](lint-staged/lint-staged@v7.3.0...v8.0.4) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.3.0&new-version=8.0.4)](https://dependabot.com/compatibility-score.html?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.3.0&new-version=8.0.4) 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`. --- <details> <summary>Dependabot commands and options</summary> <br /> 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 cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - 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) Finally, you can contact us by mentioning @dependabot. </details>
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 7.3.0 to 8.0.5. <details> <summary>Release notes</summary> *Sourced from [lint-staged's releases](https://github.com/okonet/lint-staged/releases).* > ## v8.0.5 > ## [8.0.5](http://git+https/github.com/okonet/lint-staged/compare/v8.0.4...v8.0.5) (2018-11-17) > > > ### Bug Fixes > > * Use listr-update-renderer from npm ([#542](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/542)) ([503110d](http://git+https/github.com/okonet/lint-staged/commit/503110d)), closes [#533](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/533) > > ## v8.0.4 > ## [8.0.4](http://git+https/github.com/okonet/lint-staged/compare/v8.0.3...v8.0.4) (2018-10-31) > > > ### Bug Fixes > > * **package:** update staged-git-files to version 1.1.2 ([ce434d3](http://git+https/github.com/okonet/lint-staged/commit/ce434d3)) > > ## v8.0.3 > ## [8.0.3](http://git+https/github.com/okonet/lint-staged/compare/v8.0.2...v8.0.3) (2018-10-30) > > > ### Bug Fixes > > * Allow to use lint-staged on CI ([#523](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/523)) ([225a904](http://git+https/github.com/okonet/lint-staged/commit/225a904)) > > ## v8.0.2 > ## [8.0.2](http://git+https/github.com/okonet/lint-staged/compare/v8.0.1...v8.0.2) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir in hasPartiallyStagedFiles ([#520](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/520)) ([af99172](http://git+https/github.com/okonet/lint-staged/commit/af99172)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.1 > ## [8.0.1](http://git+https/github.com/okonet/lint-staged/compare/v8.0.0...v8.0.1) (2018-10-29) > > > ### Bug Fixes > > * **git:** Use resolveGitDir to resolve to .git for git commands ([#518](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/518)) ([da42f8a](http://git+https/github.com/okonet/lint-staged/commit/da42f8a)), closes [#514](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/514) > > ## v8.0.0 > # [8.0.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0) (2018-10-29) > > > ### Features > > * Add support for partially staged files ([#75](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#62](http://git+https/github-redirect.dependabot.com/lint-staged/lint-staged/issues/62) > > > ### BREAKING CHANGES ></table> ... (truncated) </details> <details> <summary>Commits</summary> - [`503110d`](lint-staged/lint-staged@503110d) fix: Use listr-update-renderer from npm ([#542](https://github-redirect.dependabot.com/okonet/lint-staged/issues/542)) - [`6f6c08d`](lint-staged/lint-staged@6f6c08d) docs(readme): refine prettier examples ([#541](https://github-redirect.dependabot.com/okonet/lint-staged/issues/541)) - [`5e165a3`](lint-staged/lint-staged@5e165a3) Merge pull request [#513](https://github-redirect.dependabot.com/okonet/lint-staged/issues/513) from okonet/greenkeeper/staged-git-files-1.1.2 - [`07fd087`](lint-staged/lint-staged@07fd087) Merge branch 'master' into greenkeeper/staged-git-files-1.1.2 - [`00047de`](lint-staged/lint-staged@00047de) docs: fix typo ([#527](https://github-redirect.dependabot.com/okonet/lint-staged/issues/527)) - [`bedba5a`](lint-staged/lint-staged@bedba5a) refactor: Use object spread ([#524](https://github-redirect.dependabot.com/okonet/lint-staged/issues/524)) - [`225a904`](lint-staged/lint-staged@225a904) fix: Allow to use lint-staged on CI ([#523](https://github-redirect.dependabot.com/okonet/lint-staged/issues/523)) - [`af99172`](lint-staged/lint-staged@af99172) fix(git): Use resolveGitDir in hasPartiallyStagedFiles ([#520](https://github-redirect.dependabot.com/okonet/lint-staged/issues/520)) - [`da42f8a`](lint-staged/lint-staged@da42f8a) fix(git): Use resolveGitDir to resolve to .git for git commands ([#518](https://github-redirect.dependabot.com/okonet/lint-staged/issues/518)) - [`c4e8a2d`](lint-staged/lint-staged@c4e8a2d) chore(package): update lockfile yarn.lock - Additional commits viewable in [compare view](lint-staged/lint-staged@v7.3.0...v8.0.5) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.3.0&new-version=8.0.5)](https://dependabot.com/compatibility-score.html?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=7.3.0&new-version=8.0.5) 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`. --- **Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit. You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com). <details> <summary>Dependabot commands and options</summary> <br /> 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 cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - 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) Finally, you can contact us by mentioning @dependabot. </details>
## The devDependency [lint-staged](https://github.com/okonet/lint-staged) was updated from `7.3.0` to `8.0.0`. This version is **not covered** by your **current version range**. If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update. --- <details> <summary>Release Notes for v8.0.0</summary> <h1><a href="http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0" rel="nofollow">8.0.0</a> (2018-10-29)</h1> <h3>Features</h3> <ul> <li>Add support for partially staged files (<a href="http://git+https/github.com/lint-staged/lint-staged/issues/75" rel="nofollow">#75</a>) (<a href="http://git+https/github.com/okonet/lint-staged/commit/f82443c" rel="nofollow">f82443c</a>), closes <a href="http://git+https/github.com/lint-staged/lint-staged/issues/62" rel="nofollow">#62</a></li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li>Node >= 8.6 is required</li> </ul> </details> <details> <summary>Commits</summary> <p>The new version differs by 5 commits.</p> <ul> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/f82443c7f7b147aae11e65a797b280ce375c8515"><code>f82443c</code></a> <code>feat: Add support for partially staged files (#75)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/e6a6ec66af26a4fa505279fac937f076687777e7"><code>e6a6ec6</code></a> <code>chore: upgrade to jest 23 (#507)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/f05ada6c8f5190999df1ac036fcc647dc9ca624e"><code>f05ada6</code></a> <code>docs: Add an example for type checking with flow (#502)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/bcd0af4467a6da98ab4f115f5a0b987030e7c93c"><code>bcd0af4</code></a> <code>docs: Add SurviveJS link</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/d782fa199855ffac533b8dc8822e01d3fee4673a"><code>d782fa1</code></a> <code>docs: Update documentation for husky 1.0 (#496)</code></li> </ul> <p>See the <a href="https://urls.greenkeeper.io/okonet/lint-staged/compare/d386c802b42f8e374090b1f9c58e4b60531d30ff...f82443c7f7b147aae11e65a797b280ce375c8515">full diff</a></p> </details> <details> <summary>FAQ and help</summary> There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new). </details> --- Your [Greenkeeper](https://greenkeeper.io) bot 🌴
This PR contains the following updates: | Package | Type | Update | Change | References | |---|---|---|---|---| | lint-staged | devDependencies | major | `7.3.0` -> `8.1.0` | [source](https://renovatebot.com/gh/okonet/lint-staged) | --- ### Release Notes <details> <summary>okonet/lint-staged</summary> ### [`v8.1.0`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.1.0) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.5...v8.1.0) ### [8.1.0](http://git+https/github.com/okonet/lint-staged/compare/v8.0.5...v8.1.0) (2018-11-21) ##### Features - Add `relative` option to allow passing relative paths to linters ([#​534](http://git+https/github.com/lint-staged/lint-staged/issues/534)) ([fcb774b](http://git+https/github.com/okonet/lint-staged/commit/fcb774b)) ### [`v8.0.5`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.5) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.4...v8.0.5) #### [8.0.5](http://git+https/github.com/okonet/lint-staged/compare/v8.0.4...v8.0.5) (2018-11-17) ##### Bug Fixes - Use listr-update-renderer from npm ([#​542](http://git+https/github.com/lint-staged/lint-staged/issues/542)) ([503110d](http://git+https/github.com/okonet/lint-staged/commit/503110d)), closes [#​533](http://git+https/github.com/lint-staged/lint-staged/issues/533) ### [`v8.0.4`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.4) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.3...v8.0.4) #### [8.0.4](http://git+https/github.com/okonet/lint-staged/compare/v8.0.3...v8.0.4) (2018-10-31) ##### Bug Fixes - **package:** update staged-git-files to version 1.1.2 ([ce434d3](http://git+https/github.com/okonet/lint-staged/commit/ce434d3)) ### [`v8.0.3`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.3) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.2...v8.0.3) #### [8.0.3](http://git+https/github.com/okonet/lint-staged/compare/v8.0.2...v8.0.3) (2018-10-30) ##### Bug Fixes - Allow to use lint-staged on CI ([#​523](http://git+https/github.com/lint-staged/lint-staged/issues/523)) ([225a904](http://git+https/github.com/okonet/lint-staged/commit/225a904)) ### [`v8.0.2`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.2) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.1...v8.0.2) #### [8.0.2](http://git+https/github.com/okonet/lint-staged/compare/v8.0.1...v8.0.2) (2018-10-29) ##### Bug Fixes - **git:** Use resolveGitDir in hasPartiallyStagedFiles ([#​520](http://git+https/github.com/lint-staged/lint-staged/issues/520)) ([af99172](http://git+https/github.com/okonet/lint-staged/commit/af99172)), closes [#​514](http://git+https/github.com/lint-staged/lint-staged/issues/514) ### [`v8.0.1`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.1) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.0...v8.0.1) #### [8.0.1](http://git+https/github.com/okonet/lint-staged/compare/v8.0.0...v8.0.1) (2018-10-29) ##### Bug Fixes - **git:** Use resolveGitDir to resolve to .git for git commands ([#​518](http://git+https/github.com/lint-staged/lint-staged/issues/518)) ([da42f8a](http://git+https/github.com/okonet/lint-staged/commit/da42f8a)), closes [#​514](http://git+https/github.com/lint-staged/lint-staged/issues/514) ### [`v8.0.0`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.0) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v7.3.0...v8.0.0) ### [8.0.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0) (2018-10-29) ##### Features - Add support for partially staged files ([#​75](http://git+https/github.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#​62](http://git+https/github.com/lint-staged/lint-staged/issues/62) ##### BREAKING CHANGES - Node >= 8.6 is required </details> --- ### Renovate configuration :date: **Schedule**: "after 6pm every weekday,before 5am every weekday" in timezone America/Los_Angeles. :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`". :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-server).
This PR contains the following updates: | Package | Type | Update | Change | References | |---|---|---|---|---| | lint-staged | devDependencies | major | `7.3.0` -> `8.1.0` | [source](https://renovatebot.com/gh/okonet/lint-staged) | --- ### Release Notes <details> <summary>okonet/lint-staged</summary> ### [`v8.1.0`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.1.0) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.5...v8.1.0) ### [8.1.0](http://git+https/github.com/okonet/lint-staged/compare/v8.0.5...v8.1.0) (2018-11-21) ##### Features - Add `relative` option to allow passing relative paths to linters ([#​534](http://git+https/github.com/lint-staged/lint-staged/issues/534)) ([fcb774b](http://git+https/github.com/okonet/lint-staged/commit/fcb774b)) ### [`v8.0.5`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.5) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.4...v8.0.5) #### [8.0.5](http://git+https/github.com/okonet/lint-staged/compare/v8.0.4...v8.0.5) (2018-11-17) ##### Bug Fixes - Use listr-update-renderer from npm ([#​542](http://git+https/github.com/lint-staged/lint-staged/issues/542)) ([503110d](http://git+https/github.com/okonet/lint-staged/commit/503110d)), closes [#​533](http://git+https/github.com/lint-staged/lint-staged/issues/533) ### [`v8.0.4`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.4) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.3...v8.0.4) #### [8.0.4](http://git+https/github.com/okonet/lint-staged/compare/v8.0.3...v8.0.4) (2018-10-31) ##### Bug Fixes - **package:** update staged-git-files to version 1.1.2 ([ce434d3](http://git+https/github.com/okonet/lint-staged/commit/ce434d3)) ### [`v8.0.3`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.3) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.2...v8.0.3) #### [8.0.3](http://git+https/github.com/okonet/lint-staged/compare/v8.0.2...v8.0.3) (2018-10-30) ##### Bug Fixes - Allow to use lint-staged on CI ([#​523](http://git+https/github.com/lint-staged/lint-staged/issues/523)) ([225a904](http://git+https/github.com/okonet/lint-staged/commit/225a904)) ### [`v8.0.2`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.2) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.1...v8.0.2) #### [8.0.2](http://git+https/github.com/okonet/lint-staged/compare/v8.0.1...v8.0.2) (2018-10-29) ##### Bug Fixes - **git:** Use resolveGitDir in hasPartiallyStagedFiles ([#​520](http://git+https/github.com/lint-staged/lint-staged/issues/520)) ([af99172](http://git+https/github.com/okonet/lint-staged/commit/af99172)), closes [#​514](http://git+https/github.com/lint-staged/lint-staged/issues/514) ### [`v8.0.1`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.1) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v8.0.0...v8.0.1) #### [8.0.1](http://git+https/github.com/okonet/lint-staged/compare/v8.0.0...v8.0.1) (2018-10-29) ##### Bug Fixes - **git:** Use resolveGitDir to resolve to .git for git commands ([#​518](http://git+https/github.com/lint-staged/lint-staged/issues/518)) ([da42f8a](http://git+https/github.com/okonet/lint-staged/commit/da42f8a)), closes [#​514](http://git+https/github.com/lint-staged/lint-staged/issues/514) ### [`v8.0.0`](https://renovatebot.com/gh/okonet/lint-staged/releases/v8.0.0) [Compare Source](https://renovatebot.com/gh/okonet/lint-staged/compare/v7.3.0...v8.0.0) ### [8.0.0](http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0) (2018-10-29) ##### Features - Add support for partially staged files ([#​75](http://git+https/github.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#​62](http://git+https/github.com/lint-staged/lint-staged/issues/62) ##### BREAKING CHANGES - Node >= 8.6 is required </details> --- ### Renovate configuration :date: **Schedule**: "after 6pm every weekday,before 5am every weekday" in timezone America/Los_Angeles. :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`". :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-tooling).
This works really well, really appreciate the hard work! I'm curious if the note in the README about "Automatically fix code" is still relevant:
|
@alexilyaev good catch! Mind PRing the fix? |
just a heads up since it came up in pre-commit -- I suspect you'll have issues using not sure if it breaks lint-staged, I didn't try |
We are also not using git stash. I can’t try since I lack time. If someone can create a test case that would be great. |
- lint-staged and prettier do not handle partially staged files properly (see lint-staged/lint-staged#62) instead, the whole file gets readded through git add in the hook this is surprising and unexpected behaviour pretty-quick --staged should not re-stage partially staged files and should exit with a non-zero errorcode to let the user know. - eslint does more than just formatting and can be used together with prettier
## The devDependency [lint-staged](https://github.com/okonet/lint-staged) was updated from `7.3.0` to `8.0.0`. This version is **not covered** by your **current version range**. If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update. --- <details> <summary>Release Notes for v8.0.0</summary> <h1><a href="http://git+https/github.com/okonet/lint-staged/compare/v7.3.0...v8.0.0" rel="nofollow">8.0.0</a> (2018-10-29)</h1> <h3>Features</h3> <ul> <li>Add support for partially staged files (<a href="http://git+https/github.com/lint-staged/lint-staged/issues/75" rel="nofollow">#75</a>) (<a href="http://git+https/github.com/okonet/lint-staged/commit/f82443c" rel="nofollow">f82443c</a>), closes <a href="http://git+https/github.com/lint-staged/lint-staged/issues/62" rel="nofollow">#62</a></li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li>Node >= 8.6 is required</li> </ul> </details> <details> <summary>Commits</summary> <p>The new version differs by 5 commits.</p> <ul> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/f82443c7f7b147aae11e65a797b280ce375c8515"><code>f82443c</code></a> <code>feat: Add support for partially staged files (#75)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/e6a6ec66af26a4fa505279fac937f076687777e7"><code>e6a6ec6</code></a> <code>chore: upgrade to jest 23 (#507)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/f05ada6c8f5190999df1ac036fcc647dc9ca624e"><code>f05ada6</code></a> <code>docs: Add an example for type checking with flow (#502)</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/bcd0af4467a6da98ab4f115f5a0b987030e7c93c"><code>bcd0af4</code></a> <code>docs: Add SurviveJS link</code></li> <li><a href="https://urls.greenkeeper.io/okonet/lint-staged/commit/d782fa199855ffac533b8dc8822e01d3fee4673a"><code>d782fa1</code></a> <code>docs: Update documentation for husky 1.0 (#496)</code></li> </ul> <p>See the <a href="https://urls.greenkeeper.io/okonet/lint-staged/compare/d386c802b42f8e374090b1f9c58e4b60531d30ff...f82443c7f7b147aae11e65a797b280ce375c8515">full diff</a></p> </details> <details> <summary>FAQ and help</summary> There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new). </details> --- Your [Greenkeeper](https://greenkeeper.io) bot 🌴
git hooks will lint only staged lines dont use with `--fix` as it can create conflicts (see lint-staged/lint-staged#62) Should provide a better DX: one may now commit a file with non staged lines without having lint complain about unstaged lines
See react-boilerplate/react-boilerplate#1064 (comment) for description
The text was updated successfully, but these errors were encountered: