Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -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",
},
};
2 changes: 1 addition & 1 deletion .github/workflows/DAILYSNAP-FE-PR-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -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: [],
};
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# DailySnap-FE

3 changes: 0 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -19,7 +17,6 @@
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.jhsonny.DailySnapFE"
Expand Down
12 changes: 6 additions & 6 deletions app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -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);
});
});
Expand Down
8 changes: 3 additions & 5 deletions app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { SafeAreaView, ScrollView, Text } from 'react-native';
import { SafeAreaView, ScrollView, Text } from "react-native";

export default function App() {
return (
<SafeAreaView
style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}
>
<ScrollView style={{ width: '100%', paddingHorizontal: 16 }}>
<SafeAreaView style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<ScrollView style={{ width: "100%", paddingHorizontal: 16 }}>
<Text>App.tsx to start working on your app!</Text>
</ScrollView>
</SafeAreaView>
Expand Down
2 changes: 1 addition & 1 deletion app/login/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { View, Text } from 'react-native';
import { View, Text } from "react-native";

export default function Login() {
return (
Expand Down
2 changes: 1 addition & 1 deletion assets/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as search } from './search.svg';
export { default as search } from "./search.svg";
6 changes: 3 additions & 3 deletions assets/types/svg.d.ts
Original file line number Diff line number Diff line change
@@ -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<SvgProps>;
export default content;
}
2 changes: 1 addition & 1 deletion entities/user/schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { z } from 'zod';
import { z } from "zod";

// @FIXME: dummy
export const userSchema = z.object({
Expand Down
7 changes: 2 additions & 5 deletions features/auth/ui/SocialLoginButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { View, Button } from 'react-native';
import { View, Button } from "react-native";

export function SocialLoginButtons() {
return (
<View>
<Button
title="Login with Google"
onPress={() => console.log('Google Login')}
/>
<Button title="Login with Google" onPress={() => console.log("Google Login")} />
</View>
);
}
28 changes: 15 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion shared/api/query-client.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { QueryClient } from '@tanstack/react-query';
import { QueryClient } from "@tanstack/react-query";

export const queryClient = new QueryClient();
4 changes: 2 additions & 2 deletions shared/ui/icon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Icons from '@/assets/icons';
import type { SvgProps } from 'react-native-svg';
import * as Icons from "@/assets/icons";
import type { SvgProps } from "react-native-svg";

export type IconsType = typeof Icons;

Expand Down