add postcommit hook for fixing lint-staged
This commit is contained in:
+2
-1
@@ -8,7 +8,8 @@
|
||||
"test": "jest",
|
||||
"test:coverage": "jest --coverage",
|
||||
"prettier": "prettier --write \"./**/*.{js,jsx,scss}\"",
|
||||
"precommit": "./node_modules/.bin/lint-staged"
|
||||
"precommit": "./node_modules/.bin/lint-staged",
|
||||
"postcommit": "git update-index --again"
|
||||
},
|
||||
"lint-staged": {
|
||||
"linters": {
|
||||
|
||||
Reference in New Issue
Block a user