Skip to content

Commit 7b42349

Browse files
committed
Pass ESLint
1 parent cd1153b commit 7b42349

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ module.exports = {
109109
rules: {
110110
"mdx/remark": "error",
111111
"no-unused-expressions": "off",
112+
"react/jsx-no-undef": "off",
112113
},
113114
},
114115
{

src/app/conf/2024/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function Page() {
5454
</div>
5555
<div className="flex items-center gap-10">
5656
<svg
57-
className="w-[50%]"
57+
className="w-1/2"
5858
viewBox="0 0 1239 142"
5959
fill="currentColor"
6060
xmlns="http://www.w3.org/2000/svg"

src/app/conf/_components/server-component-markdown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export async function ServerComponentMarkdown({
4949
return render({ data: vfile.data, mdx })
5050
} catch (error) {
5151
console.error(error)
52+
if (process.env.NODE_ENV === "production") throw error
5253
return (
5354
<div>{error instanceof Error ? error.message : "Error loading MDX"}</div>
5455
)

0 commit comments

Comments
 (0)