Skip to content

Commit ea6a594

Browse files
authored
fix: setup real oxlint configuration (#507)
1 parent 23ac2f5 commit ea6a594

File tree

8 files changed

+37
-56
lines changed

8 files changed

+37
-56
lines changed

.oxlintrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["react", "unicorn", "typescript", "oxc"],
4+
"categories": {
5+
"correctness": "error",
6+
"suspicious": "error",
7+
"perf": "error"
8+
},
9+
"rules": {
10+
"react-in-jsx-scope": "off"
11+
},
12+
"settings": {
13+
"jsx-a11y": {
14+
"polymorphicPropName": null,
15+
"components": {}
16+
},
17+
"next": {
18+
"rootDir": []
19+
},
20+
"react": {
21+
"formComponents": [],
22+
"linkComponents": []
23+
}
24+
},
25+
"env": {
26+
"builtin": true
27+
},
28+
"globals": {},
29+
"ignorePatterns": []
30+
}

app/evenements-precedents/[year]/loader.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/evenements-precedents/[year]/page.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
import { H1 } from '../../../modules/atoms/remark/Titles';
2-
import React, { Suspense } from 'react';
2+
import React from 'react';
33
import { Metadata } from 'next';
44
import { PastEvents } from './pastEvents';
5-
import { Loader } from './loader';
65

76
export const revalidate = 3600;
87

98
export default async function PastEventsPage({ params: { year } }: { params: { year: string } }) {
109
return (
1110
<main>
1211
<H1>Évènements précédents</H1>
13-
<Suspense fallback={<Loader />}>
14-
<PastEvents year={year}></PastEvents>
15-
</Suspense>
12+
<PastEvents year={year}></PastEvents>
1613
</main>
1714
);
1815
}

modules/event/components/EventDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const EventDetail: React.FC<Props> = async ({ event }) => {
3232
{event.talks
3333
.filter((talk) => talk.videoLink)
3434
.map((talk) => (
35-
<iframe key={talk.title} width="100%" height="auto" src={talk.videoLink} loading="lazy" />
35+
<iframe sandbox="" key={talk.title} width="100%" height="auto" src={talk.videoLink} loading="lazy" />
3636
))}
3737
</div>
3838
</section>

modules/event/components/EventTilePlaceholder.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

modules/event/components/YearNavigationPlaceholder.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

modules/home/LastReplays.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ export const LastReplays = async () => {
2424
event,
2525
videoId: talk.videoLink?.split(/embed\//)[1],
2626
})) as Item[];
27-
return [...accumulator, ...(newEvents || [])] as Item[];
27+
accumulator.push(...((newEvents || []) as Item[]));
28+
29+
return accumulator;
2830
}, [])
2931
.slice(0, 6);
3032

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)