Skip to content

Commit 005b10c

Browse files
authored
Feat/add show video post message (#58)
* chore: add import order * feat: add showVideoUrl AppMessageMethod * fix eslint
1 parent 21f4b72 commit 005b10c

File tree

234 files changed

+354
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+354
-54
lines changed

.eslintrc.json

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,43 @@
11
{
22
"parser": "@typescript-eslint/parser",
3-
"extends": ["next", "prettier", "plugin:@typescript-eslint/recommended", "@feature-sliced"],
4-
"plugins": ["@typescript-eslint", "unused-imports"],
5-
3+
"extends": [
4+
"next",
5+
"prettier",
6+
"plugin:@typescript-eslint/recommended",
7+
"@feature-sliced"
8+
],
9+
"plugins": [
10+
"@typescript-eslint",
11+
"unused-imports"
12+
],
613
"rules": {
714
"unused-imports/no-unused-imports": "error", // 사용하지 않는 import 제거
815
"@typescript-eslint/consistent-type-imports": "error", // type 가져오기 경우 import type { Type } from 'module' 사용
916
"@typescript-eslint/no-unused-expressions": "off", // 사용하지 않는 표현식 허용
1017
"import/no-internal-modules": "off", // 내부 모듈 사용 허용 (fsd index 파일을 사용하기 위함)
11-
"@typescript-eslint/no-require-imports": "off"
18+
"@typescript-eslint/no-require-imports": "off",
19+
"import/order": [
20+
"error",
21+
{
22+
"groups": [
23+
"builtin",
24+
"external",
25+
"internal",
26+
"parent",
27+
"sibling",
28+
"index",
29+
"object"
30+
],
31+
"pathGroups": [
32+
{
33+
"pattern": "@/**",
34+
"group": "internal",
35+
"position": "after"
36+
}
37+
],
38+
"distinctGroup": false,
39+
"newlines-between": "always"
40+
}
41+
]
1242
}
13-
}
43+
}

.vscode/setting.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
{
22
"tailwindCSS.experimental.classRegex": [["cn\\(['\"]([^'\"]*)['\"]", "'([^']*)'"]],
3-
"editor.formatOnSave": true,
3+
"editor.formatOnSave": false,
44
"editor.codeActionsOnSave": {
55
"source.fixAll.eslint": true
6+
},
7+
"[typescript]": {
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
9+
"editor.formatOnSave": false
10+
},
11+
"[typescriptreact]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode",
13+
"editor.formatOnSave": false
614
}
715
}

src/app/(web)/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import Image from 'next/image';
44
import Link from 'next/link';
55
import { GoogleAnalytics } from 'nextjs-google-analytics';
6+
67
import left from '@public/downloads/left.png';
78
import android from '@public/downloads/right-android.png';
89
import ios from '@public/downloads/right-ios.png';

src/app/_providers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
44
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
5-
import type { PropsWithChildren } from 'react';
65
import React from 'react';
6+
import type { PropsWithChildren } from 'react';
77

88
const Providers = ({ children }: PropsWithChildren) => {
99
const queryClient = new QueryClient();

src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import '@/app/globals.css';
22

33
import type { Metadata } from 'next';
4+
45
import { ResortData } from '@/entities/resort';
56
import KakaoScript from '@/shared/lib/kakao-script';
67
import { Toaster } from '@/shared/ui/toaster';
8+
79
import Providers from './_providers';
810

911
export async function generateMetadata({ params }: { params: { id: string } }): Promise<Metadata> {

src/app/mobile/slope/[resortId]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
23
import SlopeStatusPage from '@/views/slope-status/ui/slope-status-page';
34

45
const Page = ({ params }: { params: { resortId: string } }) => {

src/app/mobile/webcam/[resortId]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
23
import WebcamMobileMapPage from '@/views/webcam/ui/webcam-mobile-map-page';
34

45
const Page = ({ params }: { params: { resortId: string } }) => {

src/entities/resort/api/get-resort.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { apiClient } from '@/shared/api/base';
2+
23
import type { Resort } from '../model';
34

45
export const getResorts = async (): Promise<Resort[]> => {

src/entities/resort/api/get-vote.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { apiClient } from '@/shared/api/base';
2+
23
import type { Vote } from '../model';
34

45
export const getVote = async (resortId: number): Promise<Vote> => {

src/entities/resort/api/get-weather.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { apiClient } from '@/shared/api/base';
2+
23
import type { WeatherResponse } from '../model';
34

45
export const getWeather = async (resortId: number): Promise<WeatherResponse> => {

0 commit comments

Comments
 (0)