Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Feat: husky 적용 #97

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ module.exports = {
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'no-var': 'error',
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
},
};
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/issue-template.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
name: issue template
about: 미니 프로젝트 이슈 템플릿
title: "[ 페이지명 ] 이슈 내용"
title: '[ 페이지명 ] 이슈 내용'
labels: ''
assignees: ''

---

## Todo

- [ ] Todo1
- [ ] Todo2
- [ ] Todo3

## 참고자료

- 있으면 추가하고 없을 시 삭제 하세요.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dist
dist-ssr
*.local
.env
.eslintcache

# Editor directories and files
.vscode/*
Expand Down
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
npm run format
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
44 changes: 23 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<link
rel="stylesheet"
as="style"
crossorigin
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.css"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="icon" href="/favicon.png" />
<link href="https://fonts.googleapis.com/css2?family=ABeeZee&display=swap" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="닥터캘(Dr.Cal)" />
<meta property="og:description" content="대학병원 의사들을 위한 쉽고 빠른 연차·당직 관리 서비스" />
<meta property="og:url" content="drcal.netlify.app/" />
<title>Dr. Cal</title>
</head>

<head>
<meta charset="UTF-8" />
<link rel="stylesheet" as="style" crossorigin
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="icon" href="/favicon.png" />
<link href="https://fonts.googleapis.com/css2?family=ABeeZee&display=swap" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="닥터캘(Dr.Cal)" />
<meta property="og:description" content="대학병원 의사들을 위한 쉽고 빠른 연차·당직 관리 서비스" />
<meta property="og:url" content="drcal.netlify.app/" />
<title>Dr. Cal</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
22 changes: 22 additions & 0 deletions package-lock.json

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

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"scripts": {
"dev": "vite",
"build": "npm install & tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"lint": "eslint --cache .",
"preview": "vite preview",
"postinstall": "husky install",
"format": "prettier --cache --write ."
},
"dependencies": {
"@ag-grid-community/core": "^30.2.1",
Expand Down Expand Up @@ -37,6 +39,7 @@
"eslint": "^8.45.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"husky": "^8.0.3",
"prettier": "^3.0.0",
"typescript": "^5.0.2",
"vite": "^4.4.5"
Expand Down