Commit Graph

26 Commits

Author SHA1 Message Date
Sebastian Poxhofer 97327c3d28 refactor(linters): add prefer-coerce-array rule (#45492)
* refactor(linters): add prefer-coerce-array rule

Refs #45217

`x ?? []` and `coerceArray(x)` say the same thing, but only the second
one is searchable and consistent. The rule flags a `??` whose default is
a bare `[]` literal; a non-empty default or an asserted `([] as Foo[])`
still passes.

Applying it across `lib/` surfaced three spots the helper cannot cover,
which keep `?? []` with a disable comment or a narrower fix:

- `package-files.ts` destructures a tuple, which `coerceArray()` widens
- `generate.spec.ts` defaults `matchAll()`, an iterator rather than an array
- `mise/upgradeable-tooling.ts` declares a `Record` return, so its
  `?? []` fallback was wrong to begin with and becomes `coerceObject()`

* refactor(platform/github): hoist the GHE version header lookup

`Object.entries(...).find()` returns a tuple, and defaulting it with
`?? []` only to destructure the second element reads as an array
default when it is not one. Name the found entry instead, which drops
the `?? []` rather than routing a tuple through `coerceArray()`.
2026-08-28 09:27:58 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Adam Setch ec4c23e57d feat: emojify truncated notes (#40367)
* feat: emojify truncated notes

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: emojify truncated notes

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: emojify truncated notes

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: emojify dashboard notices

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: emojify dashboard notices

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2026-01-11 09:34:14 +00:00
Adam Setch 5e1da5e56a feat(dashboard): detected dependencies update new values (#40032)
* feat(dashboard): detected dependencies update new values

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat(dashboard): detected dependencies update new values

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat(dashboard): detected dependencies update new values

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat(dashboard): detected dependencies update new values

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-18 14:00:55 +00:00
Adam Setch 09bf112be1 fix(dashboard): only add count if has deps (#39889)
refactor(dashboard): only add count if has deps

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-11 15:57:39 +00:00
Adam Setch a5fba21195 feat(dashboard): add totals to detected dependency summaries (#39770)
feat: add totals to detected dependency summaries

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-09 08:33:52 +00:00
Adam Setch 68baaa2856 refactor(dashboard): consistently use title case for headings (#39754)
* refactor(dashboard): proper-case section headings

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* refactor(dashboard): proper-case section headings

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-04 13:55:44 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
Trim21 3b7a38a565 feat: make dashboard branch/manager output in stable order (#37066)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2025-07-19 13:50:11 +00:00
Jörg Thalheim 06198496cf fix(dashboard): don't show undefined being displayed (#36132)
Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
2025-05-26 13:07:35 +00:00
Maxime Brunet e9f6edb4ca fix(dashboard): improve note (#26281) 2023-12-14 07:16:13 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Rhys Arkins 5befa30dd6 fix(dashboard): double line return after note (#24690) 2023-09-28 13:46:16 +02:00
Rhys Arkins 36e2b328bb chore: update types reference 2023-08-15 11:31:15 +02:00
Sergei Zharinov 53263bbfda feat: Clone objects via wrapper (#22970) 2023-06-27 13:09:59 +00:00
Jamie Magee a6dfa70c1d chore: migrate to structuredClone (#20885)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-04-27 05:06:22 +00:00
Rhys Arkins cc33d34ca8 refactor: PackageFile types (#20498)
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-20 14:58:49 +00:00
Rhys Arkins 3cef2f2e4f refactor: PackageFile -> PackageFileContent (#20502) 2023-02-19 12:43:48 +00:00
Gabriel-Ladzaretti d48ede78f0 feat(logs): log end of repository run branch summary (#17047) 2022-10-27 17:29:01 +00:00
Rhys Arkins 3aa94d46f4 chore: no meta for debug statements 2022-10-21 08:02:05 +02:00
Michael Kriese 709c790e12 fix(dashboard): filter deps with skip reason (#17256) 2022-08-18 18:52:17 +00:00
Gabriel-Ladzaretti 9c23f48008 fix(core/dashboard): fix truncated issue body (#16527) 2022-08-15 06:00:26 +00:00
Michael Kriese 8270d5512d refactor: fix lint issues (#16779)
* refactor: fix lint issues

* Update lib/renovate.ts

* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00
Gabriel-Ladzaretti ea8ab7ca22 fix(dashboard): undefined currentValue (#15917) 2022-06-07 08:19:08 +00:00
Michael Kriese e47a685071 fix(dashboard): use blockquote instead of invalid ul (#15612) 2022-05-17 11:40:07 +02:00
Gabriel-Ladzaretti 224d5e7717 feat(core/dashboard): include list of detected package files (#15418) 2022-05-16 12:20:31 +02:00