mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-08 12:57:11 +08:00
feat:git提交钩子(prettier格式化)
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
"preview": "vite preview --port 5050",
|
||||
"typecheck": "vue-tsc --noEmit",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint src --fix"
|
||||
"lint:fix": "eslint src --fix",
|
||||
"lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@amap/amap-jsapi-loader": "^1.0.1",
|
||||
@@ -69,6 +70,7 @@
|
||||
"less-loader": "^11.0.0",
|
||||
"lint-staged": "^15.2.2",
|
||||
"picocolors": "^1.0.0",
|
||||
"prettier": "3.3.0",
|
||||
"sass": "^1.62.1",
|
||||
"sass-loader": "^13.2.2",
|
||||
"simple-git-hooks": "^2.11.1",
|
||||
@@ -85,6 +87,9 @@
|
||||
"pre-commit": "npm lint-staged"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*": "eslint --fix"
|
||||
"*": [
|
||||
"eslint --fix",
|
||||
"prettier --write 'src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}'"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user