Skip to content

Commit

Permalink
chore: remove git add from lint-staged tasks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
starpit committed Feb 22, 2023
1 parent ebd8ac8 commit 3f1aa91
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,10 @@
},
"lint-staged": {
"**/*.{scss,css,html,js,json,md,ts,tsx}": [
"prettier --write",
"git add"
"prettier --write"
],
"**/*.{js,ts,tsx}": [
"eslint --fix",
"git add"
"eslint --fix"
]
},
"repository": {
Expand Down

0 comments on commit 3f1aa91

Please sign in to comment.