Skip to content

Commit 69de900

Browse files
authored
chore(*): 린트 설정을 진행합니다. (#31)
1 parent 5a7c188 commit 69de900

31 files changed

+678
-944
lines changed

.changeset/famous-actors-chew.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"desktop": patch
3+
"mobile": patch
4+
"@setaday/ui": patch
5+
---
6+
7+
Update Dependencies

.eslintignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
public
2+
dist
3+
pnpm-lock.yaml
4+
pnpm-workspace.yaml
5+
6+
# ignore config files
7+
.eslint.config.js
8+
commitlint.config.js
9+
tailwind.config.ts
10+
postcss.config.js

.prettierrc.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export default {
2+
arrowParens: "always",
3+
singleQuote: false,
4+
bracketSpacing: true,
5+
trailingComma: "all",
6+
semi: true,
7+
printWidth: 120,
8+
tabWidth: 2,
9+
plugins: [
10+
"@trivago/prettier-plugin-sort-imports",
11+
"prettier-plugin-tailwindcss",
12+
],
13+
};

apps/desktop/.eslintrc.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
extends: ["../../eslint.config.js", "next/core-web-vitals"],
3+
ignorePatterns: ["dist"],
4+
};

apps/desktop/.eslintrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

apps/desktop/app/layout.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import "./globals.css";
12
import type { Metadata } from "next";
23
import localFont from "next/font/local";
3-
import "./globals.css";
44

55
const geistSans = localFont({
66
src: "./fonts/GeistVF.woff",
@@ -23,9 +23,7 @@ export default function RootLayout({
2323
}>) {
2424
return (
2525
<html lang="en">
26-
<body className={`${geistSans.variable} ${geistMono.variable}`}>
27-
{children}
28-
</body>
26+
<body className={`${geistSans.variable} ${geistMono.variable}`}>{children}</body>
2927
</html>
3028
);
3129
}

apps/desktop/app/page.tsx

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
import Image from "next/image";
21
import "../styles/globals.css";
32
import styles from "./page.module.css";
3+
import Image from "next/image";
44

55
export default function Home() {
66
return (
77
<div className={styles.page}>
88
<main className={styles.main}>
9-
<Image
10-
className={styles.logo}
11-
src="/next.svg"
12-
alt="Next.js logo"
13-
width={180}
14-
height={38}
15-
priority
16-
/>
9+
<Image className={styles.logo} src="/next.svg" alt="Next.js logo" width={180} height={38} priority />
1710
<ol>
1811
<li>
1912
Get started by editing <code>app/page.tsx</code>
@@ -28,13 +21,7 @@ export default function Home() {
2821
target="_blank"
2922
rel="noopener noreferrer"
3023
>
31-
<Image
32-
className={styles.logo}
33-
src="/vercel.svg"
34-
alt="Vercel logomark"
35-
width={20}
36-
height={20}
37-
/>
24+
<Image className={styles.logo} src="/vercel.svg" alt="Vercel logomark" width={20} height={20} />
3825
Deploy now
3926
</a>
4027
<a
@@ -53,41 +40,23 @@ export default function Home() {
5340
target="_blank"
5441
rel="noopener noreferrer"
5542
>
56-
<Image
57-
aria-hidden
58-
src="/file-text.svg"
59-
alt="File icon"
60-
width={16}
61-
height={16}
62-
/>
43+
<Image aria-hidden src="/file-text.svg" alt="File icon" width={16} height={16} />
6344
Learn
6445
</a>
6546
<a
6647
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
6748
target="_blank"
6849
rel="noopener noreferrer"
6950
>
70-
<Image
71-
aria-hidden
72-
src="/window.svg"
73-
alt="Window icon"
74-
width={16}
75-
height={16}
76-
/>
51+
<Image aria-hidden src="/window.svg" alt="Window icon" width={16} height={16} />
7752
Examples
7853
</a>
7954
<a
8055
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
8156
target="_blank"
8257
rel="noopener noreferrer"
8358
>
84-
<Image
85-
aria-hidden
86-
src="/globe.svg"
87-
alt="Globe icon"
88-
width={16}
89-
height={16}
90-
/>
59+
<Image aria-hidden src="/globe.svg" alt="Globe icon" width={16} height={16} />
9160
Go to nextjs.org →
9261
</a>
9362
</footer>

apps/desktop/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@
1111
},
1212
"dependencies": {
1313
"@setaday/ui": "workspace:*",
14+
"next": "15.0.0-rc.0",
1415
"react": "19.0.0-rc-f994737d14-20240522",
15-
"react-dom": "19.0.0-rc-f994737d14-20240522",
16-
"next": "15.0.0-rc.0"
16+
"react-dom": "19.0.0-rc-f994737d14-20240522"
1717
},
1818
"devDependencies": {
19-
"@repo/eslint-config": "workspace:*",
20-
"@repo/typescript-config": "workspace:*",
21-
"typescript": "^5",
19+
"@setaday/eslint-config": "workspace:*",
20+
"@setaday/typescript-config": "workspace:*",
2221
"@types/node": "^20",
2322
"@types/react": "^18",
2423
"@types/react-dom": "^18",
2524
"eslint": "^8",
26-
"eslint-config-next": "15.0.0-rc.0"
25+
"eslint-config-next": "15.0.0-rc.0",
26+
"eslint-plugin-jsx-a11y": "^6.10.0",
27+
"typescript": "^5"
2728
}
2829
}

apps/desktop/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@repo/typescript-config/nextjs.json",
2+
"extends": "@setaday/typescript-config/nextjs.json",
33
"compilerOptions": {
44
"plugins": [
55
{

apps/mobile/.eslintrc.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
extends: ["../../eslint.config.js", "next/core-web-vitals"],
3+
ignorePatterns: ["dist"],
4+
};

0 commit comments

Comments
 (0)