Skip to content
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

Closed
sedubois opened this issue Oct 6, 2016 · 151 comments
Closed

Add better support for partially staged files #62

sedubois opened this issue Oct 6, 2016 · 151 comments

Comments

@sedubois
Copy link

sedubois commented Oct 6, 2016

See react-boilerplate/react-boilerplate#1064 (comment) for description

@okonet
Copy link
Collaborator

okonet commented Oct 6, 2016

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.

@sedubois
Copy link
Author

sedubois commented Oct 6, 2016

Sure 😊 I'm not familiar with the mechanism, so I don't have a solution to propose right now.

@sedubois
Copy link
Author

sedubois commented Oct 6, 2016

Why not simply temporarily doing git stash -k?

@okonet
Copy link
Collaborator

okonet commented Oct 6, 2016

Can you elaborate on ↑ since I'm not familiar with how it works.

This sounds interesting and is worth trying. Thanks for pointing it out.

@okonet okonet changed the title Lint-staged uses changes outside of the index when file is partially staged Add better support for partially staged files Oct 6, 2016
okonet added a commit that referenced this issue Oct 7, 2016
@okonet okonet mentioned this issue Oct 7, 2016
Merged
okonet added a commit that referenced this issue Oct 20, 2016
@okonet
Copy link
Collaborator

okonet commented Dec 2, 2016

@sedubois I'm a bit stuck with #75. Do you have ideas how to solve it probably?

@sedubois
Copy link
Author

sedubois commented Dec 2, 2016

Hmm. Maybe first concentrate on the simple case when linter doesn't modify the working copy, and address the case of eslint --fix separately?

Also you proposed in PR to git stash pop after the commit, but conflicts would also happen in that case, no? Sounds like the conflict is unavoidable and the user should then be given the opportunity to resolve it?

@okonet
Copy link
Collaborator

okonet commented Dec 2, 2016

Also you proposed in PR to git stash pop after the commit, but conflicts would also happen in that case, no?

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.

address the case of eslint --fix separately

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).

@okonet
Copy link
Collaborator

okonet commented Feb 19, 2017

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.

@sedubois
Copy link
Author

sedubois commented Feb 19, 2017

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).

@okonet
Copy link
Collaborator

okonet commented Feb 20, 2017

These aren't solutions but workaround of the problem :(

To add git stash you don't need to change anything in the library itself. You can just add those to the config:

{
  "*.js": ["git stash -k", "eslint", "git stash pop"]
}

@sedubois
Copy link
Author

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?

@okonet
Copy link
Collaborator

okonet commented Feb 20, 2017

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 --fix case is just too important to me.

@sedubois
Copy link
Author

Actually, didn't manage to get this working:

  Running tasks for *.js
       or: git stash clear
    git stash -kor: 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: 

@okonet
Copy link
Collaborator

okonet commented Feb 21, 2017

Hmm, it's probably since I'm always passing paths to the command 🤔

@kmiyashiro
Copy link

The readme mentions that as of 3.1, lint-staged stashes un-staged changes. This is apparently not the case?

@okonet
Copy link
Collaborator

okonet commented Mar 9, 2017

@kmiyashiro yes, it seems it slipped into the Readme. I'll remove it.

@okonet okonet mentioned this issue Mar 15, 2017
4 tasks
@leonaves
Copy link

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
Copy link
Collaborator

okonet commented Mar 15, 2017

@leonaves that's awesome and I'm gonna try it out. Did you see @75? This is pretty much the same what I was trying to implement but I could not come up with the right command to stash pop.

Also, how does this work in case of aborted commit?

Does it also works with updating the code (eslint --fix)?

@leonaves
Copy link

leonaves commented Mar 16, 2017

@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 eslint --fix and git add . as well, what happens is this:

  • The unstaged hunk is stashed, leaving us with this again:
export default function() {
  return "My hello world module";
}
  • eslint --fix automaticaly fixes the double string issue, leaving us with this:
export default function() {
  return 'My hello world module';
}
  • git add . then stages that change as well, so that the above fixed file in its entirety is in the index.
  • We stash the current index, leaving our working tree clean.
  • We apply the previously unstaged changes from the stash stack, giving us this unstaged:
export default function() {
  console.log("I don't want this committed just yet");
  return "My hello world module";
}
  • We read from the top of the stash into the index, giving us this in the index:
export default function() {
  return 'My hello world module';
}
  • That will be committed, which is correct, however once it's committed, we will have a dirty working tree with the following:
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 console.log line, which to be honest, would probably be acceptable to pretty much everyone, as long as that line is not added to the index. But you would have to do some inefficient hoop jumping to do so:

  • Before stashing anything, apply eslint --fix and swallow the exit code (we don't want this aborting the commit if it fails as unstaged hunks might have unfixable linting errors that aren't the problem of the current commit).
  • Stash the unstaged changes (this would stash all the fixes just applied to the working tree).
  • Run eslint --fix again, this time not swallowing the exit code (unfixable errors in the index should abort the commit).
  • Stash the entire working tree + index.
  • Apply the first stash onto the working tree with git stash apply @{1}.
  • Read the second stash into the index with git read-tree stash.
  • Drop the last stash on the stash stack.

