feat(prettier): add prettier formatting

This commit is contained in:
Shintaro Jokagi 2025-05-28 13:43:44 +12:00
parent 01f4dac75d
commit 7fafa6bc69
No known key found for this signature in database
GPG key ID: 0DDF8FA44C9A0DA8
85 changed files with 5670 additions and 2788 deletions

View file

@ -1,6 +1,6 @@
import releaseNotesStable from './release-notes/stable.json'
import releaseNotesStable from "./release-notes/stable.json"
interface FixWithIssue {
type FixWithIssue = {
description: string
issue?: number
}
@ -9,7 +9,7 @@ type Fix = string | FixWithIssue
export type BreakingChange = string | { description: string; link: string }
export interface ReleaseNote {
export type ReleaseNote = {
version: string
date?: string // optional for twilight
extra?: string
@ -25,12 +25,12 @@ export interface ReleaseNote {
}
export const releaseNotes: ReleaseNote[] = releaseNotesStable.reverse()
export { default as releaseNotesTwilight } from './release-notes/twilight.json'
export { default as releaseNotesTwilight } from "./release-notes/twilight.json"
export function getReleaseNoteFirefoxVersion(releaseNote: ReleaseNote): string | null {
// Check if "firefox" is on the feature list
for (const feature of releaseNote.features || []) {
if (feature.toLowerCase().includes('firefox')) {
if (feature.toLowerCase().includes("firefox")) {
// may be X or X.X or X.X.X
const match = feature.match(/(\d+(\.\d+){0,2})/)
if (match) {