This commit is contained in:
yuanzbz 2023-12-22 15:46:59 +08:00
parent bab5825081
commit 8113b0b11e
3 changed files with 1492 additions and 20 deletions

4
.husky/pre-commit Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged

View File

@ -13,7 +13,8 @@
"build:ts": "vue-tsc --noEmit --skipLibCheck && vite build",
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx",
"lint:fix": "eslint . --ext .vue,.js,.ts,.jsx,.tsx --fix",
"lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\""
"lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
"prepare": "husky install"
},
"dependencies": {
"@better-scroll/core": "^2.4.2",
@ -74,6 +75,9 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.3.0",
"fast-glob": "^3.2.11",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"mrm": "^4.1.22",
"prettier": "^2.7.1",
"typescript": "^4.6.4",
"unplugin-auto-import": "^0.10.3",
@ -90,5 +94,8 @@
"commitizen": {
"path": "node_modules/cz-git"
}
},
"lint-staged": {
"*.{vue,js,ts,jsx,tsx}": "eslint --cache --fix"
}
}

File diff suppressed because it is too large Load Diff