From 6ba8d1056c9e9e88597eebfdd73d46b6cbb31882 Mon Sep 17 00:00:00 2001 From: Kanitkorn Sujautra Date: Thu, 30 Jan 2020 02:00:48 +0900 Subject: [PATCH] Update doc according to lint-staged v10 According to lint-staged v10 changelog (https://github.com/okonet/lint-staged#v10): > From `v10.0.0` onwards any new modifications to originally staged files will be automatically added to the commit. If your task previously contained a `git add` step, please remove this. The automatic behaviour ensures there are less race-conditions, since trying to run multiple git operations at the same time usually results in an error. There's no need to specify `git add` on the config anymore. So it should be removed from the doc as well. --- docusaurus/docs/setting-up-your-editor.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docusaurus/docs/setting-up-your-editor.md b/docusaurus/docs/setting-up-your-editor.md index 95dbaa598b6..a6d00a3c6e9 100644 --- a/docusaurus/docs/setting-up-your-editor.md +++ b/docusaurus/docs/setting-up-your-editor.md @@ -166,8 +166,7 @@ Next we add a 'lint-staged' field to the `package.json`, for example: }, + "lint-staged": { + "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ -+ "prettier --write", -+ "git add" ++ "prettier --write" + ] + }, "scripts": {