Skip to content

Commit c479d8a

Browse files
authored
Merge pull request #239 from Pseudo-Lab/fix/getcloser/eslint
fix(getcloser): eslint errors
2 parents 6ac9e5b + efba27e commit c479d8a

12 files changed

Lines changed: 84 additions & 84 deletions

File tree

getcloser/frontend/eslint.config.mjs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { dirname } from "path";
2-
import { fileURLToPath } from "url";
3-
import { FlatCompat } from "@eslint/eslintrc";
1+
import { dirname } from 'path';
2+
import { fileURLToPath } from 'url';
3+
import { FlatCompat } from '@eslint/eslintrc';
44

55
const __filename = fileURLToPath(import.meta.url);
66
const __dirname = dirname(__filename);
@@ -10,22 +10,22 @@ const compat = new FlatCompat({
1010
});
1111

1212
const eslintConfig = [
13-
...compat.extends("next/core-web-vitals", "next/typescript"),
13+
...compat.extends('next/core-web-vitals', 'next/typescript'),
1414
{
1515
rules: {
16-
indent: ["error", 2, { SwitchCase: 1 }], // Enforce 2-space indentation
17-
"linebreak-style": ["error", "unix"],
18-
quotes: ["error", "single"],
19-
semi: ["error", "always"],
20-
"object-curly-spacing": ["error", "always"],
21-
"key-spacing": ["error", { beforeColon: false, afterColon: true }],
16+
indent: ['error', 2, { SwitchCase: 1 }], // Enforce 2-space indentation
17+
'linebreak-style': ['error', 'unix'],
18+
quotes: ['error', 'single'],
19+
semi: ['error', 'always'],
20+
'object-curly-spacing': ['error', 'always'],
21+
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
2222
},
2323
ignores: [
24-
"node_modules/**",
25-
".next/**",
26-
"out/**",
27-
"build/**",
28-
"next-env.d.ts",
24+
'node_modules/**',
25+
'.next/**',
26+
'out/**',
27+
'build/**',
28+
'next-env.d.ts',
2929
],
3030
},
3131
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
plugins: ["@tailwindcss/postcss"],
2+
plugins: ['@tailwindcss/postcss'],
33
};
44

55
export default config;

getcloser/frontend/src/app/layout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
'use client';
22

33

4-
import { Geist, Geist_Mono, Dongle } from "next/font/google";
5-
import "./globals.css";
4+
import { Geist, Geist_Mono, Dongle } from 'next/font/google';
5+
import './globals.css';
66
import { Providers } from './providers';
77
import { usePathname } from 'next/navigation';
88
import Header from '@/components/Header';
99

1010
const geistSans = Geist({
11-
variable: "--font-geist-sans",
12-
subsets: ["latin"],
11+
variable: '--font-geist-sans',
12+
subsets: ['latin'],
1313
});
1414

1515
const geistMono = Geist_Mono({
16-
variable: "--font-geist-mono",
17-
subsets: ["latin"],
16+
variable: '--font-geist-mono',
17+
subsets: ['latin'],
1818
});
1919

