Skip to content

Commit

Permalink
build: 프로젝트 초기 세팅
Browse files Browse the repository at this point in the history
- 깃허브 lint 에러 수정
  • Loading branch information
junghaesung79 committed Jun 14, 2024
1 parent 10fa977 commit c98680f
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 11 deletions.
58 changes: 58 additions & 0 deletions .pnp.cjs

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"eslint-plugin-react-refresh": "^0.4.7",
"stylelint": "^14.9.1",
"stylelint-config-standard": "^26.0.0",
"stylelint-config-standard-scss": "^4.0.0"
"stylelint-config-standard-scss": "^4.0.0",
"vite-tsconfig-paths": "^4.3.2"
}
}
2 changes: 2 additions & 0 deletions src/hooks/useImageUpload.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useRef, useState } from 'react';

import { uploadFile } from 'api/uploadFile';

export default function useImageUpload() {
const [imageFile, setImageFile] = useState('');
const [uploadError, setUploadError] = useState('');
Expand Down
2 changes: 1 addition & 1 deletion src/layout/Header/hooks/useMegaMenu.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react';

import { HeaderCategory, SubMenu } from 'utils/constant/category';
import { HeaderCategory, SubMenu } from 'models/headerCategory';

const useMegaMenu = (category: HeaderCategory[]) => {
const [panelMenuList, setPanelMenuList] = useState<SubMenu[] | null>();
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Coop/components/SoldoutModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { createPortal } from 'react-dom';

import styles from './SoldoutModal.module.scss';

interface SoldoutModalProps {
interface Props {
buttonText?: string;
modalSize: string;
hasFooter: boolean;
Expand All @@ -19,7 +19,7 @@ interface SoldoutModalProps {

export default function SoldOutModal({
buttonText = '', modalSize, hasFooter, isOpen, isOverflowVisible, onCancel, children,
}: SoldoutModalProps) {
}: Props) {
useEffect(() => {
if (isOpen) {
document.body.style.cssText = `
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Coop/hook/useGetDayOfWeek.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Day } from 'models/coop';

import dayjs from 'dayjs';

export type Day = '일' | '월' | '화' | '수' | '목' | '금' | '토';

export const getDayOfWeek = (date: string): Day => {
const dayOfWeek = dayjs(date).day();
switch (dayOfWeek) {
Expand Down
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
}
]
},
"include": [
"src",
"src/**/*.tsx",
"vite.config.ts",
],
"include": ["src", "vite.config.ts"],
"references": [{ "path": "./tsconfig.node.json" }]
}
38 changes: 38 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7780,6 +7780,13 @@ __metadata:
languageName: node
linkType: hard

"globrex@npm:^0.1.2":
version: 0.1.2
resolution: "globrex@npm:0.1.2"
checksum: adca162494a176ce9ecf4dd232f7b802956bb1966b37f60c15e49d2e7d961b66c60826366dc2649093cad5a0d69970cfa8875bd1695b5a1a2f33dcd2aa88da3c
languageName: node
linkType: hard

"gopd@npm:^1.0.1":
version: 1.0.1
resolution: "gopd@npm:1.0.1"
Expand Down Expand Up @@ -9801,6 +9808,7 @@ __metadata:
typescript: ^4.4.2
vite: ^5.2.12
vite-plugin-svgr: ^4.2.0
vite-tsconfig-paths: ^4.3.2
web-vitals: ^2.1.0
zod: ^3.23.8
zustand: ^4.5.2
Expand Down Expand Up @@ -14325,6 +14333,20 @@ __metadata:
languageName: node
linkType: hard

"tsconfck@npm:^3.0.3":
version: 3.1.0
resolution: "tsconfck@npm:3.1.0"
peerDependencies:
typescript: ^5.0.0
peerDependenciesMeta:
typescript:
optional: true
bin:
tsconfck: bin/tsconfck.js
checksum: c33cb853362dc45d5efbb4763b2cd07e5808533b6c6f84dad2dcc61f3fe6d22736ec9459233f47e9e90e8c430dd4ff284d5a09e85fa63ca570b9f144a87b1c76
languageName: node
linkType: hard

"tsconfig-paths@npm:^3.15.0":
version: 3.15.0
resolution: "tsconfig-paths@npm:3.15.0"
Expand Down Expand Up @@ -14784,6 +14806,22 @@ __metadata:
languageName: node
linkType: hard

"vite-tsconfig-paths@npm:^4.3.2":
version: 4.3.2
resolution: "vite-tsconfig-paths@npm:4.3.2"
dependencies:
debug: ^4.1.1
globrex: ^0.1.2
tsconfck: ^3.0.3
peerDependencies:
vite: "*"
peerDependenciesMeta:
vite:
optional: true
checksum: 7105ff641379f9f7055110f33067b236c8ee71b1390c0e6482412cdcc7a98c2e139c1c2a483d14fe9045d1977c14dc931e1ff302d6257ec919c70379db9d2419
languageName: node
linkType: hard

"vite@npm:^5.2.12":
version: 5.2.12
resolution: "vite@npm:5.2.12"
Expand Down

0 comments on commit c98680f

Please sign in to comment.