Skip to content

Commit 2f5b88c

Browse files
fix: lint errors
1 parent 035fad1 commit 2f5b88c

15 files changed

Lines changed: 113 additions & 70 deletions

src/components/Analysis/AnalysisSidebar.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ export const AnalysisSidebar: React.FC<Props> = ({
8484
<div className="hidden xl:flex xl:h-full xl:flex-col xl:gap-3">
8585
{/* Combined Highlight + MovesByRating container */}
8686
<div className="desktop-analysis-big-row-1-container relative flex gap-3">
87-
<div className="border-glassBorder bg-glass-strong flex h-full w-full flex-col overflow-hidden rounded-md border backdrop-blur-md">
87+
<div className="flex h-full w-full flex-col overflow-hidden rounded-md border border-glassBorder bg-glass-strong backdrop-blur-md">
8888
{/* Merged header with toggle */}
89-
<div className="border-glassBorder flex h-10 min-h-10 items-center justify-between border-b bg-transparent px-4 text-white/90">
89+
<div className="flex h-10 min-h-10 items-center justify-between border-b border-glassBorder bg-transparent px-4 text-white/90">
9090
<div className="flex items-center gap-2">
9191
<span className="material-symbols-outlined text-xl text-white/80">
9292
analytics
@@ -95,7 +95,7 @@ export const AnalysisSidebar: React.FC<Props> = ({
9595
</div>
9696
<button
9797
onClick={handleToggleAnalysis}
98-
className={`border-glassBorder bg-glass flex items-center gap-1 rounded-md border px-2 py-1 text-xs transition-colors ${
98+
className={`flex items-center gap-1 rounded-md border border-glassBorder bg-glass px-2 py-1 text-xs transition-colors ${
9999
analysisEnabled ? 'text-white' : 'text-white/80'
100100
} hover:bg-glass-hover`}
101101
>
@@ -161,7 +161,7 @@ export const AnalysisSidebar: React.FC<Props> = ({
161161
</div>
162162
{!analysisEnabled && (
163163
<div
164-
className="absolute left-0 right-0 bottom-0 top-10 z-10 flex items-center justify-center overflow-hidden pointer-events-none"
164+
className="pointer-events-none absolute bottom-0 left-0 right-0 top-10 z-10 flex items-center justify-center overflow-hidden"
165165
style={{
166166
background:
167167
'radial-gradient(ellipse 110% 90% at 20% 10%, rgba(239, 68, 68, 0.10) 0%, rgba(239, 68, 68, 0.06) 35%, transparent 75%), rgba(23, 18, 20, 0.9)',
@@ -207,7 +207,7 @@ export const AnalysisSidebar: React.FC<Props> = ({
207207
/>
208208
{!analysisEnabled && (
209209
<div
210-
className="absolute inset-0 z-10 flex items-center justify-center overflow-hidden pointer-events-none"
210+
className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center overflow-hidden"
211211
style={{
212212
background:
213213
'radial-gradient(ellipse 110% 90% at 20% 10%, rgba(239, 68, 68, 0.10) 0%, rgba(239, 68, 68, 0.06) 35%, transparent 75%), rgba(23, 18, 20, 0.9)',
@@ -230,9 +230,9 @@ export const AnalysisSidebar: React.FC<Props> = ({
230230
{/* Smaller screens: 3-row layout */}
231231
<div className="flex h-full flex-col gap-3 xl:hidden">
232232
{/* Row 1: Combined Highlight + BlunderMeter container */}
233-
<div className="desktop-analysis-small-row-1-container border-glassBorder bg-glass-strong relative flex overflow-hidden rounded-md border backdrop-blur-md">
233+
<div className="desktop-analysis-small-row-1-container relative flex overflow-hidden rounded-md border border-glassBorder bg-glass-strong backdrop-blur-md">
234234
{/* Merged header with toggle (mobile/smaller screens) */}
235-
<div className="border-glassBorder absolute left-0 top-0 z-10 flex h-10 w-full items-center justify-between border-b bg-transparent px-3 text-white/90 backdrop-blur-md">
235+
<div className="absolute left-0 top-0 z-10 flex h-10 w-full items-center justify-between border-b border-glassBorder bg-transparent px-3 text-white/90 backdrop-blur-md">
236236
<div className="flex items-center gap-2">
237237
<span className="material-symbols-outlined text-xl text-white/80">
238238
analytics
@@ -318,7 +318,7 @@ export const AnalysisSidebar: React.FC<Props> = ({
318318
</div>
319319
{!analysisEnabled && (
320320
<div
321-
className="absolute left-0 right-0 bottom-0 top-10 z-10 flex items-center justify-center overflow-hidden pointer-events-none"
321+
className="pointer-events-none absolute bottom-0 left-0 right-0 top-10 z-10 flex items-center justify-center overflow-hidden"
322322
style={{
323323
background:
324324
'radial-gradient(ellipse 110% 90% at 20% 10%, rgba(239, 68, 68, 0.10) 0%, rgba(239, 68, 68, 0.06) 35%, transparent 75%), rgba(23, 18, 20, 0.9)',
@@ -353,7 +353,7 @@ export const AnalysisSidebar: React.FC<Props> = ({
353353
</div>
354354
{!analysisEnabled && (
355355
<div
356-
className="absolute inset-0 z-10 flex items-center justify-center overflow-hidden pointer-events-none"
356+
className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center overflow-hidden"
357357
style={{
358358
background:
359359
'radial-gradient(ellipse 110% 90% at 20% 10%, rgba(239, 68, 68, 0.10) 0%, rgba(239, 68, 68, 0.06) 35%, transparent 75%), rgba(23, 18, 20, 0.9)',
@@ -384,7 +384,7 @@ export const AnalysisSidebar: React.FC<Props> = ({
384384
</div>
385385
{!analysisEnabled && (
386386
<div
387-
className="absolute inset-0 z-10 flex items-center justify-center overflow-hidden pointer-events-none"
387+
className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center overflow-hidden"
388388
style={{
389389
background:
390390
'radial-gradient(ellipse 110% 90% at 20% 10%, rgba(239, 68, 68, 0.10) 0%, rgba(239, 68, 68, 0.06) 35%, transparent 75%), rgba(23, 18, 20, 0.9)',

src/components/Analysis/BlunderMeter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const DesktopBlunderMeter: React.FC<Props> = ({
6464
return (
6565
<div
6666
id="analysis-blunder-meter"
67-
className={`flex h-64 max-h-full w-full flex-col gap-2 overflow-hidden rounded-md ${showContainer ? 'border-glassBorder bg-glass border p-3 backdrop-blur-md md:w-auto md:min-w-[40%] md:max-w-[40%]' : ''} md:h-full`}
67+
className={`flex h-64 max-h-full w-full flex-col gap-2 overflow-hidden rounded-md ${showContainer ? 'border border-glassBorder bg-glass p-3 backdrop-blur-md md:w-auto md:min-w-[40%] md:max-w-[40%]' : ''} md:h-full`}
6868
>
6969
<p className="text-sm text-primary xl:text-base">Blunder Meter</p>
7070
<div className="flex h-full w-full flex-col overflow-hidden">
@@ -119,7 +119,7 @@ const MobileBlunderMeter: React.FC<Props> = ({
119119
return (
120120
<div
121121
id="analysis-blunder-meter"
122-
className={`flex w-full flex-col gap-2 overflow-hidden rounded-md ${showContainer ? 'border-glassBorder bg-glass border p-3 backdrop-blur-md' : ''}`}
122+
className={`flex w-full flex-col gap-2 overflow-hidden rounded-md ${showContainer ? 'border border-glassBorder bg-glass p-3 backdrop-blur-md' : ''}`}
123123
>
124124
<p className="text-base text-primary">Blunder Meter</p>
125125
<div className="flex w-full flex-col gap-1">

src/components/Analysis/BroadcastGameList.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ export const BroadcastGameList: React.FC<BroadcastGameListProps> = ({
8585
: 'truncate text-sm font-semibold text-white/95'
8686
}
8787
>
88-
{broadcastController.currentBroadcast?.tour.name || 'Live Broadcast'}
88+
{broadcastController.currentBroadcast?.tour.name ||
89+
'Live Broadcast'}
8990
</h3>
9091
</div>
9192

@@ -163,7 +164,9 @@ export const BroadcastGameList: React.FC<BroadcastGameListProps> = ({
163164
>
164165
<div
165166
className={`flex h-full w-9 items-center justify-center ${
166-
isSelected ? 'bg-white/10' : 'bg-transparent group-hover:bg-white/5'
167+
isSelected
168+
? 'bg-white/10'
169+
: 'bg-transparent group-hover:bg-white/5'
167170
}`}
168171
>
169172
<p className="text-sm text-white/70">{index + 1}</p>

src/components/Analysis/ConfigurableScreens.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const ConfigurableScreens: React.FC<Props> = ({
120120

121121
// Normal state with configure/export tabs
122122
return (
123-
<div className="bg-glass flex w-full flex-1 flex-col overflow-hidden md:w-auto md:rounded">
123+
<div className="flex w-full flex-1 flex-col overflow-hidden bg-glass md:w-auto md:rounded">
124124
<div className="flex flex-row border-b border-white/10">
125125
{screens.map((s) => {
126126
const selected = s.id === screen.id

src/components/Common/PlayerInfo.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ export const PlayerInfo: React.FC<PlayerInfoProps> = ({
6565
: 'rounded-md'
6666

6767
return (
68-
<div className={`flex h-10 w-full items-center justify-between ${roundedClass} border border-glassBorder bg-glass px-4 backdrop-blur-md`}>
68+
<div
69+
className={`flex h-10 w-full items-center justify-between ${roundedClass} border border-glassBorder bg-glass px-4 backdrop-blur-md`}
70+
>
6971
<div className="flex items-center gap-1.5">
7072
<div
7173
className={`h-2.5 w-2.5 rounded-full ${color === 'white' ? 'bg-white' : 'border bg-black'}`}

src/components/Home/Sections/AnalysisSection.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ export const AnalysisSection = ({ id }: AnalysisSectionProps) => {
226226
animate={inView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }}
227227
transition={{ duration: 0.4, ease: 'easeOut' }}
228228
>
229-
<div className="relative w-full overflow-hidden rounded-lg border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md">
229+
<div className="from-white/8 to-white/4 relative w-full overflow-hidden rounded-lg border border-white/10 bg-gradient-to-br backdrop-blur-md">
230230
<div className="flex flex-col gap-3 p-3">
231231
<div className="flex flex-col gap-3 md:flex-row">
232232
<div className="flex flex-col md:w-1/2">
233-
<div className="flex flex-col overflow-hidden rounded border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md">
233+
<div className="from-white/8 to-white/4 flex flex-col overflow-hidden rounded border border-white/10 bg-gradient-to-br backdrop-blur-md">
234234
<div className="w-full rounded-t-sm bg-white/5 p-2 text-left text-sm font-medium text-primary/80">
235235
Spassky, Boris V.
236236
</div>
@@ -246,7 +246,7 @@ export const AnalysisSection = ({ id }: AnalysisSectionProps) => {
246246
</div>
247247
<div className="flex flex-col gap-3 md:w-1/2">
248248
<motion.div
249-
className="min-h-0 flex-1 overflow-hidden rounded border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md"
249+
className="from-white/8 to-white/4 min-h-0 flex-1 overflow-hidden rounded border border-white/10 bg-gradient-to-br backdrop-blur-md"
250250
initial={{ opacity: 0, y: 20 }}
251251
animate={
252252
inView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }
@@ -274,7 +274,7 @@ export const AnalysisSection = ({ id }: AnalysisSectionProps) => {
274274
/>
275275
</motion.div>
276276
<motion.div
277-
className="flex-shrink-0 overflow-hidden rounded border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md"
277+
className="from-white/8 to-white/4 flex-shrink-0 overflow-hidden rounded border border-white/10 bg-gradient-to-br backdrop-blur-md"
278278
initial={{ opacity: 0, y: 20 }}
279279
animate={
280280
inView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }
@@ -294,7 +294,7 @@ export const AnalysisSection = ({ id }: AnalysisSectionProps) => {
294294
}
295295
transition={{ duration: 0.3, delay: 0.6 }}
296296
>
297-
<div className="h-full w-full overflow-hidden rounded border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md">
297+
<div className="from-white/8 to-white/4 h-full w-full overflow-hidden rounded border border-white/10 bg-gradient-to-br backdrop-blur-md">
298298
<MovesByRating
299299
moves={analysisMockData.movesByRating}
300300
colorSanMapping={analysisMockData.colorSanMapping}
@@ -303,7 +303,7 @@ export const AnalysisSection = ({ id }: AnalysisSectionProps) => {
303303
</div>
304304
</motion.div>
305305
<motion.div
306-
className="h-64 overflow-hidden rounded border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md md:w-1/2"
306+
className="from-white/8 to-white/4 h-64 overflow-hidden rounded border border-white/10 bg-gradient-to-br backdrop-blur-md md:w-1/2"
307307
initial={{ opacity: 0, y: 20 }}
308308
animate={
309309
inView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }

src/components/Home/Sections/PlaySection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const PlaySection = ({ id }: PlaySectionProps) => {
8888
<AnimatedTrainingBoards inView={inView} />
8989
</div>
9090
<motion.div
91-
className="absolute bottom-0 right-0 z-10 h-3/4 w-3/4 overflow-hidden border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md"
91+
className="from-white/8 to-white/4 absolute bottom-0 right-0 z-10 h-3/4 w-3/4 overflow-hidden border border-white/10 bg-gradient-to-br backdrop-blur-md"
9292
initial={{ scale: 0.95, opacity: 0 }}
9393
animate={{ scale: 1, opacity: 1 }}
9494
transition={{ duration: 0.5 }}

src/components/Home/Sections/TrainSection.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export const TrainSection = ({ id }: TrainSectionProps) => {
253253
animate={inView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }}
254254
transition={{ duration: 0.4, ease: 'easeOut' }}
255255
>
256-
<div className="flex flex-col overflow-hidden rounded-lg border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md">
256+
<div className="from-white/8 to-white/4 flex flex-col overflow-hidden rounded-lg border border-white/10 bg-gradient-to-br backdrop-blur-md">
257257
<div className="border-b border-white/10 px-4 pt-4">
258258
<div className="flex items-center justify-between">
259259
<div className="flex items-center">
@@ -280,7 +280,7 @@ export const TrainSection = ({ id }: TrainSectionProps) => {
280280
transform: 'translateZ(0)',
281281
}}
282282
>
283-
<div className="flex flex-col overflow-hidden rounded border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md">
283+
<div className="from-white/8 to-white/4 flex flex-col overflow-hidden rounded border border-white/10 bg-gradient-to-br backdrop-blur-md">
284284
<div
285285
className="relative w-full"
286286
style={{
@@ -312,7 +312,7 @@ export const TrainSection = ({ id }: TrainSectionProps) => {
312312
}
313313
transition={{ duration: 0.3, delay: 0.5 }}
314314
>
315-
<div className="h-full w-full rounded border border-white/10 bg-gradient-to-br from-white/8 to-white/4 backdrop-blur-md">
315+
<div className="from-white/8 to-white/4 h-full w-full rounded border border-white/10 bg-gradient-to-br backdrop-blur-md">
316316
<MovesByRating
317317
moves={puzzleMockData.movesByRating}
318318
colorSanMapping={puzzleMockData.colorSanMapping}
@@ -323,7 +323,7 @@ export const TrainSection = ({ id }: TrainSectionProps) => {
323323

324324
{/* Position Analysis */}
325325
<motion.div
326-
className="mt-3 overflow-hidden rounded border border-white/10 bg-gradient-to-br from-white/8 to-white/4 p-3 backdrop-blur-md"
326+
className="from-white/8 to-white/4 mt-3 overflow-hidden rounded border border-white/10 bg-gradient-to-br p-3 backdrop-blur-md"
327327
initial={{ opacity: 0, y: 20 }}
328328
animate={
329329
inView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }

src/components/Openings/OpeningDrillSidebar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ export const OpeningDrillSidebar: React.FC<Props> = ({
4545
<div className={containerClass}>
4646
{/* Current Drill Info */}
4747
<div className={sectionHeaderClass}>
48-
<h2 className="mb-2 text-base font-semibold text-white/95">Current Drill</h2>
48+
<h2 className="mb-2 text-base font-semibold text-white/95">
49+
Current Drill
50+
</h2>
4951
{currentDrill ? (
5052
<div className="space-y-2">
5153
<div>

src/components/Puzzles/PuzzleLog.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ export const PuzzleLog: React.FC<Props> = ({
2424
: 'flex h-full flex-col overflow-hidden rounded-md border border-glassBorder bg-glass backdrop-blur-md'
2525
}
2626
>
27-
<div className={embedded ? 'border-b border-glassBorder px-3 py-2' : 'border-b border-glassBorder px-3 py-2'}>
27+
<div
28+
className={
29+
embedded
30+
? 'border-b border-glassBorder px-3 py-2'
31+
: 'border-b border-glassBorder px-3 py-2'
32+
}
33+
>
2834
<h3 className="text-sm font-medium text-primary">Puzzle History</h3>
2935
</div>
3036
<div className="red-scrollbar flex flex-1 flex-col overflow-y-auto">

0 commit comments

Comments
 (0)