2020
const dongle = Dongle({

getcloser/frontend/src/app/page1/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export default function Page1() {
6767
<div className="container mx-auto p-4 min-h-screen flex items-center justify-center">
6868
<main className="max-w-md mx-auto bg-card text-card-foreground p-6 rounded-lg shadow-md">
6969
<h1 className="text-5xl font-bold">친해지길바라</h1>
70-
<Image src="/logo.png" alt="Fail" width={52} height={58} style={{marginTop: 36, marginBottom: 36}} className="mx-auto block" />
71-
<div className="items-center text-center" style={{marginBottom: 36}}>
70+
<Image src="/logo.png" alt="Fail" width={52} height={58} style={{ marginTop: 36, marginBottom: 36 }} className="mx-auto block" />
71+
<div className="items-center text-center" style={{ marginBottom: 36 }}>
7272
<p className="text-md mt-1">Pseudo Lab</p>
7373
<p className="text-md">2nd Grand Gathering</p>
7474
<p className="text-md">2025. 12. 20</p>

getcloser/frontend/src/app/page2/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ export default function Page2() {
149149
<Modal
150150
title="미션 소개"
151151
content={(
152-
`1. 참가자들의 코드를 모으세요!<br />` +
153-
` 코드는 위에 개인별 다른 코드가 있습니다.<br />` +
154-
`2. 5명이 함께 문제 풀기에 도전하세요!<br />` +
155-
` (팁! 문제는 팀원들과 관련된 문제가 나옵니다.)<br />` +
156-
`3. 성공 시 부스 방문해주세요.<br />` +
157-
` 성공 선물을 드립니다.`
152+
'1. 참가자들의 코드를 모으세요!<br />' +
153+
' 코드는 위에 개인별 다른 코드가 있습니다.<br />' +
154+
'2. 5명이 함께 문제 풀기에 도전하세요!<br />' +
155+
' (팁! 문제는 팀원들과 관련된 문제가 나옵니다.)<br />' +
156+
'3. 성공 시 부스 방문해주세요.<br />' +
157+
' 성공 선물을 드립니다.'
158158
)}
159159
onConfirm={handleConfirm}
160160
onDoNotShowAgain={handleDoNotShowAgain}

getcloser/frontend/src/app/page4/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function Page4() {
4949
throw new Error(`HTTP error! status: ${response.status}`);
5050
}
5151

52-
alert("수령 완료!");
52+
alert('수령 완료!');
5353

5454
}
5555
};

getcloser/frontend/src/components/Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"use client";
1+
'use client';
22

33
import React from 'react';
44

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
import * as React from "react"
2-
import { Slot } from "@radix-ui/react-slot"
3-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from 'react';
2+
import { Slot } from '@radix-ui/react-slot';
3+
import { cva, type VariantProps } from 'class-variance-authority';
44

5-
import { cn } from "@/lib/utils"
5+
import { cn } from '@/lib/utils';
66

77
const buttonVariants = cva(
8-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
8+
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
99
{
1010
variants: {
1111
variant: {
12-
default: "bg-yellow-100 text-emerald-900 hover:bg-primary/90",
12+
default: 'bg-yellow-100 text-emerald-900 hover:bg-primary/90',
1313
destructive:
14-
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
14+
'bg-destructive text-destructive-foreground hover:bg-destructive/90',
1515
outline:
16-
"border border-input text-yellow-100 hover:bg-accent hover:text-accent-foreground",
16+
'border border-input text-yellow-100 hover:bg-accent hover:text-accent-foreground',
1717
secondary:
18-
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
19-
ghost: "hover:bg-accent hover:text-accent-foreground",
20-
link: "text-primary underline-offset-4 hover:underline",
18+
'bg-secondary text-secondary-foreground hover:bg-secondary/80',
19+
ghost: 'hover:bg-accent hover:text-accent-foreground',
20+
link: 'text-primary underline-offset-4 hover:underline',
2121
},
2222
size: {
23-
default: "h-10 px-4 py-2",
24-
sm: "h-9 rounded-md px-3",
25-
lg: "h-11 rounded-md px-8",
26-
icon: "h-10 w-10",
23+
default: 'h-10 px-4 py-2',
24+
sm: 'h-9 rounded-md px-3',
25+
lg: 'h-11 rounded-md px-8',
26+
icon: 'h-10 w-10',
2727
},
2828
},
2929
defaultVariants: {
30-
variant: "default",
31-
size: "default",
30+
variant: 'default',
31+
size: 'default',
3232
},
3333
}
34-
)
34+
);
3535

3636
export interface ButtonProps
3737
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
@@ -41,16 +41,16 @@ export interface ButtonProps
4141

4242
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
4343
({ className, variant, size, asChild = false, ...props }, ref) => {
44-
const Comp = asChild ? Slot : "button"
44+
const Comp = asChild ? Slot : 'button';
4545
return (
4646
<Comp
4747
className={cn(buttonVariants({ variant, size, className }))}
4848
ref={ref}
4949
{...props}
5050
/>
51-
)
51+
);
5252
}
53-
)
54-
Button.displayName = "Button"
53+
);
54+
Button.displayName = 'Button';
5555

56-
export { Button, buttonVariants }
56+
export { Button, buttonVariants };
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import * as React from "react"
1+
import * as React from 'react';
22

3-
import { cn } from "@/lib/utils"
3+
import { cn } from '@/lib/utils';
44

5-
const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
5+
const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(
66
({ className, type, ...props }, ref) => {
77
return (
88
<input
99
type={type}
1010
className={cn(
11-
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
11+
'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
1212
className
1313
)}
1414
ref={ref}
1515
{...props}
1616
/>
17-
)
17+
);
1818
}
19-
)
20-
Input.displayName = "Input"
19+
);
20+
Input.displayName = 'Input';
2121

22-
export { Input }
22+
export { Input };
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
"use client"
1+
'use client';
22

3-
import * as React from "react"
4-
import * as LabelPrimitive from "@radix-ui/react-label"
5-
import { cva, type VariantProps } from "class-variance-authority"
3+
import * as React from 'react';
4+
import * as LabelPrimitive from '@radix-ui/react-label';
5+
import { cva, type VariantProps } from 'class-variance-authority';
66

7-
import { cn } from "@/lib/utils"
7+
import { cn } from '@/lib/utils';
88

99
const labelVariants = cva(
10-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
11-
)
10+
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'
11+
);
1212

1313
const Label = React.forwardRef<
1414
React.ElementRef<typeof LabelPrimitive.Root>,
@@ -20,7 +20,7 @@ const Label = React.forwardRef<
2020
className={cn(labelVariants(), className)}
2121
{...props}
2222
/>
23-
))
24-
Label.displayName = LabelPrimitive.Root.displayName
23+
));
24+
Label.displayName = LabelPrimitive.Root.displayName;
2525

26-
export { Label }
26+
export { Label };

0 commit comments

Comments
 (0)