Now your working tree should contain all of the same fixes as your index, as we applied eslint --fix before stashing the first time, and it will also have some fixes of it's own, albeit unstaged. These can then be either checked out or applied to the next commit. The main downside I see to this is that we are running eslint twice, but so far I can't see another way to do it, again, unless you apply the stashes to the working tree and have the user deal with conflicts.

Anyway, sorry this turned out so long, but hope it helps.

@AndersDJohnson
Copy link

Also consider adding the the -u flag to git stash save -k so we also stash any untracked files such that they don't cause any lint failures unrelated to the staged files. Refer to: https://git-scm.com/docs/git-stash#git-stash-save-p--patch-k--no-keep-index-u--include-untracked-a--all-q--quietltmessagegt.

@okonet
Copy link
Collaborator

okonet commented Mar 19, 2017

How would they if we only lint staged files?

@AndersDJohnson
Copy link

@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.

kornicameister pushed a commit to kornicameister/korni that referenced this issue Oct 29, 2018
## 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>
timbru31 pushed a commit to timbru31/quickjira that referenced this issue Oct 30, 2018
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>
lipis pushed a commit to lipis/prettier-setup that referenced this issue Oct 31, 2018
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>
lipis pushed a commit to gae-init/gae-init-docs that referenced this issue Oct 31, 2018
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>
kaisermann pushed a commit to stone-payments/pos-mamba-app-template that referenced this issue Oct 31, 2018
## 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 &gt;= 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 🌴
nfantone pushed a commit to nfantone/amqp-uri that referenced this issue Oct 31, 2018
## 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 &gt;= 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 🌴
WilcoFiers pushed a commit to dequelabs/axe-webdriverjs that referenced this issue Nov 1, 2018
## 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 &gt;= 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 🌴
u3u pushed a commit to u3u/prettier-eslint-check that referenced this issue Nov 9, 2018
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>
fmiras pushed a commit to decentraland/cli that referenced this issue Nov 20, 2018
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>
alexjoverm pushed a commit to alexjoverm/typescript-library-starter that referenced this issue Nov 21, 2018
## 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 &gt;= 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 🌴
abernix pushed a commit to apollographql/apollo-server that referenced this issue Nov 22, 2018
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 ([#&#8203;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 ([#&#8203;542](http://git+https/github.com/lint-staged/lint-staged/issues/542)) ([503110d](http://git+https/github.com/okonet/lint-staged/commit/503110d)), closes [#&#8203;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 ([#&#8203;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 ([#&#8203;520](http://git+https/github.com/lint-staged/lint-staged/issues/520)) ([af99172](http://git+https/github.com/okonet/lint-staged/commit/af99172)), closes [#&#8203;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 ([#&#8203;518](http://git+https/github.com/lint-staged/lint-staged/issues/518)) ([da42f8a](http://git+https/github.com/okonet/lint-staged/commit/da42f8a)), closes [#&#8203;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 ([#&#8203;75](http://git+https/github.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#&#8203;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).
abernix pushed a commit to apollographql/apollo-tooling that referenced this issue Dec 3, 2018
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 ([#&#8203;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 ([#&#8203;542](http://git+https/github.com/lint-staged/lint-staged/issues/542)) ([503110d](http://git+https/github.com/okonet/lint-staged/commit/503110d)), closes [#&#8203;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 ([#&#8203;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 ([#&#8203;520](http://git+https/github.com/lint-staged/lint-staged/issues/520)) ([af99172](http://git+https/github.com/okonet/lint-staged/commit/af99172)), closes [#&#8203;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 ([#&#8203;518](http://git+https/github.com/lint-staged/lint-staged/issues/518)) ([da42f8a](http://git+https/github.com/okonet/lint-staged/commit/da42f8a)), closes [#&#8203;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 ([#&#8203;75](http://git+https/github.com/lint-staged/lint-staged/issues/75)) ([f82443c](http://git+https/github.com/okonet/lint-staged/commit/f82443c)), closes [#&#8203;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).
@alexilyaev
Copy link
Contributor

This works really well, really appreciate the hard work!
Tested partial commits (hunks) and also when a linter fails everything is restored properly and not lost.

I'm curious if the note in the README about "Automatically fix code" is still relevant:

Automatically fix code style with --fix and add to commit

{
  "*.js": ["eslint --fix", "git add"]
}

This will run eslint --fix and automatically add changes to the commit. Please note, that it doesn’t work well with committing hunks (git add -p).

@okonet
Copy link
Collaborator

okonet commented Dec 6, 2018

@alexilyaev good catch! Mind PRing the fix?

@alexilyaev
Copy link
Contributor

@okonet #553

@asottile
Copy link

just a heads up since it came up in pre-commit -- I suspect you'll have issues using git stash with git add --intent-to-add files: https://marc.info/?l=git&m=154654843113132&w=2 (pre-commit doesn't use git stash)

not sure if it breaks lint-staged, I didn't try

@Mouvedia
Copy link

@asottile thanks for the heads-up. @okonet could you try it out?

@okonet
Copy link
Collaborator

okonet commented Jan 11, 2019

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.

omer-ilhan added a commit to ID-Chain/IEA-API that referenced this issue Jan 17, 2019
- 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
monkey65535 pushed a commit to monkey65535/TS-for-Axios that referenced this issue May 27, 2020
## 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 &gt;= 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 🌴
jum-s added a commit to inventaire/inventaire-client that referenced this issue Jan 26, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests