|
13 | 13 | "build-only": "vite build",
|
14 | 14 | "type-check": "vue-tsc --noEmit",
|
15 | 15 | "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
16 |
| - "format": "prettier --write src/" |
| 16 | + "link:format": "prettier --write src/", |
| 17 | + "link:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js", |
| 18 | + "lint:style": "stylelint --fix \"src/**/*.{css,scss}\"", |
| 19 | + "prepare": "husky install" |
17 | 20 | },
|
18 | 21 | "dependencies": {
|
19 | 22 | "@alova/scene-vue": "^1.0.4",
|
|
30 | 33 | "vue-router": "^4.1.6"
|
31 | 34 | },
|
32 | 35 | "devDependencies": {
|
| 36 | + "@commitlint/cli": "^17.6.5", |
| 37 | + "@commitlint/config-conventional": "^17.6.5", |
33 | 38 | "@iconify-json/ep": "^1.1.10",
|
34 | 39 | "@rushstack/eslint-patch": "^1.2.0",
|
35 | 40 | "@types/dompurify": "^3.0.2",
|
|
42 | 47 | "@vue/tsconfig": "^0.1.3",
|
43 | 48 | "eslint": "^8.40.0",
|
44 | 49 | "eslint-plugin-vue": "^9.11.0",
|
| 50 | + "husky": "^8.0.3", |
| 51 | + "lint-staged": "^13.2.2", |
45 | 52 | "npm-run-all": "^4.1.5",
|
| 53 | + "postcss-html": "^1.5.0", |
| 54 | + "postcss-scss": "^4.0.6", |
46 | 55 | "prettier": "^2.8.8",
|
47 | 56 | "sass": "^1.62.1",
|
| 57 | + "stylelint": "^15.6.3", |
| 58 | + "stylelint-config-prettier": "^9.0.5", |
| 59 | + "stylelint-config-recess-order": "^4.0.0", |
| 60 | + "stylelint-config-recommended-vue": "^1.4.0", |
| 61 | + "stylelint-config-standard": "^33.0.0", |
| 62 | + "stylelint-config-standard-scss": "^9.0.0", |
| 63 | + "stylelint-prettier": "^3.0.0", |
48 | 64 | "typescript": "~4.8.4",
|
49 | 65 | "unplugin-auto-import": "^0.15.3",
|
50 | 66 | "unplugin-icons": "^0.15.3",
|
|
0 commit comments