chore(deps): 更新 eslint-plugin-unicorn 到 v59.0.0
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 3m3s
/ surge (push) Successful in 2m58s
/ playwright (push) Successful in 1m29s
/ cleanup_surge (push) Successful in 21s
/ lint-build-and-check (push) Successful in 6m27s

This commit is contained in:
严浩
2025-05-04 21:25:48 +08:00
parent 5b42efc166
commit 7344359d1e
3 changed files with 8 additions and 109 deletions

View File

@ -126,7 +126,7 @@
"eslint-plugin-import-x": "^4.11.0",
"eslint-plugin-oxlint": "^0.16.8",
"eslint-plugin-perfectionist": "^4.12.3",
"eslint-plugin-unicorn": "^58.0.0",
"eslint-plugin-unicorn": "^59.0.0",
"eslint-plugin-vue": "^10.0.0",
"husky": "^9.1.7",
"less": "^4.3.0",

113
pnpm-lock.yaml generated
View File

@ -255,8 +255,8 @@ importers:
specifier: ^4.12.3
version: 4.12.3(eslint@9.25.1(jiti@2.4.2))(typescript@5.8.3)
eslint-plugin-unicorn:
specifier: ^58.0.0
version: 58.0.0(eslint@9.25.1(jiti@2.4.2))
specifier: ^59.0.0
version: 59.0.0(eslint@9.25.1(jiti@2.4.2))
eslint-plugin-vue:
specifier: ^10.0.0
version: 10.0.0(eslint@9.25.1(jiti@2.4.2))(vue-eslint-parser@10.1.3(eslint@9.25.1(jiti@2.4.2)))
@ -1718,9 +1718,6 @@ packages:
'@types/node@22.15.3':
resolution: {integrity: sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==}
'@types/normalize-package-data@2.4.4':
resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==}
'@types/nprogress@0.2.3':
resolution: {integrity: sha512-k7kRA033QNtC+gLc4VPlfnue58CM1iQLgn1IMAU8VPHGOj7oIHPp9UlhedEnD/Gl8evoCjwkZjlBORtZ3JByUA==}
@ -3146,8 +3143,8 @@ packages:
eslint-config-prettier:
optional: true
eslint-plugin-unicorn@58.0.0:
resolution: {integrity: sha512-fc3iaxCm9chBWOHPVjn+Czb/wHS0D2Mko7wkOdobqo9R2bbFObc4LyZaLTNy0mhZOP84nKkLhTUQxlLOZ7EjKw==}
eslint-plugin-unicorn@59.0.0:
resolution: {integrity: sha512-7IEeqkymGa7tr6wTWS4DolfXnfcE3QjcD0g7I+qCfV5GPMvVsFsLT7zTIYvnudqwAm5nWekdGIOTTXA93Sz9Ow==}
engines: {node: ^18.20.0 || ^20.10.0 || >=21.0.0}
peerDependencies:
eslint: '>=9.22.0'
@ -3519,10 +3516,6 @@ packages:
hookified@1.8.1:
resolution: {integrity: sha512-GrO2l93P8xCWBSTBX9l2BxI78VU/MAAYag+pG8curS3aBGy0++ZlxrQ7PdUOUVMbn5BwkGb6+eRrnf43ipnFEA==}
hosted-git-info@7.0.2:
resolution: {integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==}
engines: {node: ^16.14.0 || >=18.0.0}
human-signals@5.0.0:
resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}
engines: {node: '>=16.17.0'}
@ -3583,10 +3576,6 @@ packages:
resolution: {integrity: sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==}
engines: {node: '>=12'}
index-to-position@1.0.0:
resolution: {integrity: sha512-sCO7uaLVhRJ25vz1o8s9IFM3nVS4DkuQnyjMwiQPKvQuBYBDmb8H7zx8ki7nVh4HJQOdVWebyvLE0qt+clruxA==}
engines: {node: '>=18'}
inherits@2.0.4:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
@ -4131,10 +4120,6 @@ packages:
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
hasBin: true
normalize-package-data@6.0.2:
resolution: {integrity: sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==}
engines: {node: ^16.14.0 || >=18.0.0}
normalize-path@3.0.0:
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
@ -4253,10 +4238,6 @@ packages:
resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
engines: {node: '>=8'}
parse-json@8.2.0:
resolution: {integrity: sha512-eONBZy4hm2AgxjNFd8a4nyDJnzUAH0g34xSQAwWEVGCjdZ4ZL7dKZBfq267GWP/JaS9zW62Xs2FeAdDvpHHJGQ==}
engines: {node: '>=18'}
parse-ms@4.0.0:
resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==}
engines: {node: '>=18'}
@ -4496,14 +4477,6 @@ packages:
resolution: {integrity: sha512-qpt8EwugBWDw2cgE2W+/3oxC+KTez2uSVR8JU9Q36TXPAGCaozfQUs59v4j4GFpWTaw0i6hAZSvOmu1J0uOEUg==}
engines: {node: ^18.17.0 || >=20.5.0}
read-package-up@11.0.0:
resolution: {integrity: sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==}
engines: {node: '>=18'}
read-pkg@9.0.1:
resolution: {integrity: sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==}
engines: {node: '>=18'}
readable-stream@2.3.8:
resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==}
@ -4832,18 +4805,6 @@ packages:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
spdx-correct@3.2.0:
resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==}
spdx-exceptions@2.5.0:
resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==}
spdx-expression-parse@3.0.1:
resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==}
spdx-license-ids@3.0.21:
resolution: {integrity: sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==}
speakingurl@14.0.1:
resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==}
engines: {node: '>=0.10.0'}
@ -5046,10 +5007,6 @@ packages:
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
engines: {node: '>= 0.8.0'}
type-fest@4.39.1:
resolution: {integrity: sha512-uW9qzd66uyHYxwyVBYiwS4Oi0qZyUqwjU+Oevr6ZogYiXt99EOYtwvzMSLw1c3lYo2HzJsep/NB23iEVEgjG/w==}
engines: {node: '>=16'}
typescript-eslint@8.29.1:
resolution: {integrity: sha512-f8cDkvndhbQMPcysk6CUSGBWV+g1utqdn71P5YKwMumVMOG/5k7cHq0KyG4O52nB0oKS4aN2Tp5+wB4APJGC+w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@ -5296,9 +5253,6 @@ packages:
vue-router:
optional: true
validate-npm-package-license@3.0.4:
resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}
vant@4.9.18:
resolution: {integrity: sha512-1bmWv/G0xz45btPqSasgv4TUdTqCneyFfnrQJ3xgerGvfTC5aP/rpO4wJb5FItCZjaSw5+9FNBj2Tz6n9TLXYA==}
peerDependencies:
@ -6879,8 +6833,6 @@ snapshots:
dependencies:
undici-types: 6.21.0
'@types/normalize-package-data@2.4.4': {}
'@types/nprogress@0.2.3': {}
'@types/p5@1.7.6': {}
@ -8645,7 +8597,7 @@ snapshots:
'@types/eslint': 9.6.1
eslint-config-prettier: 10.1.1(eslint@9.25.1(jiti@2.4.2))
eslint-plugin-unicorn@58.0.0(eslint@9.25.1(jiti@2.4.2)):
eslint-plugin-unicorn@59.0.0(eslint@9.25.1(jiti@2.4.2)):
dependencies:
'@babel/helper-validator-identifier': 7.25.9
'@eslint-community/eslint-utils': 4.5.1(eslint@9.25.1(jiti@2.4.2))
@ -8655,12 +8607,12 @@ snapshots:
core-js-compat: 3.41.0
eslint: 9.25.1(jiti@2.4.2)
esquery: 1.6.0
find-up-simple: 1.0.1
globals: 16.0.0
indent-string: 5.0.0
is-builtin-module: 5.0.0
jsesc: 3.1.0
pluralize: 8.0.0
read-package-up: 11.0.0
regexp-tree: 0.1.27
regjsparser: 0.12.0
semver: 7.7.1
@ -9078,10 +9030,6 @@ snapshots:
hookified@1.8.1: {}
hosted-git-info@7.0.2:
dependencies:
lru-cache: 10.4.3
human-signals@5.0.0: {}
human-signals@8.0.1: {}
@ -9128,8 +9076,6 @@ snapshots:
indent-string@5.0.0: {}
index-to-position@1.0.0: {}
inherits@2.0.4: {}
ini@1.3.8: {}
@ -9597,12 +9543,6 @@ snapshots:
dependencies:
abbrev: 2.0.0
normalize-package-data@6.0.2:
dependencies:
hosted-git-info: 7.0.2
semver: 7.7.1
validate-npm-package-license: 3.0.4
normalize-path@3.0.0: {}
nosleep.js@0.12.0: {}
@ -9764,12 +9704,6 @@ snapshots:
json-parse-even-better-errors: 2.3.1
lines-and-columns: 1.2.4
parse-json@8.2.0:
dependencies:
'@babel/code-frame': 7.26.2
index-to-position: 1.0.0
type-fest: 4.39.1
parse-ms@4.0.0: {}
parse-node-version@1.0.1: {}
@ -9993,20 +9927,6 @@ snapshots:
json-parse-even-better-errors: 4.0.0
npm-normalize-package-bin: 4.0.0
read-package-up@11.0.0:
dependencies:
find-up-simple: 1.0.1
read-pkg: 9.0.1
type-fest: 4.39.1
read-pkg@9.0.1:
dependencies:
'@types/normalize-package-data': 2.4.4
normalize-package-data: 6.0.2
parse-json: 8.2.0
type-fest: 4.39.1
unicorn-magic: 0.1.0
readable-stream@2.3.8:
dependencies:
core-util-is: 1.0.3
@ -10347,20 +10267,6 @@ snapshots:
source-map@0.6.1: {}
spdx-correct@3.2.0:
dependencies:
spdx-expression-parse: 3.0.1
spdx-license-ids: 3.0.21
spdx-exceptions@2.5.0: {}
spdx-expression-parse@3.0.1:
dependencies:
spdx-exceptions: 2.5.0
spdx-license-ids: 3.0.21
spdx-license-ids@3.0.21: {}
speakingurl@14.0.1: {}
split2@4.2.0: {}
@ -10549,8 +10455,6 @@ snapshots:
dependencies:
prelude-ls: 1.2.1
type-fest@4.39.1: {}
typescript-eslint@8.29.1(eslint@9.25.1(jiti@2.4.2))(typescript@5.8.3):
dependencies:
'@typescript-eslint/eslint-plugin': 8.29.1(@typescript-eslint/parser@8.29.1(eslint@9.25.1(jiti@2.4.2))(typescript@5.8.3))(eslint@9.25.1(jiti@2.4.2))(typescript@5.8.3)
@ -10867,11 +10771,6 @@ snapshots:
vue: 3.5.13(typescript@5.8.3)
vue-router: 4.5.0(vue@3.5.13(typescript@5.8.3))
validate-npm-package-license@3.0.4:
dependencies:
spdx-correct: 3.2.0
spdx-expression-parse: 3.0.1
vant@4.9.18(vue@3.5.13(typescript@5.8.3)):
dependencies:
'@vant/popperjs': 1.3.0

View File

@ -28,7 +28,7 @@ defineOptions({
},
});
const refresh = () => {
state.list.splice(0, state.list.length);
state.list.splice(0);
state.page = 0;
state.complete = false;
loadMore();