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

@ -30,21 +30,10 @@
}
},
"lint-staged": {
"*.md": [
"prettier --write"
],
"*.{ts,tsx,js,vue,less}": [
"prettier --write",
"git add"
],
"*.{ts,tsx,js,vue}": [
"eslint --fix",
"git add"
],
"*.{vue,css,less}": [
"stylelint --fix",
"git add"
]
"*.md": "prettier --write",
"*.{ts,tsx,js,vue,less}": "prettier --write",
"*.{ts,tsx,js,vue}": "eslint --fix",
"*.{vue,css,less}": "stylelint --fix"
},
"repository": {
"type": "git",

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",