Skip to content

Commit 25134f8

Browse files
authored
Merge pull request #137 from reactjs/lint-and-validate
fix(docs): Resolve lint errors
2 parents 1382f1f + 37f864f commit 25134f8

File tree

5 files changed

+20
-103
lines changed

5 files changed

+20
-103
lines changed

src/components/Layout/HomeContent.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ export function HomeContent() {
509509

510510
<div className="mt-20 px-5 lg:px-0 mb-6 max-w-4xl text-center text-opacity-80">
511511
<div className="uwu-visible flex justify-center">
512-
<img
512+
<Image
513513
alt="logo by @sawaratsuki1004"
514514
title="logo by @sawaratsuki1004"
515515
className="uwu-visible mb-10 lg:mb-8 h-24 lg:h-32"
@@ -802,7 +802,7 @@ const CommunityImages = memo(function CommunityImages({isLazy}) {
802802
className={cn(
803803
'overflow-clip relative before:absolute before:inset-0 before:pointer-events-none before:-translate-x-full group-hover:before:animate-[shimmer_1s_forwards] before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent transition-transform ease-in-out duration-300'
804804
)}>
805-
<img
805+
<Image
806806
loading={isLazy ? 'lazy' : 'eager'}
807807
src={src}
808808
alt={alt}
@@ -1564,7 +1564,7 @@ function Cover({background, children}) {
15641564
<div className="absolute inset-0 px-4 py-2 flex items-end bg-gradient-to-t from-black/40 via-black/0">
15651565
{children}
15661566
</div>
1567-
<img
1567+
<Image
15681568
src={background}
15691569
width={500}
15701570
height={263}
@@ -1641,7 +1641,7 @@ function Thumbnail({video}) {
16411641
<>
16421642
<div className="transition-opacity mt-2.5 -space-x-2 flex flex-row w-full justify-center">
16431643
{image.speakers.map((src, i) => (
1644-
<img
1644+
<Image
16451645
key={i}
16461646
className="h-8 w-8 border-2 shadow-md border-gray-70 object-cover rounded-full"
16471647
src={src}

src/components/Layout/Page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {useRouter} from 'next/router';
1515
import {SidebarNav} from './SidebarNav';
1616
import {Footer} from './Footer';
1717
import {Toc} from './Toc';
18-
import SocialBanner from '../SocialBanner';
18+
// import SocialBanner from '../SocialBanner';
1919
import {DocsPageFooter} from 'components/DocsFooter';
2020
import {Seo} from 'components/Seo';
2121
import PageHeading from 'components/PageHeading';

src/components/MDX/MDXComponents.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ function Illustration({
315315
return (
316316
<div className="relative group before:absolute before:-inset-y-16 before:inset-x-0 my-16 mx-0 2xl:mx-auto max-w-4xl 2xl:max-w-6xl">
317317
<figure className="my-8 flex justify-center">
318-
<img
318+
<Image
319319
src={src}
320320
alt={alt}
321321
style={{maxHeight: 300}}
@@ -351,7 +351,7 @@ function IllustrationBlock({
351351
const images = imageInfos.map((info, index) => (
352352
<figure key={index}>
353353
<div className="bg-white rounded-lg p-4 flex-1 flex xl:p-6 justify-center items-center my-4">
354-
<img
354+
<Image
355355
className="text-primary"
356356
src={info.src}
357357
alt={info.alt}
@@ -487,7 +487,9 @@ function YouTubeIframe(props: any) {
487487

488488
function Image(props: any) {
489489
const {alt, ...rest} = props;
490-
return <img alt={alt} className="max-w-[calc(min(700px,100%))]" {...rest} />;
490+
return (
491+
<Image alt={alt} className="max-w-[calc(min(700px,100%))]" {...rest} />
492+
);
491493
}
492494

493495
export const MDXComponents = {

src/content/community/conferences.md

Lines changed: 9 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ February 12-13, 2026. In-person in New Delhi, India
5959
### React Paris 2026 {/*react-paris-2026*/}
6060
March 26 - 27, 2026. In-person in Paris, France (hybrid event)
6161

62-
[Website](https://www.reactuniverseconf.com/) - [Twitter](https://twitter.com/react_native_eu) - [LinkedIn](https://www.linkedin.com/events/reactuniverseconf7163919537074118657/)
62+
[Website](https://react.paris/) - [Twitter](https://x.com/BeJS_)
6363

6464

6565
### CityJS London 2026 {/*cityjs-london-2026*/}
@@ -76,69 +76,10 @@ July 03 - 05, 2025. In-person in Bangalore, India
7676

7777
[Website](https://reactnexus.com/) - [Twitter](https://x.com/ReactNexus) - [Bluesky](https://bsky.app/profile/reactnexus.com) - [Linkedin](https://www.linkedin.com/company/react-nexus) - [YouTube](https://www.youtube.com/reactify_in)
7878

79-
[Website](https://reactsummit.us/) - [Twitter](https://x.com/reactsummit)
80-
81-
### React Advanced London 2025 {/*react-advanced-london-2025*/}
82-
November 28 & December 1, 2025. In-person in London, UK + online (hybrid event)
83-
84-
[Website](https://reactadvanced.com/) - [Twitter](https://x.com/reactadvanced)
85-
86-
### CityJS Singapore 2026 {/*cityjs-singapore-2026*/}
87-
February 4-6, 2026. In-person in Singapore
88-
89-
[Website](https://india.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
90-
91-
### CityJS New Delhi 2026 {/*cityjs-newdelhi-2026*/}
92-
February 12-13, 2026. In-person in New Delhi, India
93-
94-
[Website](https://india.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
95-
96-
97-
### React Paris 2026 {/*react-paris-2026*/}
98-
March 26 - 27, 2026. In-person in Paris, France (hybrid event)
99-
100-
[Website](https://www.reactuniverseconf.com/) - [Twitter](https://twitter.com/react_native_eu) - [LinkedIn](https://www.linkedin.com/events/reactuniverseconf7163919537074118657/)
101-
102-
103-
### CityJS London 2026 {/*cityjs-london-2026*/}
104-
April 14-17, 2026. In-person in London
105-
106-
[Website](https://india.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
107-
108-
109-
## Past Conferences {/*past-conferences*/}
110-
111-
112-
### React Norway 2025 {/*react-norway-2025*/}
113-
June 13, 2025. In-person in Oslo, Norway + remote (virtual event)
114-
115-
[Website](https://reactnorway.com/) - [Twitter](https://x.com/ReactNorway)
116-
117-
### CityJS Athens 2025 {/*cityjs-athens*/}
118-
May 27 - 31, 2025. In-person in Athens, Greece
119-
120-
[Website](https://athens.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
121-
122-
### App.js Conf 2025 {/*appjs-conf-2025*/}
123-
May 28 - 30, 2025. In-person in Kraków, Poland + remote
124-
125-
[Website](https://appjs.co) - [Twitter](https://twitter.com/appjsconf)
126-
127-
### CityJS London 2025 {/*cityjs-london*/}
128-
April 23 - 25, 2025. In-person in London, UK
129-
130-
[Website](https://london.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
131-
132-
### React Paris 2025 {/*react-paris-2025*/}
133-
March 20 - 21, 2025. In-person in Paris, France (hybrid event)
134-
135-
[Website](https://react.paris/) - [Twitter](https://x.com/BeJS_) - [YouTube](https://www.youtube.com/playlist?list=PL53Z0yyYnpWitP8Zv01TSEQmKLvuRh_Dj)
136-
137-
### React Native Connection 2025 {/*react-native-connection-2025*/}
138-
April 3 (Reanimated Training) + April 4 (Conference), 2025. Paris, France.
139-
140-
[Website](https://reactnativeconnection.io/) - [X](https://x.com/reactnativeconn) - [Bluesky](https://bsky.app/profile/reactnativeconnect.bsky.social)
79+
### React Summit 2025 {/*react-summit-2025*/}
80+
June 13 - 17, 2025. In-person in Amsterdam, Netherlands + remote (hybrid event)
14181

82+
[Website](https://reactsummit.com/) - [Twitter](https://x.com/reactsummit)
14283

14384
### React Norway 2025 {/*react-norway-2025*/}
14485
June 13, 2025. In-person in Oslo, Norway + remote (virtual event)
@@ -246,15 +187,15 @@ July 04 & 05, 2024. Bangalore, India (In-person event)
246187

247188
[Website](https://reactnexus.com/) - [Twitter](https://twitter.com/ReactNexus) - [Linkedin](https://www.linkedin.com/company/react-nexus) - [YouTube](https://www.youtube.com/reactify_in)
248189

249-
### React Native London Conf 2024 {/*react-native-london-2024*/}
250-
November 14 & 15, 2024. In-person in London, UK
190+
### React Summit 2024 {/*react-summit-2024*/}
191+
June 14 & 18, 2024. In-person in Amsterdam, Netherlands + remote (hybrid event)
251192

252-
[Website](https://reactnativelondon.co.uk/) - [Twitter](https://x.com/RNLConf)
193+
[Website](https://reactsummit.com/) - [Twitter](https://twitter.com/reactsummit) - [Videos](https://portal.gitnation.org/)
253194

254195
### React Norway 2024 {/*react-norway-2024*/}
255196
June 14, 2024. In-person at Farris Bad Hotel in Larvik, Norway and online (hybrid event).
256197

257-
[Website](https://react-africa.com/) - [Twitter](https://x.com/BeJS_)
198+
[Website](https://reactnorway.com/) - [Twitter](https://twitter.com/ReactNorway)
258199

259200
### Render(ATL) 2024 🍑 {/*renderatl-2024-*/}
260201
June 12 - June 14, 2024. Atlanta, GA, USA
@@ -309,7 +250,6 @@ November 13 & 15, 2023. In-person in New York, US + remote first interactivity (
309250
### reactjsday 2023 {/*reactjsday-2023*/}
310251
October 27th 2023. In-person in Verona, Italy and online (hybrid event)
311252

312-
313253
[Website](https://2023.reactjsday.it/) - [Twitter](https://twitter.com/reactjsday) - [Facebook](https://www.facebook.com/GrUSP/) - [YouTube](https://www.youtube.com/c/grusp)
314254

315255
### React Advanced 2023 {/*react-advanced-2023*/}
@@ -1039,4 +979,4 @@ July 2 & 3 in Paris, France
1039979
### React.js Conf 2015 {/*reactjs-conf-2015*/}
1040980
January 28 & 29 in Facebook HQ, CA
1041981

1042-
[Website](http://conf2015.reactjs.org/) - [Schedule](http://conf2015.reactjs.org/schedule.html) - [Videos](https://www.youtube.com/playlist?list=PLb0IAmt7-GS1cbw4qonlQztYV1TAW0sCr)
982+
[Website](http://conf2015.reactjs.org/) - [Schedule](http://conf2015.reactjs.org/schedule.html) - [Videos](https://www.youtube.com/playlist?list=PLb0IAmt7-GS1cbw4qonlQztYV1TAW0sCr)

src/sidebarReference.json

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -176,31 +176,6 @@
176176
}
177177
]
178178
},
179-
{
180-
"title": "Directives",
181-
"path": "/reference/react/directives",
182-
"canary": true,
183-
"routes": [
184-
{
185-
"title": "'use client'",
186-
"path": "/reference/react/use-client",
187-
"canary": true
188-
},
189-
{
190-
"title": "'use server'",
191-
"path": "/reference/react/use-server",
192-
"canary": true
193-
194-
}
195-
]
196-
},
197-
{
198-
"title": "unstable_addTransitionType",
199-
"path": "/reference/react/addTransitionType",
200-
"version": "experimental"
201-
}
202-
]
203-
},
204179
{
205180
"hasSectionHeader": true,
206181
"sectionHeader": "react-dom@{{version}}"
@@ -600,4 +575,4 @@
600575
]
601576
}
602577
]
603-
}
578+
}

0 commit comments

Comments
 (0)