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.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/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 ( -