From e0ca9a693e21869e14aeb83a645ea3f3efe51090 Mon Sep 17 00:00:00 2001 From: wookki Date: Sat, 20 Jan 2024 13:53:11 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=BD=94=EB=93=9C=20=EB=A6=AC?= =?UTF-8?q?=EB=B7=B0=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.json | 6 +++--- src/app/car-details/hydrated-page.tsx | 7 +++---- .../additional-info/car-details/CarColorPicker.tsx | 6 +++--- src/components/additional-info/car-details/CarDetails.tsx | 5 ++--- src/tests/test-utils.tsx | 1 - tsconfig.json | 3 --- vitest.config.ts | 1 - vitest.setup.ts | 1 - 8 files changed, 11 insertions(+), 19 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3399b6d5..bd0b0863 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -160,9 +160,9 @@ "test.{ts,tsx}", // repos with a single test file "test-*.{ts,tsx}", // repos with multiple top-level test files "**/*{.,_}{test,spec}.{ts,tsx}", // tests where the extension or filename suffix denotes that it is a test - "**/jest.config.ts", // jest config - "**/jest.setup.ts", // jest setup - "**/test.utils.tsx" // test util file + "**/vitest.config.ts", // jest config + "**/vitest.setup.ts", // jest setup + "**/test-utils.tsx" // test util file ], "optionalDependencies": false } diff --git a/src/app/car-details/hydrated-page.tsx b/src/app/car-details/hydrated-page.tsx index 096a31ad..e33f899d 100644 --- a/src/app/car-details/hydrated-page.tsx +++ b/src/app/car-details/hydrated-page.tsx @@ -5,10 +5,9 @@ import { useState } from 'react'; import { useForm } from 'react-hook-form'; -import CarColorPicker from '@additional-info/car-details/CarColorPicker'; -import CarDetails from '@additional-info/car-details/CarDetails'; -import DetailsLoading from '@additional-info/details-loading/DetailsLoading'; - +import CarColorPicker from '@components/additional-info/car-details/CarColorPicker'; +import CarDetails from '@components/additional-info/car-details/CarDetails'; +import DetailsLoading from '@components/additional-info/details-loading/DetailsLoading'; import useCarColor from '@remote/queries/additional-info/car-details/useCarColor'; import useCarDriving from '@remote/queries/additional-info/car-details/useCarDriving'; import useCarParking from '@remote/queries/additional-info/car-details/useCarParking'; diff --git a/src/components/additional-info/car-details/CarColorPicker.tsx b/src/components/additional-info/car-details/CarColorPicker.tsx index cf2ef3d8..592a2c28 100644 --- a/src/components/additional-info/car-details/CarColorPicker.tsx +++ b/src/components/additional-info/car-details/CarColorPicker.tsx @@ -1,10 +1,10 @@ import { FieldValues, UseFormRegister } from 'react-hook-form'; -import ColorPicker from '@additional-info/car-details/color-picker/ColorPicker'; -import Description from '@additional-info/description/Description'; import classNames from 'classnames/bind'; -import { IAdditionalInfo } from '@/remote/api/types/additional-info'; +import ColorPicker from '@components/additional-info/car-details/color-picker/ColorPicker'; +import Description from '@components/additional-info/description/Description'; +import { IAdditionalInfo } from '@remote/api/types/additional-info'; import FixedBottomButton from '@shared/fixedBottomButton/FixedBottomButton'; import Spacing from '@shared/spacing/Spacing'; diff --git a/src/components/additional-info/car-details/CarDetails.tsx b/src/components/additional-info/car-details/CarDetails.tsx index 43c593c9..0052a4c4 100644 --- a/src/components/additional-info/car-details/CarDetails.tsx +++ b/src/components/additional-info/car-details/CarDetails.tsx @@ -1,8 +1,7 @@ import { FieldValues, UseFormRegister } from 'react-hook-form'; -import Description from '@additional-info/description/Description'; - -import { IAdditionalInfo } from '@/remote/api/types/additional-info'; +import Description from '@components/additional-info/description/Description'; +import { IAdditionalInfo } from '@remote/api/types/additional-info'; import FixedBottomButton from '@shared/fixedBottomButton/FixedBottomButton'; import Flex from '@shared/flex/Flex'; import Radio from '@shared/radio/Radio'; diff --git a/src/tests/test-utils.tsx b/src/tests/test-utils.tsx index 460dc906..2857f302 100644 --- a/src/tests/test-utils.tsx +++ b/src/tests/test-utils.tsx @@ -1,4 +1,3 @@ -/* eslint-disable import/no-extraneous-dependencies */ import { PropsWithChildren, ReactElement } from 'react'; import { render } from '@testing-library/react'; diff --git a/tsconfig.json b/tsconfig.json index 0b9ede4b..1c6b4470 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -36,9 +36,6 @@ "@shared/*": [ "src/components/shared/*" ], - "@additional-info/*": [ - "src/components/additional-info/*" - ], "@styles/*": [ "src/styles/*" ], diff --git a/vitest.config.ts b/vitest.config.ts index f10edca8..aae8f8c7 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,4 +1,3 @@ -/* eslint-disable import/no-extraneous-dependencies */ import path from 'path'; import react from '@vitejs/plugin-react'; diff --git a/vitest.setup.ts b/vitest.setup.ts index d002a0db..ed6d94bb 100644 --- a/vitest.setup.ts +++ b/vitest.setup.ts @@ -1,4 +1,3 @@ -/* eslint-disable import/no-extraneous-dependencies */ import '@testing-library/jest-dom'; import { beforeAll, afterEach, afterAll } from 'vitest';