feat(@vant/cli): bump husky v8 (#10622)

* feat(@vant/cli): bump husky v8

* chore: fix lint issue
This commit is contained in:
neverland 2022-05-22 19:28:34 +08:00 committed by GitHub
parent 99d705e597
commit 0c0191332a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 2742 additions and 2873 deletions

View File

@ -21,7 +21,7 @@
"@vant/eslint-config": "workspace:*",
"@vant/stylelint-config": "workspace:*",
"eslint": "^8.2.0",
"husky": "^7.0.4",
"husky": "^8.0.1",
"lint-staged": "^12.1.2",
"prettier": "^2.5.0",
"rimraf": "^3.0.2",

View File

@ -70,7 +70,7 @@
"gh-pages": "^3.2.3",
"hash-sum": "^2.0.0",
"highlight.js": "^11.3.1",
"husky": "^7.0.4",
"husky": "^8.0.1",
"jest": "^27.3.1",
"jest-canvas-mock": "^2.3.1",
"jest-serializer-html": "^7.1.0",

View File

@ -51,6 +51,7 @@ module.exports = {
'vue/require-v-for-key': 'off',
'vue/require-default-prop': 'off',
'vue/no-unused-components': 'off',
'vue/multi-word-component-names': 'off',
'vue/return-in-computed-property': 'off',
// typescript-eslint
'@typescript-eslint/camelcase': 'off',

View File

@ -6,9 +6,9 @@ exports[`should render content slot correctly 1`] = `
</div>
`;
exports[`should render nothing when content is empty string 1`] = ``;
exports[`should render nothing when content is empty string 1`] = `""`;
exports[`should render nothing when content is undefined 1`] = ``;
exports[`should render nothing when content is undefined 1`] = `""`;
exports[`should render nothing when content is zero 1`] = `
<div class="van-badge van-badge--top-right">

View File

@ -565,7 +565,7 @@ test('close-preview event', async () => {
});
await later();
wrapper.find('.van-image').trigger('click');
await wrapper.find('.van-image').trigger('click');
const preview = document.querySelector<HTMLDivElement>('.van-image-preview');
const swipe = preview?.querySelector<HTMLDivElement>(

5604
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff