chore(deps-dev): bump eslint-plugin-unicorn from 59.0.1 to 60.0.0 (#19662)

* chore(deps-dev): bump eslint-plugin-unicorn from 59.0.1 to 60.0.0

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-version: 60.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* refactor: replace reverse() with toReversed() for improved readability

* chore: update packageManager version to pnpm@10.13.1

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2025-07-22 20:45:42 +08:00
committed by GitHub
parent 5f59a85acf
commit ae3e646ea9
22 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ export function parseDuration(timeStr: string) {
const clean = timeStr.trim().replaceAll(/[^\d:]/g, '');
return clean
.split(':')
.reverse()
.toReversed()
.reduce((total, part, idx) => {
const n = Number(part);
if (Number.isNaN(n)) {