Browse Source

remove git add for lint-staged hook (#5911)

pull/5917/head
Amumu 6 years ago
committed by 陈帅
parent
commit
124ababf54
  1. 3
      package.json

3
package.json

@ -46,8 +46,7 @@
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write",
"git add"
"prettier --write"
],
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js"
},

Loading…
Cancel
Save