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
40 changes: 35 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,43 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["next", "prettier", "plugin:@typescript-eslint/recommended", "@feature-sliced"],
"plugins": ["@typescript-eslint", "unused-imports"],

"extends": [
"next",
"prettier",
"plugin:@typescript-eslint/recommended",
"@feature-sliced"
],
"plugins": [
"@typescript-eslint",
"unused-imports"
],
"rules": {
"unused-imports/no-unused-imports": "error", // 사용하지 않는 import 제거
"@typescript-eslint/consistent-type-imports": "error", // type 가져오기 경우 import type { Type } from 'module' 사용
"@typescript-eslint/no-unused-expressions": "off", // 사용하지 않는 표현식 허용
"import/no-internal-modules": "off", // 내부 모듈 사용 허용 (fsd index 파일을 사용하기 위함)
"@typescript-eslint/no-require-imports": "off"
"@typescript-eslint/no-require-imports": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object"
],
"pathGroups": [
{
"pattern": "@/**",
"group": "internal",
"position": "after"
}
],
"distinctGroup": false,
"newlines-between": "always"
}
]
}
}
}
10 changes: 9 additions & 1 deletion .vscode/setting.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
{
"tailwindCSS.experimental.classRegex": [["cn\\(['\"]([^'\"]*)['\"]", "'([^']*)'"]],
"editor.formatOnSave": true,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": false
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": false
}
}
1 change: 1 addition & 0 deletions src/app/(web)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import Image from 'next/image';
import Link from 'next/link';
import { GoogleAnalytics } from 'nextjs-google-analytics';

import left from '@public/downloads/left.png';
import android from '@public/downloads/right-android.png';
import ios from '@public/downloads/right-ios.png';
Expand Down
2 changes: 1 addition & 1 deletion src/app/_providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import type { PropsWithChildren } from 'react';
import React from 'react';
import type { PropsWithChildren } from 'react';

const Providers = ({ children }: PropsWithChildren) => {
const queryClient = new QueryClient();
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import '@/app/globals.css';

import type { Metadata } from 'next';

import { ResortData } from '@/entities/resort';
import KakaoScript from '@/shared/lib/kakao-script';
import { Toaster } from '@/shared/ui/toaster';

import Providers from './_providers';

export async function generateMetadata({ params }: { params: { id: string } }): Promise<Metadata> {
Expand Down
1 change: 1 addition & 0 deletions src/app/mobile/slope/[resortId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import SlopeStatusPage from '@/views/slope-status/ui/slope-status-page';

const Page = ({ params }: { params: { resortId: string } }) => {
Expand Down
1 change: 1 addition & 0 deletions src/app/mobile/webcam/[resortId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import WebcamMobileMapPage from '@/views/webcam/ui/webcam-mobile-map-page';

const Page = ({ params }: { params: { resortId: string } }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/resort/api/get-resort.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { apiClient } from '@/shared/api/base';

import type { Resort } from '../model';

export const getResorts = async (): Promise<Resort[]> => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/resort/api/get-vote.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { apiClient } from '@/shared/api/base';

import type { Vote } from '../model';

export const getVote = async (resortId: number): Promise<Vote> => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/resort/api/get-weather.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { apiClient } from '@/shared/api/base';

import type { WeatherResponse } from '../model';

export const getWeather = async (resortId: number): Promise<WeatherResponse> => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/resort/api/query/resort.queries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { queryOptions } from '@tanstack/react-query';

import { getResorts } from '../get-resort';
import { getVote } from '../get-vote';

Expand Down
1 change: 1 addition & 0 deletions src/entities/resort/api/query/weather.queries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { queryOptions } from '@tanstack/react-query';

import { getWeather } from '../get-weather';

export const weatherQueries = {
Expand Down
1 change: 1 addition & 0 deletions src/entities/resort/api/use-post-vote.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from '@tanstack/react-query';

import { resortApi } from '..';

export const usePostVote = (resortId: number) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/api/get-slope.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { apiClient } from '@/shared/api/base';

import type { SlopeResponse } from '../model';

export const getSlope = async (resortId: number): Promise<SlopeResponse> => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/api/query/slope.queries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { queryOptions } from '@tanstack/react-query';

import { getSlope } from '../get-slope';

export const slopeQueries = {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/alpensia/alpha-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const AlphaPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/alpensia/bravo-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const BravoPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/alpensia/charlie-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const CharliePath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/alpensia/delta-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const DeltaPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/alpensia/echo-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const EchoPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/alpensia/foxtrot-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const FoxtrotPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/eden/basic-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const BasicPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/eden/jupiter-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const JupiterPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/eden/main-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const MainPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/eden/mercury-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const MercuryPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/eden/saturn-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const SaturnPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/eden/uranus-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const UranusPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/eden/venus-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const VenusPath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const DeerPath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const DragonPath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const HorsePath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const JaguarPath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const LeopardPath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const PandaPath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const PegasusPath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const PumaPath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const RabbitPath = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const ZebraPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/gonjiam/cnp1-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const CNP1Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/gonjiam/cnp2-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const CNP2Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/gonjiam/gram1-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Gram1Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/gonjiam/gram2-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Gram2Path = ({ color }: { color?: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const ThinkyouBridgePath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/gonjiam/thinkyou1-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Thinkyou1Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/gonjiam/thinkyou2-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Thinkyou2Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/gonjiam/thinkyou3-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Thinkyou3Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/gonjiam/whisen-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const WhisenPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/gonjiam/whynot-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const WhynotPath = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/high1/apollo1-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Apollo1Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/high1/apollo2-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Apollo2Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/high1/apollo3-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Apollo3Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/high1/apollo4-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Apollo4Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/high1/apollo5-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Apollo5Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/high1/apollo6-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Apollo6Path = ({ color }: { color?: string }) => {
Expand Down
1 change: 1 addition & 0 deletions src/entities/slope/model/image/high1/athena2-path.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';

import { cn } from '@/shared/lib';

const Athena2Path = ({ color }: { color?: string }) => {
Expand Down
Loading