miaofuhao 3 年 前
コミット
284865fe13
共有4 個のファイルを変更した797 個の追加76 個の削除を含む
  1. 5 0
      .husky/commit-msg
  2. 3 0
      commitlint.config.js
  3. 787 76
      package-lock.json
  4. 2 0
      package.json

+ 5 - 0
.husky/commit-msg

@@ -0,0 +1,5 @@
1
+#!/usr/bin/env sh
2
+. "$(dirname -- "$0")/_/husky.sh"
3
+
4
+# 限制git commit的命令
5
+npx --no-install commitlint --edit

+ 3 - 0
commitlint.config.js

@@ -0,0 +1,3 @@
1
+module.exports = {
2
+  extends: ['@commitlint/config-conventional']
3
+}

File diff suppressed because it is too large
+ 787 - 76
package-lock.json


+ 2 - 0
package.json

@@ -14,6 +14,8 @@
14 14
     "vue": "^3.2.13"
15 15
   },
16 16
   "devDependencies": {
17
+    "@commitlint/cli": "^17.0.3",
18
+    "@commitlint/config-conventional": "^17.0.3",
17 19
     "@typescript-eslint/eslint-plugin": "^5.4.0",
18 20
     "@typescript-eslint/parser": "^5.4.0",
19 21
     "@vue/cli-plugin-babel": "~5.0.0",