test: commit
This commit is contained in:
parent
4df063fa9a
commit
a178873649
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npx pretty-quick --staged
|
||||
npx lint-staged
|
||||
pnpx pretty-quick --staged
|
||||
pnpx lint-staged
|
||||
|
15
package.json
15
package.json
@ -59,6 +59,7 @@
|
||||
"@typescript-eslint/parser": "^4.33.0",
|
||||
"@vitejs/plugin-vue": "^1.9.3",
|
||||
"@vue/compiler-sfc": "^3.2.20",
|
||||
"@vue/eslint-config-prettier": "^6.0.0",
|
||||
"@vue/server-renderer": "^3.2.20",
|
||||
"@vue/test-utils": "^2.0.0-rc.15",
|
||||
"babel-jest": "^26.6.3",
|
||||
@ -68,11 +69,12 @@
|
||||
"eslint-plugin-vue": "^7.19.1",
|
||||
"husky": "^7.0.2",
|
||||
"jest": "^26.6.3",
|
||||
"lint-staged": "^10.5.4",
|
||||
"lint-staged": "^11.2.3",
|
||||
"markdown-it-container": "^3.0.0",
|
||||
"postcss": "^8.3.9",
|
||||
"postcss-preset-env": "^6.7.0",
|
||||
"prettier": "2.2.1",
|
||||
"prettier": "^2.4.1",
|
||||
"pretty-quick": "^3.1.1",
|
||||
"prismjs": "^1.25.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-jest": "^26.5.6",
|
||||
@ -85,9 +87,16 @@
|
||||
"lib",
|
||||
"types"
|
||||
],
|
||||
"lint-staged": {
|
||||
"*.{ts,vue,tsx,md}": "eslint --fix",
|
||||
"*.{css,less,vue,md}": "stylelint --fix",
|
||||
"*": "prettier -w -u"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
"pre-commit": "lintstage",
|
||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
||||
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
164
pnpm-lock.yaml
164
pnpm-lock.yaml
@ -14,6 +14,7 @@ specifiers:
|
||||
'@typescript-eslint/parser': ^4.33.0
|
||||
'@vitejs/plugin-vue': ^1.9.3
|
||||
'@vue/compiler-sfc': ^3.2.20
|
||||
'@vue/eslint-config-prettier': ^6.0.0
|
||||
'@vue/server-renderer': ^3.2.20
|
||||
'@vue/test-utils': ^2.0.0-rc.15
|
||||
babel-jest: ^26.6.3
|
||||
@ -23,11 +24,12 @@ specifiers:
|
||||
eslint-plugin-vue: ^7.19.1
|
||||
husky: ^7.0.2
|
||||
jest: ^26.6.3
|
||||
lint-staged: ^10.5.4
|
||||
lint-staged: ^11.2.3
|
||||
markdown-it-container: ^3.0.0
|
||||
postcss: ^8.3.9
|
||||
postcss-preset-env: ^6.7.0
|
||||
prettier: 2.2.1
|
||||
prettier: ^2.4.1
|
||||
pretty-quick: ^3.1.1
|
||||
prismjs: ^1.25.0
|
||||
rimraf: ^3.0.2
|
||||
ts-jest: ^26.5.6
|
||||
@ -56,20 +58,22 @@ devDependencies:
|
||||
'@typescript-eslint/parser': 4.33.0_eslint@7.32.0+typescript@4.4.3
|
||||
'@vitejs/plugin-vue': 1.9.3_vite@2.5.10
|
||||
'@vue/compiler-sfc': 3.2.20
|
||||
'@vue/eslint-config-prettier': 6.0.0_b212975186fa54a111c0d83e5f3c21af
|
||||
'@vue/server-renderer': 3.2.20_vue@3.2.20
|
||||
'@vue/test-utils': 2.0.0-rc.15_vue@3.2.20
|
||||
babel-jest: 26.6.3_@babel+core@7.15.8
|
||||
escape-html: 1.0.3
|
||||
eslint: 7.32.0
|
||||
eslint-plugin-prettier: 3.4.1_eslint@7.32.0+prettier@2.2.1
|
||||
eslint-plugin-prettier: 3.4.1_eslint@7.32.0+prettier@2.4.1
|
||||
eslint-plugin-vue: 7.19.1_eslint@7.32.0
|
||||
husky: 7.0.2
|
||||
jest: 26.6.3
|
||||
lint-staged: 10.5.4
|
||||
lint-staged: 11.2.3
|
||||
markdown-it-container: 3.0.0
|
||||
postcss: 8.3.9
|
||||
postcss-preset-env: 6.7.0
|
||||
prettier: 2.2.1
|
||||
prettier: 2.4.1
|
||||
pretty-quick: 3.1.1_prettier@2.4.1
|
||||
prismjs: 1.25.0
|
||||
rimraf: 3.0.2
|
||||
ts-jest: 26.5.6_jest@26.6.3+typescript@4.4.3
|
||||
@ -1804,6 +1808,10 @@ packages:
|
||||
resolution: {integrity: sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==}
|
||||
dev: true
|
||||
|
||||
/@types/minimatch/3.0.5:
|
||||
resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==}
|
||||
dev: true
|
||||
|
||||
/@types/minimist/1.2.2:
|
||||
resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==}
|
||||
dev: true
|
||||
@ -1999,6 +2007,19 @@ packages:
|
||||
resolution: {integrity: sha512-ObzQhgkoVeoyKv+e8+tB/jQBL2smtk/NmC9OmFK8UqdDpoOdv/Kf9pyDWL+IFyM7qLD2C75rszJujvGSPSpGlw==}
|
||||
dev: false
|
||||
|
||||
/@vue/eslint-config-prettier/6.0.0_b212975186fa54a111c0d83e5f3c21af:
|
||||
resolution: {integrity: sha512-wFQmv45c3ige5EA+ngijq40YpVcIkAy0Lihupnsnd1Dao5CBbPyfCzqtejFLZX1EwH/kCJdpz3t6s+5wd3+KxQ==}
|
||||
peerDependencies:
|
||||
eslint: '>= 5.0.0'
|
||||
eslint-plugin-prettier: ^3.1.0
|
||||
prettier: '>= 1.13.0'
|
||||
dependencies:
|
||||
eslint: 7.32.0
|
||||
eslint-config-prettier: 6.15.0_eslint@7.32.0
|
||||
eslint-plugin-prettier: 3.4.1_eslint@7.32.0+prettier@2.4.1
|
||||
prettier: 2.4.1
|
||||
dev: true
|
||||
|
||||
/@vue/reactivity/3.2.20:
|
||||
resolution: {integrity: sha512-nSmoLojUTk+H8HNTAkrUduB4+yIUBK2HPihJo2uXVSH4Spry6oqN6lFzE5zpLK+F27Sja+UqR9R1+/kIOsHV5w==}
|
||||
dependencies:
|
||||
@ -2203,6 +2224,11 @@ packages:
|
||||
engines: {node: '>=0.10.0'}
|
||||
dev: true
|
||||
|
||||
/array-differ/3.0.0:
|
||||
resolution: {integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/array-ify/1.0.0:
|
||||
resolution: {integrity: sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=}
|
||||
dev: true
|
||||
@ -2222,6 +2248,11 @@ packages:
|
||||
engines: {node: '>=0.10.0'}
|
||||
dev: true
|
||||
|
||||
/arrify/2.0.1:
|
||||
resolution: {integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/assign-symbols/1.0.0:
|
||||
resolution: {integrity: sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@ -2516,6 +2547,14 @@ packages:
|
||||
supports-color: 5.5.0
|
||||
dev: true
|
||||
|
||||
/chalk/3.0.0:
|
||||
resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
ansi-styles: 4.3.0
|
||||
supports-color: 7.2.0
|
||||
dev: true
|
||||
|
||||
/chalk/4.1.2:
|
||||
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
|
||||
engines: {node: '>=10'}
|
||||
@ -2632,9 +2671,9 @@ packages:
|
||||
delayed-stream: 1.0.0
|
||||
dev: true
|
||||
|
||||
/commander/6.2.1:
|
||||
resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==}
|
||||
engines: {node: '>= 6'}
|
||||
/commander/8.2.0:
|
||||
resolution: {integrity: sha512-LLKxDvHeL91/8MIyTAD5BFMNtoIwztGPMiM/7Bl8rIPmHCZXRxmSWr91h57dpOpnQ6jIUqEWdXE/uBYMfiVZDA==}
|
||||
engines: {node: '>= 12'}
|
||||
dev: true
|
||||
|
||||
/compare-func/2.0.0:
|
||||
@ -2836,6 +2875,19 @@ packages:
|
||||
ms: 2.1.2
|
||||
dev: true
|
||||
|
||||
/debug/4.3.2_supports-color@8.1.1:
|
||||
resolution: {integrity: sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==}
|
||||
engines: {node: '>=6.0'}
|
||||
peerDependencies:
|
||||
supports-color: '*'
|
||||
peerDependenciesMeta:
|
||||
supports-color:
|
||||
optional: true
|
||||
dependencies:
|
||||
ms: 2.1.2
|
||||
supports-color: 8.1.1
|
||||
dev: true
|
||||
|
||||
/decamelize-keys/1.1.0:
|
||||
resolution: {integrity: sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@ -2858,10 +2910,6 @@ packages:
|
||||
engines: {node: '>=0.10'}
|
||||
dev: true
|
||||
|
||||
/dedent/0.7.0:
|
||||
resolution: {integrity: sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=}
|
||||
dev: true
|
||||
|
||||
/deep-is/0.1.4:
|
||||
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
|
||||
dev: true
|
||||
@ -3027,7 +3075,17 @@ packages:
|
||||
source-map: 0.6.1
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-prettier/3.4.1_eslint@7.32.0+prettier@2.2.1:
|
||||
/eslint-config-prettier/6.15.0_eslint@7.32.0:
|
||||
resolution: {integrity: sha512-a1+kOYLR8wMGustcgAjdydMsQ2A/2ipRPwRKUmfYaSxc9ZPcrku080Ctl6zrZzZNs/U82MjSv+qKREkoq3bJaw==}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
eslint: '>=3.14.1'
|
||||
dependencies:
|
||||
eslint: 7.32.0
|
||||
get-stdin: 6.0.0
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-prettier/3.4.1_eslint@7.32.0+prettier@2.4.1:
|
||||
resolution: {integrity: sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g==}
|
||||
engines: {node: '>=6.0.0'}
|
||||
peerDependencies:
|
||||
@ -3039,7 +3097,7 @@ packages:
|
||||
optional: true
|
||||
dependencies:
|
||||
eslint: 7.32.0
|
||||
prettier: 2.2.1
|
||||
prettier: 2.4.1
|
||||
prettier-linter-helpers: 1.0.0
|
||||
dev: true
|
||||
|
||||
@ -3488,6 +3546,11 @@ packages:
|
||||
engines: {node: '>=8.0.0'}
|
||||
dev: true
|
||||
|
||||
/get-stdin/6.0.0:
|
||||
resolution: {integrity: sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==}
|
||||
engines: {node: '>=4'}
|
||||
dev: true
|
||||
|
||||
/get-stream/4.1.0:
|
||||
resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==}
|
||||
engines: {node: '>=6'}
|
||||
@ -3944,11 +4007,6 @@ packages:
|
||||
resolution: {integrity: sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=}
|
||||
dev: true
|
||||
|
||||
/is-unicode-supported/0.1.0:
|
||||
resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==}
|
||||
engines: {node: '>=10'}
|
||||
dev: true
|
||||
|
||||
/is-windows/1.0.2:
|
||||
resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@ -4617,27 +4675,24 @@ packages:
|
||||
uc.micro: 1.0.6
|
||||
dev: true
|
||||
|
||||
/lint-staged/10.5.4:
|
||||
resolution: {integrity: sha512-EechC3DdFic/TdOPgj/RB3FicqE6932LTHCUm0Y2fsD9KGlLB+RwJl2q1IYBIvEsKzDOgn0D4gll+YxG5RsrKg==}
|
||||
/lint-staged/11.2.3:
|
||||
resolution: {integrity: sha512-Tfmhk8O2XFMD25EswHPv+OYhUjsijy5D7liTdxeXvhG2rsadmOLFtyj8lmlfoFFXY8oXWAIOKpoI+lJe1DB1mw==}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
chalk: 4.1.2
|
||||
cli-truncate: 2.1.0
|
||||
commander: 6.2.1
|
||||
colorette: 1.4.0
|
||||
commander: 8.2.0
|
||||
cosmiconfig: 7.0.1
|
||||
debug: 4.3.2
|
||||
dedent: 0.7.0
|
||||
debug: 4.3.2_supports-color@8.1.1
|
||||
enquirer: 2.3.6
|
||||
execa: 4.1.0
|
||||
execa: 5.1.1
|
||||
listr2: 3.12.2_enquirer@2.3.6
|
||||
log-symbols: 4.1.0
|
||||
micromatch: 4.0.4
|
||||
normalize-path: 3.0.0
|
||||
please-upgrade-node: 3.2.0
|
||||
string-argv: 0.3.1
|
||||
stringify-object: 3.3.0
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
supports-color: 8.1.1
|
||||
dev: true
|
||||
|
||||
/listr2/3.12.2_enquirer@2.3.6:
|
||||
@ -4694,14 +4749,6 @@ packages:
|
||||
resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
|
||||
dev: true
|
||||
|
||||
/log-symbols/4.1.0:
|
||||
resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}
|
||||
engines: {node: '>=10'}
|
||||
dependencies:
|
||||
chalk: 4.1.2
|
||||
is-unicode-supported: 0.1.0
|
||||
dev: true
|
||||
|
||||
/log-update/4.0.0:
|
||||
resolution: {integrity: sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==}
|
||||
engines: {node: '>=10'}
|
||||
@ -4890,6 +4937,11 @@ packages:
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/mri/1.2.0:
|
||||
resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
|
||||
engines: {node: '>=4'}
|
||||
dev: true
|
||||
|
||||
/ms/2.0.0:
|
||||
resolution: {integrity: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=}
|
||||
dev: true
|
||||
@ -4898,6 +4950,17 @@ packages:
|
||||
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
||||
dev: true
|
||||
|
||||
/multimatch/4.0.0:
|
||||
resolution: {integrity: sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
'@types/minimatch': 3.0.5
|
||||
array-differ: 3.0.0
|
||||
array-union: 2.1.0
|
||||
arrify: 2.0.1
|
||||
minimatch: 3.0.4
|
||||
dev: true
|
||||
|
||||
/nanoid/3.1.29:
|
||||
resolution: {integrity: sha512-dW2pUSGZ8ZnCFIlBIA31SV8huOGCHb6OwzVCc7A69rb/a+SgPBwfmLvK5TKQ3INPbRkcI8a/Owo0XbiTNH19wg==}
|
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||
@ -5547,8 +5610,8 @@ packages:
|
||||
fast-diff: 1.2.0
|
||||
dev: true
|
||||
|
||||
/prettier/2.2.1:
|
||||
resolution: {integrity: sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==}
|
||||
/prettier/2.4.1:
|
||||
resolution: {integrity: sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==}
|
||||
engines: {node: '>=10.13.0'}
|
||||
hasBin: true
|
||||
dev: true
|
||||
@ -5563,6 +5626,22 @@ packages:
|
||||
react-is: 17.0.2
|
||||
dev: true
|
||||
|
||||
/pretty-quick/3.1.1_prettier@2.4.1:
|
||||
resolution: {integrity: sha512-ZYLGiMoV2jcaas3vTJrLvKAYsxDoXQBUn8OSTxkl67Fyov9lyXivJTl0+2WVh+y6EovGcw7Lm5ThYpH+Sh3XxQ==}
|
||||
engines: {node: '>=10.13'}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
prettier: '>=2.0.0'
|
||||
dependencies:
|
||||
chalk: 3.0.0
|
||||
execa: 4.1.0
|
||||
find-up: 4.1.0
|
||||
ignore: 5.1.8
|
||||
mri: 1.2.0
|
||||
multimatch: 4.0.0
|
||||
prettier: 2.4.1
|
||||
dev: true
|
||||
|
||||
/prismjs/1.25.0:
|
||||
resolution: {integrity: sha512-WCjJHl1KEWbnkQom1+SzftbtXMKQoezOCYs5rECqMN+jP+apI7ftoflyqigqzopSO3hMhTEb0mFClA8lkolgEg==}
|
||||
dev: true
|
||||
@ -6204,6 +6283,13 @@ packages:
|
||||
has-flag: 4.0.0
|
||||
dev: true
|
||||
|
||||
/supports-color/8.1.1:
|
||||
resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
|
||||
engines: {node: '>=10'}
|
||||
dependencies:
|
||||
has-flag: 4.0.0
|
||||
dev: true
|
||||
|
||||
/supports-hyperlinks/2.2.0:
|
||||
resolution: {integrity: sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==}
|
||||
engines: {node: '>=8'}
|
||||
|
Loading…
Reference in New Issue
Block a user