Skip to content

Commit f291507

Browse files
build(deps): update dependency @biomejs/biome to v1.9.0 (jonahsnider#113)
* build(deps): update dependency @biomejs/biome to v1.9.0 * refactor: update Biome config * build: add CSS files to .prettierignore --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonah Snider <[email protected]>
1 parent 835f2ba commit f291507

File tree

16 files changed

+71
-77
lines changed

16 files changed

+71
-77
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ service-account-key.json
259259
**/*.cjs
260260
**/*.json
261261
**/*.jsonc
262+
**/*.css
262263
!**/package.json
263264

264265
# AdonisJS build

apps/web/components/ui/chart.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ChartContainer.displayName = 'Chart';
6464
const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {
6565
const colorConfig = Object.entries(config).filter(([_, config]) => config.theme || config.color);
6666

67-
if (!colorConfig.length) {
67+
if (colorConfig.length === 0) {
6868
return null;
6969
}
7070

@@ -123,7 +123,7 @@ const ChartTooltipContent = React.forwardRef<
123123
const { config } = useChart();
124124

125125
const tooltipLabel = React.useMemo(() => {
126-
if (hideLabel || !payload?.length) {
126+
if (hideLabel || !payload || payload.length === 0) {
127127
return null;
128128
}
129129

@@ -149,7 +149,7 @@ const ChartTooltipContent = React.forwardRef<
149149
return <div className={cn('font-medium', labelClassName)}>{value}</div>;
150150
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
151151

152-
if (!(active && payload?.length)) {
152+
if (!(active && payload && payload.length > 0)) {
153153
return null;
154154
}
155155

@@ -243,7 +243,7 @@ const ChartLegendContent = React.forwardRef<
243243
>(({ className, hideIcon = false, payload, verticalAlign = 'bottom', nameKey }, ref) => {
244244
const { config } = useChart();
245245

246-
if (!payload?.length) {
246+
if (!payload || payload.length === 0) {
247247
return null;
248248
}
249249

apps/web/next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { withPlausibleProxy } = require('next-plausible');
2-
const getBaseApiUrl = require('./shared');
2+
const getBaseApiUrl = require('./shared.js');
33
const dotenv = require('dotenv');
44
const path = require('node:path');
55
const { withSentryConfig } = require('@sentry/nextjs');

apps/web/src/components/data-tables/faceted-filter.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function DataTableFacetedFilter<TData, TValue>({
9393
selectedValues.add(option.value);
9494
}
9595
const filterValues = Array.from(selectedValues);
96-
column?.setFilterValue(filterValues.length ? filterValues : undefined);
96+
column?.setFilterValue(filterValues.length > 0 ? filterValues : undefined);
9797
}}
9898
>
9999
<div

apps/web/src/components/dots/dots.module.css

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33

44
/* SVG is used to get proper subpixel rendering, since radial gradients have a Chrome bug that prevents them from rendering properly */
55
/* They use the color of the `border` CSS variable (Radix Colors sand 6 for dark, and sand 8 for light). */
6-
background-image: url('/dots/dot-light.svg'), url('/dots/dot-light.svg');
7-
background-position:
8-
15px 15px,
9-
40px 40px;
6+
background-image: url("/dots/dot-light.svg"), url("/dots/dot-light.svg");
7+
background-position: 15px 15px, 40px 40px;
108
background-size: 50px 50px;
119
}
1210

1311
.dots:global:where(.dark, .dark *) {
14-
background-image: url('/dots/dot-dark.svg'), url('/dots/dot-dark.svg');
12+
background-image: url("/dots/dot-dark.svg"), url("/dots/dot-dark.svg");
1513
}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
.cta {
2-
background-image: url('/home/cta/text-segment.svg'),
3-
url('/home/cta/text-segment.svg');
4-
background-size:
5-
127px 64px,
6-
127px 64px;
7-
background-position:
8-
0px 0px,
9-
63px 32px;
2+
background-image: url("/home/cta/text-segment.svg"), url("/home/cta/text-segment.svg");
3+
background-size: 127px 64px, 127px 64px;
4+
background-position: 0px 0px, 63px 32px;
105
}

apps/web/src/components/manager/meetings/meeting-dialog/meeting-attendee-table/meeting-attendee-table.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function MeetingAttendeeTable({ meeting }: Props) {
5757
</TableHeader>
5858

5959
<TableBody>
60-
{table.getRowModel().rows?.length ? (
60+
{table.getRowModel().rows?.length > 0 ? (
6161
table.getRowModel().rows.map((row) => (
6262
<TableRow key={row.id} data-state={row.getIsSelected() && 'selected'}>
6363
{row.getVisibleCells().map((cell) => (

apps/web/src/components/manager/meetings/meetings-table/meetings-table.client.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function MeetingsTableClient({ initialDataPromise, team }: Props) {
8888
))}
8989
</TableHeader>
9090
<TableBody>
91-
{table.getRowModel().rows?.length ? (
91+
{table.getRowModel().rows?.length > 0 ? (
9292
table.getRowModel().rows.map((row) => (
9393
<TableRow key={row.id} data-state={row.getIsSelected() && 'selected'}>
9494
{row.getVisibleCells().map((cell) => (

apps/web/src/components/manager/members/members-table/columns.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const columns: ColumnDef<TeamMemberSchema>[] = [
8787
sortingFn: Sort.ascending((row) =>
8888
row.original.lastSeenAt === 'now'
8989
? Number.POSITIVE_INFINITY
90-
: row.original.lastSeenAt ?? Number.NEGATIVE_INFINITY,
90+
: (row.original.lastSeenAt ?? Number.NEGATIVE_INFINITY),
9191
),
9292
sortUndefined: -1,
9393
enableColumnFilter: true,

apps/web/src/components/manager/members/members-table/members-table.client.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export function MembersTableClient({ initialData, loading, team }: Props) {
156156
</>
157157
)}
158158
{!loading &&
159-
(table.getRowModel().rows?.length ? (
159+
(table.getRowModel().rows?.length > 0 ? (
160160
table.getRowModel().rows.map((row) => (
161161
<TableRow key={row.id} data-state={row.getIsSelected() && 'selected'}>
162162
{row.getVisibleCells().map((cell) => (

apps/web/src/components/manager/members/view-member/member-attendance-section/member-attendance-table/member-attendance-table.client.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function MemberAttendanceTableClient({ initialMeetings, member, loading }
122122
<RowSkeleton />
123123
</>
124124
)}
125-
{table.getRowModel().rows?.length ? (
125+
{table.getRowModel().rows?.length > 0 ? (
126126
table.getRowModel().rows.map((row) => (
127127
<TableRow key={row.id} data-state={row.getIsSelected() && 'selected'}>
128128
{row.getVisibleCells().map((cell) => (

apps/web/src/components/manager/settings/managers/managers-table-card/managers-table-card.client.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function ManagersTableRoleSelect({
6161
};
6262

6363
return (
64-
<Select disabled={!allowedRoleModifications.length} onValueChange={onValueChange} value={manager.role}>
64+
<Select disabled={allowedRoleModifications.length === 0} onValueChange={onValueChange} value={manager.role}>
6565
<SelectTrigger className='min-w-48 max-w-min shadow-none'>{capitalize(manager.role)}</SelectTrigger>
6666
<SelectContent>
6767
<SelectGroup>

apps/web/src/utils/date-format.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ function within7Days(date: Date) {
4242
});
4343
}
4444

45+
const INTL_FORMATTED_RANGE_SEPARATOR_AND_ENDING = / - .+$/;
46+
const INTL_FORMATTED_TIME_AT_TIME = / at .+$/;
4547
/**
4648
* Format a date range in the most concise way possible, and if the range was within ±7 days, format it relative to now.
4749
*/
@@ -79,7 +81,7 @@ export function formatDateRange(start: Date, end?: Date, verbose = false): strin
7981
) {
8082
options.month = undefined;
8183
options.day = undefined;
82-
prefix = capitalize(formatRelative(start, now).replace(/ at .+$/, ', '));
84+
prefix = capitalize(formatRelative(start, now).replace(INTL_FORMATTED_TIME_AT_TIME, ', '));
8385
}
8486

8587
const formatter = new Intl.DateTimeFormat('en-US', options);
@@ -90,7 +92,7 @@ export function formatDateRange(start: Date, end?: Date, verbose = false): strin
9092
});
9193

9294
if (!end) {
93-
return formatted.replace(/ - .+$/, ' - now');
95+
return formatted.replace(INTL_FORMATTED_RANGE_SEPARATOR_AND_ENDING, ' - now');
9496
}
9597

9698
return formatted;

biome.json

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
33
"files": {
4-
"ignore": [".next", "node_modules", ".vercel", "**/package.json", "apps/api/build"]
4+
"ignore": [".next", "node_modules", ".vercel", "**/package.json", "apps/api/build", ".turbo"]
55
},
66
"formatter": {
77
"formatWithErrors": true,
@@ -27,24 +27,22 @@
2727
"rules": {
2828
"all": true,
2929
"complexity": {
30-
"all": true,
3130
"noStaticOnlyClass": "off",
3231
"useLiteralKeys": "off"
3332
},
3433
"correctness": {
35-
"noNodejsModules": "off"
36-
},
37-
"nursery": {
38-
"all": false
34+
"noNodejsModules": "off",
35+
"noUndeclaredDependencies": "off",
36+
"useImportExtensions": "off"
3937
},
4038
"style": {
41-
"all": true,
4239
"noNamespaceImport": "off",
43-
"noParameterProperties": "off"
40+
"noParameterProperties": "off",
41+
"useDefaultSwitchClause": "off"
4442
},
4543
"suspicious": {
46-
"all": true,
47-
"noEmptyBlockStatements": "off"
44+
"noEmptyBlockStatements": "off",
45+
"noReactSpecificProps": "off"
4846
}
4947
}
5048
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type-check": "turbo run type-check"
1616
},
1717
"devDependencies": {
18-
"@biomejs/biome": "1.8.3",
18+
"@biomejs/biome": "1.9.0",
1919
"prettier": "3.3.3",
2020
"prettier-plugin-packagejson": "2.5.2",
2121
"turbo": "2.1.1",

yarn.lock

+38-38
Original file line numberDiff line numberDiff line change
@@ -662,18 +662,18 @@ __metadata:
662662
languageName: node
663663
linkType: hard
664664

665-
"@biomejs/biome@npm:1.8.3":
666-
version: 1.8.3
667-
resolution: "@biomejs/biome@npm:1.8.3"
668-
dependencies:
669-
"@biomejs/cli-darwin-arm64": "npm:1.8.3"
670-
"@biomejs/cli-darwin-x64": "npm:1.8.3"
671-
"@biomejs/cli-linux-arm64": "npm:1.8.3"
672-
"@biomejs/cli-linux-arm64-musl": "npm:1.8.3"
673-
"@biomejs/cli-linux-x64": "npm:1.8.3"
674-
"@biomejs/cli-linux-x64-musl": "npm:1.8.3"
675-
"@biomejs/cli-win32-arm64": "npm:1.8.3"
676-
"@biomejs/cli-win32-x64": "npm:1.8.3"
665+
"@biomejs/biome@npm:1.9.0":
666+
version: 1.9.0
667+
resolution: "@biomejs/biome@npm:1.9.0"
668+
dependencies:
669+
"@biomejs/cli-darwin-arm64": "npm:1.9.0"
670+
"@biomejs/cli-darwin-x64": "npm:1.9.0"
671+
"@biomejs/cli-linux-arm64": "npm:1.9.0"
672+
"@biomejs/cli-linux-arm64-musl": "npm:1.9.0"
673+
"@biomejs/cli-linux-x64": "npm:1.9.0"
674+
"@biomejs/cli-linux-x64-musl": "npm:1.9.0"
675+
"@biomejs/cli-win32-arm64": "npm:1.9.0"
676+
"@biomejs/cli-win32-x64": "npm:1.9.0"
677677
dependenciesMeta:
678678
"@biomejs/cli-darwin-arm64":
679679
optional: true
@@ -693,62 +693,62 @@ __metadata:
693693
optional: true
694694
bin:
695695
biome: bin/biome
696-
checksum: 10c0/95fe99ce82cd8242f1be51cbf3ac26043b253f5a369d3dc24df09bdb32ec04dba679b1d4fa8b9d602b1bf2c30ecd80af14aa8f5c92d6e0cd6214a99a1099a65b
696+
checksum: 10c0/b07ad2c8dc3d52c0a4eea37f98d36399b33a13759903aa65f9678db916810b773fe94937c304899158479bccd8c3c90f0f30af22b34d6dc5963774f1acc5e245
697697
languageName: node
698698
linkType: hard
699699

700-
"@biomejs/cli-darwin-arm64@npm:1.8.3":
701-
version: 1.8.3
702-
resolution: "@biomejs/cli-darwin-arm64@npm:1.8.3"
700+
"@biomejs/cli-darwin-arm64@npm:1.9.0":
701+
version: 1.9.0
702+
resolution: "@biomejs/cli-darwin-arm64@npm:1.9.0"
703703
conditions: os=darwin & cpu=arm64
704704
languageName: node
705705
linkType: hard
706706

707-
"@biomejs/cli-darwin-x64@npm:1.8.3":
708-
version: 1.8.3
709-
resolution: "@biomejs/cli-darwin-x64@npm:1.8.3"
707+
"@biomejs/cli-darwin-x64@npm:1.9.0":
708+
version: 1.9.0
709+
resolution: "@biomejs/cli-darwin-x64@npm:1.9.0"
710710
conditions: os=darwin & cpu=x64
711711
languageName: node
712712
linkType: hard
713713

714-
"@biomejs/cli-linux-arm64-musl@npm:1.8.3":
715-
version: 1.8.3
716-
resolution: "@biomejs/cli-linux-arm64-musl@npm:1.8.3"
714+
"@biomejs/cli-linux-arm64-musl@npm:1.9.0":
715+
version: 1.9.0
716+
resolution: "@biomejs/cli-linux-arm64-musl@npm:1.9.0"
717717
conditions: os=linux & cpu=arm64 & libc=musl
718718
languageName: node
719719
linkType: hard
720720

721-
"@biomejs/cli-linux-arm64@npm:1.8.3":
722-
version: 1.8.3
723-
resolution: "@biomejs/cli-linux-arm64@npm:1.8.3"
721+
"@biomejs/cli-linux-arm64@npm:1.9.0":
722+
version: 1.9.0
723+
resolution: "@biomejs/cli-linux-arm64@npm:1.9.0"
724724
conditions: os=linux & cpu=arm64 & libc=glibc
725725
languageName: node
726726
linkType: hard
727727

728-
"@biomejs/cli-linux-x64-musl@npm:1.8.3":
729-
version: 1.8.3
730-
resolution: "@biomejs/cli-linux-x64-musl@npm:1.8.3"
728+
"@biomejs/cli-linux-x64-musl@npm:1.9.0":
729+
version: 1.9.0
730+
resolution: "@biomejs/cli-linux-x64-musl@npm:1.9.0"
731731
conditions: os=linux & cpu=x64 & libc=musl
732732
languageName: node
733733
linkType: hard
734734

735-
"@biomejs/cli-linux-x64@npm:1.8.3":
736-
version: 1.8.3
737-
resolution: "@biomejs/cli-linux-x64@npm:1.8.3"
735+
"@biomejs/cli-linux-x64@npm:1.9.0":
736+
version: 1.9.0
737+
resolution: "@biomejs/cli-linux-x64@npm:1.9.0"
738738
conditions: os=linux & cpu=x64 & libc=glibc
739739
languageName: node
740740
linkType: hard
741741

742-
"@biomejs/cli-win32-arm64@npm:1.8.3":
743-
version: 1.8.3
744-
resolution: "@biomejs/cli-win32-arm64@npm:1.8.3"
742+
"@biomejs/cli-win32-arm64@npm:1.9.0":
743+
version: 1.9.0
744+
resolution: "@biomejs/cli-win32-arm64@npm:1.9.0"
745745
conditions: os=win32 & cpu=arm64
746746
languageName: node
747747
linkType: hard
748748

749-
"@biomejs/cli-win32-x64@npm:1.8.3":
750-
version: 1.8.3
751-
resolution: "@biomejs/cli-win32-x64@npm:1.8.3"
749+
"@biomejs/cli-win32-x64@npm:1.9.0":
750+
version: 1.9.0
751+
resolution: "@biomejs/cli-win32-x64@npm:1.9.0"
752752
conditions: os=win32 & cpu=x64
753753
languageName: node
754754
linkType: hard
@@ -7740,7 +7740,7 @@ __metadata:
77407740
version: 0.0.0-use.local
77417741
resolution: "interval.so@workspace:."
77427742
dependencies:
7743-
"@biomejs/biome": "npm:1.8.3"
7743+
"@biomejs/biome": "npm:1.9.0"
77447744
prettier: "npm:3.3.3"
77457745
prettier-plugin-packagejson: "npm:2.5.2"
77467746
turbo: "npm:2.1.1"

0 commit comments

Comments
 (0)