Skip to content

Commit 2bc97d1

Browse files
AchoArnoldCopilot
andcommitted
fix(web): fix prettier formatting in plugins/filters.ts
- Fix nested ternary indentation to match prettier 3.8.1 (used in CI) - Exclude web/ from pre-commit prettier hook to avoid version conflict (web uses prettier 3.8.1 via CI, pre-commit mirror only has up to 3.1.0) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c691675 commit 2bc97d1

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ repos:
1717
rev: v3.1.0
1818
hooks:
1919
- id: prettier
20+
exclude: ^web/

web/plugins/filters.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ Vue.filter('billingPeriodDateOrdinal', (value: string): string => {
7474
day % 10 === 1 && day !== 11
7575
? 'st'
7676
: day % 10 === 2 && day !== 12
77-
? 'nd'
78-
: day % 10 === 3 && day !== 13
79-
? 'rd'
80-
: 'th'
77+
? 'nd'
78+
: day % 10 === 3 && day !== 13
79+
? 'rd'
80+
: 'th'
8181

8282
return `${month} ${day}<sup>${suffix}</sup> ${year}`
8383
})

0 commit comments

Comments
 (0)