Skip to content

Commit 81d2094

Browse files
committed
fix: fix conflict eslint warn at unused vars and typescript interface
1 parent d0b88df commit 81d2094

File tree

5 files changed

+265
-54
lines changed

5 files changed

+265
-54
lines changed

.eslintrc.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"extends": "next/core-web-vitals",
3-
"plugins": ["simple-import-sort"],
3+
"plugins": ["simple-import-sort", "@typescript-eslint"],
4+
"parser": "@typescript-eslint/parser",
5+
"root": true,
46
"rules": {
57
"simple-import-sort/imports": "error",
68
"simple-import-sort/exports": "error",
7-
"no-unused-vars": "warn"
9+
"no-unused-vars": "off",
10+
"@typescript-eslint/no-unused-vars": "warn"
811
}
912
}

components/common/ui/Button.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import styled from "@emotion/styled";
2-
import { getIsMobile } from "@lib/handleCrossPlatform";
32
import type { ComponentProps, FC } from "react";
43
type ButtonProps = {
54
color?: "primary" | "secondary";
65
size?: "sm" | "md" | "lg";
7-
width?: string;
86
} & ComponentProps<"button">;
97

108
type StyledProps = Partial<ButtonProps>;
119

1210
const Button: FC<ButtonProps> = ({
1311
children,
14-
width = "10rem",
1512
color = "primary",
1613
size = "md",
1714
...props

components/common/ui/Retention.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ const Retention = () => {
1212
<br />
1313
모임이 더 있으신가요?
1414
</MarginText>
15-
<Button width={"16rem"} onClick={() => router.push("/")}>
16-
새로운 모임 만들기
17-
</Button>
15+
<Button onClick={() => router.push("/")}>새로운 모임 만들기</Button>
1816
<Wrapper>
1917
<Thumbnail width={16} height={16} />
2018
<Text>타임투밋</Text>

0 commit comments

Comments
 (0)