Przeglądaj źródła

style(bbb): hahahh

miaofuhao 3 lat temu
rodzic
commit
5015256a0a
5 zmienionych plików z 12 dodań i 7 usunięć
  1. 4 0
      .husky/commit-msg
  2. 4 0
      .husky/pre-commit
  3. 3 0
      commitlint.config.js
  4. 0 6
      package-lock.json
  5. 1 1
      src/App.vue

+ 4 - 0
.husky/commit-msg

@@ -0,0 +1,4 @@
1
+#!/usr/bin/env sh
2
+. "$(dirname -- "$0")/_/husky.sh"
3
+
4
+npx --no-install commitlint --edit $1

+ 4 - 0
.husky/pre-commit

@@ -0,0 +1,4 @@
1
+#!/usr/bin/env sh
2
+. "$(dirname -- "$0")/_/husky.sh"
3
+
4
+npm run lint

+ 3 - 0
commitlint.config.js

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

+ 0 - 6
package-lock.json

@@ -6294,12 +6294,6 @@
6294 6294
       "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
6295 6295
       "dev": true
6296 6296
     },
6297
-    "husky": {
6298
-      "version": "7.0.0",
6299
-      "resolved": "https://registry.npmmirror.com/husky/-/husky-7.0.0.tgz",
6300
-      "integrity": "sha512-xK7lO0EtSzfFPiw+oQncQVy/XqV7UVVjxBByc+Iv5iK3yhW9boDoWgvZy3OGo48QKg/hUtZkzz0hi2HXa0kn7w==",
6301
-      "dev": true
6302
-    },
6303 6297
     "iconv-lite": {
6304 6298
       "version": "0.4.24",
6305 6299
       "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz",

+ 1 - 1
src/App.vue

@@ -4,7 +4,7 @@
4 4
 </template>
5 5
 
6 6
 <script lang="ts">
7
-import { defineComponent } from 'vue'
7
+import { defineComponent } from 'vue';;;;
8 8
 import HelloWorld from './components/HelloWorld.vue'
9 9
 
10 10
 export default defineComponent({