From 2560a51f7d97eba83cab7c753e136bc7612f92d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Einar=20L=C3=B6ve?= Date: Mon, 31 Jul 2017 15:23:12 +0200 Subject: [PATCH] Update README.md to add a notice about using lint-staged (#2565) * Update README.md to add a notice about a limitation using lint-staged The lint-staged example under pre-commit hooks has a limitation where if you use the [Github Desktop](https://desktop.github.com/) app to commit specific lines, this approach will stage the whole file after regardless. See this [issue](https://github.com/okonet/lint-staged/issues/62) for more info. * Add back removed empty line * Remove Github Desktop app reference --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bf186accf..35433c8e1 100644 --- a/README.md +++ b/README.md @@ -342,6 +342,7 @@ and add this config to your `package.json`: } } ``` +There is a limitation where if you stage specific lines this approach will stage the whole file after regardless. See this [issue](https://github.com/okonet/lint-staged/issues/62) for more info. See https://github.com/okonet/lint-staged#configuration for more details about how you can configure lint-staged.