Skip to content

Commit 0c1f210

Browse files
committed
Fix minor lint errors
1 parent 9dd6c45 commit 0c1f210

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

site/src/components/AuditLogRow/AuditLogDiff/AuditLogDiff.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getDiffValue = (value: unknown): string => {
1919
return "null"
2020
}
2121

22-
return value.toString()
22+
return String(value)
2323
}
2424

2525
export const AuditLogDiff: FC<{ diff: AuditLog["diff"] }> = ({ diff }) => {

site/src/components/Icons/VSCodeIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const VSCodeIcon = (props: SvgIconProps) => (
55
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none">
66
<mask
77
id="vscode_mask0"
8-
mask-type="alpha"
8+
style={{ maskType: "alpha" }}
99
maskUnits="userSpaceOnUse"
1010
x="0"
1111
y="0"

site/src/components/Icons/VSCodeInsidersIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const VSCodeInsidersIcon = (props: SvgIconProps) => (
1111
>
1212
<mask
1313
id="mask0"
14-
mask-type="alpha"
14+
style={{ maskType: "alpha" }}
1515
maskUnits="userSpaceOnUse"
1616
x="0"
1717
y="0"

site/src/components/LicenseBanner/LicenseBannerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const LicenseBannerView: React.FC<LicenseBannerViewProps> = ({
6565
<Expander expanded={showDetails} setExpanded={setShowDetails}>
6666
<ul className={styles.list}>
6767
{messages.map((message) => (
68-
<li className={styles.listItem} key={`${message}`}>
68+
<li className={styles.listItem} key={message}>
6969
{message}
7070
</li>
7171
))}

site/src/components/ServiceBanner/ServiceBannerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const ServiceBannerView: React.FC<ServiceBannerViewProps> = ({
3131
]
3232
return (
3333
<div
34-
className={`${styles.container}`}
34+
className={styles.container}
3535
style={{ backgroundColor: backgroundColor }}
3636
>
3737
{preview && <Pill text="Preview" type="info" lightBorder />}

site/src/contexts/useProxyLatency.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const useProxyLatency = (
135135
// dispatchProxyLatenciesGuarded will assign the latency to the proxy
136136
// via the reducer. But it will only do so if the performance entry is
137137
// a resource entry that we care about.
138-
const dispatchProxyLatenciesGuarded = (entry: PerformanceEntry): void => {
138+
const dispatchProxyLatenciesGuarded = (entry: PerformanceEntry) => {
139139
if (entry.entryType !== "resource") {
140140
// We should never get these, but just in case.
141141
return
@@ -208,7 +208,7 @@ export const useProxyLatency = (
208208
})
209209

210210
// When all the proxy requests finish
211-
Promise.all(proxyRequests)
211+
void Promise.all(proxyRequests)
212212
// TODO: If there is an error on any request, we might want to store some indicator of that?
213213
.finally(() => {
214214
// takeRecords will return any entries that were not called via the callback yet.

0 commit comments

Comments
 (0)