chore: simplify lint-staged config

This commit is contained in:
chenjiahan
2020-04-21 22:30:29 +08:00
parent ce0e04c952
commit 26449eb1ea
2 changed files with 6 additions and 23 deletions

View File

@@ -26,14 +26,8 @@
}
},
"lint-staged": {
"*.{ts,tsx,js,jsx,vue}": [
"eslint --fix",
"git add"
],
"*.{vue,css,less,scss}": [
"stylelint --fix",
"git add"
]
"*.{ts,tsx,js,jsx,vue}": "eslint --fix",
"*.{vue,css,less,scss}": "stylelint --fix"
},
"peerDependencies": {
"vue": "^2.6.11",