Skip to content

Commit 78c8b26

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6b6ff75 commit 78c8b26

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

components/splash/dot-grid.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ const Dots = ({ playState, color }) => {
5151
for (col = 0; col < ncols; col++) {
5252
if (random() > 0.3) {
5353
dots1.push(
54-
<Dot key={row + '-' + col} y={row * 21 + 10} x={col * 5.1 + 2} />
54+
<Dot key={row + '-' + col} y={row * 21 + 10} x={col * 5.1 + 2} />,
5555
)
5656
} else {
5757
dots2.push(
58-
<Dot key={row + '-' + col} y={row * 21 + 10} x={col * 5.1 + 2} />
58+
<Dot key={row + '-' + col} y={row * 21 + 10} x={col * 5.1 + 2} />,
5959
)
6060
}
6161
}

components/splash/use-animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const useAnimation = ({ duration = 4000, delay = 0 } = {}) => {
1616
clearInterval(tick)
1717
const interval = setInterval(
1818
() => setRepeating((prev) => !prev),
19-
duration
19+
duration,
2020
)
2121
setTick(interval)
2222
}

pages/api/checkout_sessions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function recaptchaHandler(response) {
2828
'Content-Type': 'application/json',
2929
},
3030
referrerPolicy: 'no-referrer',
31-
}
31+
},
3232
)
3333
const { success, 'error-codes': errorCodes } = await result.json()
3434

pages/donate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const CustomAmount = ({ color, onClick }) => {
109109

110110
return !helpMessage
111111
},
112-
[amount]
112+
[amount],
113113
)
114114

115115
return (
@@ -186,7 +186,7 @@ const Donate = () => {
186186
setStatus('processing')
187187
setTimeout(() => {
188188
setStatus((prevStatus) =>
189-
prevStatus === 'processing' ? null : prevStatus
189+
prevStatus === 'processing' ? null : prevStatus,
190190
)
191191
}, 1200)
192192

pages/press.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const getColors = () => {
6767
colorOrder.reduce((a, c) => {
6868
a[c] = 0
6969
return a
70-
}, {})
70+
}, {}),
7171
)
7272

7373
const recentColors = recentSources.reduce((colors, source, i) => {
@@ -96,7 +96,7 @@ const getColors = () => {
9696
colors[source] ||= colorOrder[i % 4]
9797
return colors
9898
},
99-
{ ...highlightColors, ...recentColors }
99+
{ ...highlightColors, ...recentColors },
100100
)
101101
}
102102

@@ -129,7 +129,7 @@ const Press = () => {
129129
const inYear = years[new Date(d.date.replace(/-/g, '/')).getFullYear()]
130130
const inFormat = format[d.format]
131131
return inYear && inFormat
132-
})
132+
}),
133133
)
134134
}, [years, format])
135135

pages/sitemap.xml.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ function generateSiteMap(pages) {
3131
return `
3232
<url>
3333
<loc>${`${BASE_URL}/${page}`}</loc>${
34-
date
35-
? `
34+
date
35+
? `
3636
<lastmod>${date}</lastmod>
3737
`
38-
: ''
39-
}
38+
: ''
39+
}
4040
</url>
4141
`
4242
})
@@ -56,7 +56,7 @@ export async function getServerSideProps({ res }) {
5656
])
5757

5858
const [research, blog] = await Promise.all(
59-
requests.map((request) => request.json())
59+
requests.map((request) => request.json()),
6060
)
6161

6262
const sitemap = generateSiteMap(research.concat(blog))

tests/api/checkout_sessions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('api/checkout_sessions', () => {
6060
expect(fetch).toHaveBeenCalledTimes(1)
6161
expect(fetch).toHaveBeenCalledWith(
6262
`https://www.google.com/recaptcha/api/siteverify?secret=${process.env.RECAPTCHA_SECRET_KEY}&response=recaptcha_response`,
63-
expect.anything()
63+
expect.anything(),
6464
)
6565
})
6666

utils/rate-limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const rateLimit = (options) => {
2323
res.setHeader('X-RateLimit-Limit', limit)
2424
res.setHeader(
2525
'X-RateLimit-Remaining',
26-
isRateLimited ? 0 : limit - currentUsage
26+
isRateLimited ? 0 : limit - currentUsage,
2727
)
2828

2929
return isRateLimited ? reject() : resolve()

0 commit comments

Comments
 (0)