Skip to content

fix: setup real oxlint configuration #507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "unicorn", "typescript", "oxc"],
"categories": {
"correctness": "error",
"suspicious": "error",
"perf": "error"
},
"rules": {
"react-in-jsx-scope": "off"
},
"settings": {
"jsx-a11y": {
"polymorphicPropName": null,
"components": {}
},
"next": {
"rootDir": []
},
"react": {
"formComponents": [],
"linkComponents": []
}
},
"env": {
"builtin": true
},
"globals": {},
"ignorePatterns": []
}
18 changes: 0 additions & 18 deletions app/evenements-precedents/[year]/loader.tsx

This file was deleted.

7 changes: 2 additions & 5 deletions app/evenements-precedents/[year]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { H1 } from '../../../modules/atoms/remark/Titles';
import React, { Suspense } from 'react';
import React from 'react';
import { Metadata } from 'next';
import { PastEvents } from './pastEvents';
import { Loader } from './loader';

export const revalidate = 3600;

export default async function PastEventsPage({ params: { year } }: { params: { year: string } }) {
return (
<main>
<H1>Évènements précédents</H1>
<Suspense fallback={<Loader />}>
<PastEvents year={year}></PastEvents>
</Suspense>
<PastEvents year={year}></PastEvents>
</main>
);
}
Expand Down
2 changes: 1 addition & 1 deletion modules/event/components/EventDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const EventDetail: React.FC<Props> = async ({ event }) => {
{event.talks
.filter((talk) => talk.videoLink)
.map((talk) => (
<iframe key={talk.title} width="100%" height="auto" src={talk.videoLink} loading="lazy" />
<iframe sandbox="" key={talk.title} width="100%" height="auto" src={talk.videoLink} loading="lazy" />
))}
</div>
</section>
Expand Down
14 changes: 0 additions & 14 deletions modules/event/components/EventTilePlaceholder.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions modules/event/components/YearNavigationPlaceholder.tsx

This file was deleted.

4 changes: 3 additions & 1 deletion modules/home/LastReplays.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export const LastReplays = async () => {
event,
videoId: talk.videoLink?.split(/embed\//)[1],
})) as Item[];
return [...accumulator, ...(newEvents || [])] as Item[];
accumulator.push(...((newEvents || []) as Item[]));

return accumulator;
}, [])
.slice(0, 6);

Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

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