Skip to content

Commit 365dd5b

Browse files
committed
chore: biome linter cleanup
1 parent cd5ee2e commit 365dd5b

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

apps/func/src/CentralPennIncidentsFunc/Services/LocationCache.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public void SaveValue((string, string) key, LocationEntity value)
1616
entry.AbsoluteExpiration = DateTime.UtcNow.AddHours(24);
1717
}
1818

19-
public bool TryGetValue((string, string) key, out LocationEntity value)
20-
{
21-
return _memoryCache.TryGetValue(key, out value);
22-
}
19+
public bool TryGetValue((string, string) key, out LocationEntity value) =>
20+
_memoryCache.TryGetValue(key, out value);
2321
}

apps/web/src/components/icons/icon-refresh.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
import type React from "react";
22

33
interface IconRefreshProps {
44
animate?: boolean;

apps/web/src/components/map/div-marker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type EventedProps, createElementObject, createLayerComponent, extendContext } from "@react-leaflet/core";
2-
import { DivIcon as LeafletDivIcon, type LatLngExpression, Marker as LeafletMarker, type MarkerOptions } from "leaflet";
2+
import { type LatLngExpression, DivIcon as LeafletDivIcon, Marker as LeafletMarker, type MarkerOptions } from "leaflet";
33

44
export interface DivMarkerProps extends Omit<MarkerOptions, "icon" | "children">, EventedProps {
55
html: string;

apps/web/src/components/page-title.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropsWithChildren } from "react";
1+
import type React from "react";
2+
import type { PropsWithChildren } from "react";
23

34
interface PageTitleProps {
45
onBack?: () => void;

apps/web/src/hooks/use-workbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useCallback, useEffect, useRef, useState } from "react";
2-
import { Workbox, WorkboxLifecycleEvent, WorkboxLifecycleWaitingEvent, messageSW } from "workbox-window";
2+
import { Workbox, type WorkboxLifecycleEvent, type WorkboxLifecycleWaitingEvent, messageSW } from "workbox-window";
33

44
interface UseWorkboxOptions {
55
immediate?: boolean;

apps/web/src/pages/incident-detail/incident-detail-section.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Fragment, PropsWithChildren } from "react";
1+
import type React from "react";
2+
import { Fragment, type PropsWithChildren } from "react";
23

34
export interface IncidentDetailSectionProps {
45
title: string;

biome.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
32
"vcs": {
3+
"enabled": true,
44
"clientKind": "git",
55
"useIgnoreFile": true
66
},
@@ -21,7 +21,7 @@
2121
"javascript": {
2222
"formatter": {
2323
"semicolons": "always",
24-
"trailingComma": "es5",
24+
"trailingCommas":"all",
2525
"arrowParentheses": "asNeeded",
2626
"bracketSameLine": true
2727
}

0 commit comments

Comments
 (0)