From a77cc1e51c885999d2aa681acb523f1db037c094 Mon Sep 17 00:00:00 2001 From: Nam Yooseong <102887277+meteorqz6@users.noreply.github.com> Date: Wed, 28 May 2025 22:39:14 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20build=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 3 --- package-lock.json | 28 +++++++++++++++------------- package.json | 2 +- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/app.json b/app.json index 5beaf18..b89d0c3 100644 --- a/app.json +++ b/app.json @@ -4,12 +4,10 @@ "slug": "DailySnap-FE", "version": "1.0.0", "orientation": "portrait", - "icon": "./assets/icon.png", "scheme": "myapp", "userInterfaceStyle": "light", "newArchEnabled": true, "splash": { - "image": "./assets/splash-icon.png", "resizeMode": "contain", "backgroundColor": "#ffffff" }, @@ -19,7 +17,6 @@ }, "android": { "adaptiveIcon": { - "foregroundImage": "./assets/adaptive-icon.png", "backgroundColor": "#ffffff" }, "package": "com.jhsonny.DailySnapFE" diff --git a/package-lock.json b/package-lock.json index 47a8440..9220a25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,10 +8,15 @@ "name": "dailysnap-fe", "version": "1.0.0", "dependencies": { - "expo": "~52.0.41", + "@react-native-community/netinfo": "^11.4.1", + "@tanstack/react-query": "^5.76.1", + "expo": "~52.0.46", + "expo-router": "~4.0.21", "expo-status-bar": "~2.0.1", "react": "18.3.1", - "react-native": "0.76.7" + "react-native": "0.76.9", + "react-native-svg": "15.8.0", + "zod": "^3.25.7" }, "devDependencies": { "@babel/core": "^7.25.2", @@ -12147,9 +12152,9 @@ } }, "node_modules/react-native-svg": { - "version": "15.12.0", - "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.12.0.tgz", - "integrity": "sha512-iE25PxIJ6V0C6krReLquVw6R0QTsRTmEQc4K2Co3P6zsimU/jltcDBKYDy1h/5j9S/fqmMeXnpM+9LEWKJKI6A==", + "version": "15.8.0", + "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-15.8.0.tgz", + "integrity": "sha512-KHJzKpgOjwj1qeZzsBjxNdoIgv2zNCO9fVcoq2TEhTRsVV5DGTZ9JzUZwybd7q4giT/H3RdtqC3u44dWdO0Ffw==", "license": "MIT", "dependencies": { "css-select": "^5.1.0", @@ -13238,16 +13243,13 @@ "node": ">=0.10.0" } }, - "node_modules/split": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", + "node_modules/split-on-first": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==", "license": "MIT", - "dependencies": { - "through": "2" - }, "engines": { - "node": "*" + "node": ">=6" } }, "node_modules/sprintf-js": { diff --git a/package.json b/package.json index c614f55..9291d4f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "expo-status-bar": "~2.0.1", "react": "18.3.1", "react-native": "0.76.9", - "react-native-svg": "^15.12.0", + "react-native-svg": "15.8.0", "zod": "^3.25.7" }, "devDependencies": { From 6ecc16cb19990efcb3ac855622106f285de03c07 Mon Sep 17 00:00:00 2001 From: Nam Yooseong <102887277+meteorqz6@users.noreply.github.com> Date: Wed, 28 May 2025 22:46:33 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20npm=20run=20lint=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 38 ++++++++++++------------ .github/workflows/DAILYSNAP-FE-PR-CI.yml | 2 +- .prettierrc.js | 6 ++-- README.md | 1 - app/_layout.tsx | 12 ++++---- app/index.tsx | 8 ++--- app/login/index.tsx | 2 +- assets/icons/index.ts | 2 +- assets/types/svg.d.ts | 6 ++-- entities/user/schema.ts | 2 +- features/auth/ui/SocialLoginButtons.tsx | 7 ++--- shared/api/query-client.ts | 2 +- shared/ui/icon/index.tsx | 4 +-- 13 files changed, 43 insertions(+), 49 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 7096ad7..1595451 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,30 +1,30 @@ // https://docs.expo.dev/guides/using-eslint/ // EXPO SDK 53 이상에서부터 defineConfig를 사용할 수 있어, eslint 버전을 낮추고 legacy 설정을 사용합니다. module.exports = { - extends: ['expo', 'prettier'], - plugins: ['prettier'], + extends: ["expo", "prettier"], + plugins: ["prettier"], ignorePatterns: [ - 'node_modules', - 'dist', - 'build', - 'public', - 'src/assets', - '.eslintrc.js', - 'commitlint.config.js', - 'babel.config.js', - 'metro.config.js', - 'expo-env.d.ts', + "node_modules", + "dist", + "build", + "public", + "src/assets", + ".eslintrc.js", + "commitlint.config.js", + "babel.config.js", + "metro.config.js", + "expo-env.d.ts", ], rules: { - 'prettier/prettier': 'error', - 'react/react-in-jsx-scope': 'off', - '@typescript-eslint/consistent-type-imports': 'error', + "prettier/prettier": "error", + "react/react-in-jsx-scope": "off", + "@typescript-eslint/consistent-type-imports": "error", }, - parser: '@typescript-eslint/parser', + parser: "@typescript-eslint/parser", parserOptions: { - project: './tsconfig.json', + project: "./tsconfig.json", tsconfigRootDir: __dirname, - ecmaVersion: 'latest', - sourceType: 'module', + ecmaVersion: "latest", + sourceType: "module", }, }; diff --git a/.github/workflows/DAILYSNAP-FE-PR-CI.yml b/.github/workflows/DAILYSNAP-FE-PR-CI.yml index 1161b16..571e460 100644 --- a/.github/workflows/DAILYSNAP-FE-PR-CI.yml +++ b/.github/workflows/DAILYSNAP-FE-PR-CI.yml @@ -19,7 +19,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22.14.0 - cache: 'npm' + cache: "npm" - name: 📦 Install dependencies run: npm install diff --git a/.prettierrc.js b/.prettierrc.js index a4afff8..6ca3736 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,7 +1,7 @@ module.exports = { - trailingComma: 'es5', + trailingComma: "es5", tabWidth: 2, printWidth: 100, - arrowParens: 'avoid', - plugins: ['@trivago/prettier-plugin-sort-imports'], + arrowParens: "avoid", + plugins: [], }; diff --git a/README.md b/README.md index 9e3c75b..9da3b00 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ # DailySnap-FE - diff --git a/app/_layout.tsx b/app/_layout.tsx index 9798b34..26fd95a 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -1,10 +1,10 @@ -import NetInfo from '@react-native-community/netinfo'; -import { onlineManager, QueryClientProvider } from '@tanstack/react-query'; -import { Stack } from 'expo-router'; -import { queryClient } from '../shared/api/query-client'; +import NetInfo from "@react-native-community/netinfo"; +import { onlineManager, QueryClientProvider } from "@tanstack/react-query"; +import { Stack } from "expo-router"; +import { queryClient } from "../shared/api/query-client"; -onlineManager.setEventListener((setOnline) => { - return NetInfo.addEventListener((state) => { +onlineManager.setEventListener(setOnline => { + return NetInfo.addEventListener(state => { setOnline(!!state.isConnected); }); }); diff --git a/app/index.tsx b/app/index.tsx index 52c5333..9dbfd26 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -1,11 +1,9 @@ -import { SafeAreaView, ScrollView, Text } from 'react-native'; +import { SafeAreaView, ScrollView, Text } from "react-native"; export default function App() { return ( - - + + App.tsx to start working on your app! diff --git a/app/login/index.tsx b/app/login/index.tsx index 91b2a24..c8ce499 100644 --- a/app/login/index.tsx +++ b/app/login/index.tsx @@ -1,4 +1,4 @@ -import { View, Text } from 'react-native'; +import { View, Text } from "react-native"; export default function Login() { return ( diff --git a/assets/icons/index.ts b/assets/icons/index.ts index 9326531..c900ca9 100644 --- a/assets/icons/index.ts +++ b/assets/icons/index.ts @@ -1 +1 @@ -export { default as search } from './search.svg'; +export { default as search } from "./search.svg"; diff --git a/assets/types/svg.d.ts b/assets/types/svg.d.ts index f0b6cee..bd4822e 100644 --- a/assets/types/svg.d.ts +++ b/assets/types/svg.d.ts @@ -1,6 +1,6 @@ -declare module '*.svg' { - import type { SvgProps } from 'react-native-svg'; - import type React from 'react'; +declare module "*.svg" { + import type { SvgProps } from "react-native-svg"; + import type React from "react"; const content: React.FC; export default content; } diff --git a/entities/user/schema.ts b/entities/user/schema.ts index 31dcfb4..f1fae98 100644 --- a/entities/user/schema.ts +++ b/entities/user/schema.ts @@ -1,4 +1,4 @@ -import { z } from 'zod'; +import { z } from "zod"; // @FIXME: dummy export const userSchema = z.object({ diff --git a/features/auth/ui/SocialLoginButtons.tsx b/features/auth/ui/SocialLoginButtons.tsx index 7a52549..dbaabce 100644 --- a/features/auth/ui/SocialLoginButtons.tsx +++ b/features/auth/ui/SocialLoginButtons.tsx @@ -1,12 +1,9 @@ -import { View, Button } from 'react-native'; +import { View, Button } from "react-native"; export function SocialLoginButtons() { return ( -