Skip to content

Commit 25e242a

Browse files
committed
fix eslint
1 parent d7e4894 commit 25e242a

File tree

233 files changed

+306
-55
lines changed

Some content is hidden

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

233 files changed

+306
-55
lines changed

.eslintrc.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
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' 사용
@@ -19,8 +26,7 @@
1926
"parent",
2027
"sibling",
2128
"index",
22-
"object",
23-
"type"
29+
"object"
2430
],
2531
"pathGroups": [
2632
{
@@ -29,13 +35,9 @@
2935
"position": "after"
3036
}
3137
],
32-
"pathGroupsExcludedImportTypes": ["type"],
33-
"newlines-between": "always",
34-
"alphabetize": {
35-
"order": "asc",
36-
"caseInsensitive": true
37-
}
38+
"distinctGroup": false,
39+
"newlines-between": "always"
3840
}
3941
]
4042
}
41-
}
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)