chore: simplify lint-staged config
This commit is contained in:
+4
-15
@@ -30,21 +30,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.md": [
|
"*.md": "prettier --write",
|
||||||
"prettier --write"
|
"*.{ts,tsx,js,vue,less}": "prettier --write",
|
||||||
],
|
"*.{ts,tsx,js,vue}": "eslint --fix",
|
||||||
"*.{ts,tsx,js,vue,less}": [
|
"*.{vue,css,less}": "stylelint --fix"
|
||||||
"prettier --write",
|
|
||||||
"git add"
|
|
||||||
],
|
|
||||||
"*.{ts,tsx,js,vue}": [
|
|
||||||
"eslint --fix",
|
|
||||||
"git add"
|
|
||||||
],
|
|
||||||
"*.{vue,css,less}": [
|
|
||||||
"stylelint --fix",
|
|
||||||
"git add"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -26,14 +26,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{ts,tsx,js,jsx,vue}": [
|
"*.{ts,tsx,js,jsx,vue}": "eslint --fix",
|
||||||
"eslint --fix",
|
"*.{vue,css,less,scss}": "stylelint --fix"
|
||||||
"git add"
|
|
||||||
],
|
|
||||||
"*.{vue,css,less,scss}": [
|
|
||||||
"stylelint --fix",
|
|
||||||
"git add"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
|
|||||||
Reference in New Issue
Block a user