Skip to content

Commit c13bf3c

Browse files
committed
init: 개발환경 세팅
1 parent fb7596d commit c13bf3c

Some content is hidden

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

45 files changed

+8837
-1
lines changed

Diff for: .eslintrc.cjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
'plugin:prettier/recommended',
9+
],
10+
ignorePatterns: ['dist', '.eslintrc.cjs'],
11+
parser: '@typescript-eslint/parser',
12+
plugins: ['react-refresh', 'prettier'],
13+
rules: {
14+
'react-refresh/only-export-components': [
15+
'warn',
16+
{ allowConstantExport: true },
17+
],
18+
'prettier/prettier': 'error',
19+
},
20+
};

Diff for: .github/pull_request_template.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## ⚙️ PR 타입
2+
3+
- [ ] Feature
4+
- [ ] Hotfix
5+
6+
## ✨ 기능 설명 or 🚨 문제 상황
7+
8+
## 👨‍💻 구현 내용 or 👍 해결 내용
9+
10+
<!-- ## 스크린샷 - UI 관련인 경우 꼭 넣기! -->
11+
12+
<!-- ## 장애물 - 기능 구현 중 있었던 이슈 -->
13+
14+
## 🎯 PR 포인트
15+
16+
<!--리뷰어가 집중했으면 하는 부분 -->
17+
18+
## 📝 참고 사항
19+
20+
<!--특이 사항이나 리뷰어가 알고 있으면 좋을 것 같은 내용 -->
21+
22+
## ❓ 궁금한 점
23+
24+
<!-- ## 이슈 번호 - close -->
25+
26+
<!--## 완료 사항-->

Diff for: .github/workflows/close-issue.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Close associated issue
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dev
7+
types:
8+
- closed
9+
10+
jobs:
11+
close-issue:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Close associated issue
15+
run: |
16+
PR_NUMBER=${{ github.event.pull_request.number }}
17+
PR_URL="https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER"
18+
echo "PR_URL: $PR_URL"
19+
PR_BODY=$(curl -s -H "Authorization: token ${{ secrets.ACTION_TOKEN }}" $PR_URL | jq -r '.body')
20+
echo "PR_BODY: $PR_BODY"
21+
ISSUE_NUMBER=$(echo $PR_BODY | grep -oE "close #[0-9]+" | tr -d 'close #')
22+
echo "ISSUE_NUMBER: $ISSUE_NUMBER"
23+
if [[ ! -z "$ISSUE_NUMBER" ]]; then
24+
curl -s -H "Authorization: token ${{ secrets.ACTION_TOKEN }}" -X PATCH "https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE_NUMBER" -d '{"state": "closed"}'
25+
fi
26+
shell: bash

Diff for: .gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

Diff for: .husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run lint-staged

Diff for: .husky/pre-push

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run lint:tsc

Diff for: .lintstagedrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"**/*.{ts,tsx}": ["npm run lint:eslint", "npm run lint:prettier"]
3+
}

Diff for: .prettierrc

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"trailingComma": "es5",
3+
"printWidth": 80,
4+
"tabWidth": 2,
5+
"semi": true,
6+
"singleQuote": true,
7+
"arrowParens": "always",
8+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
9+
"importOrder": [
10+
"^react(.*)",
11+
"<THIRD_PARTY_MODULES>",
12+
"^@/(.*)$",
13+
"^@api/(.*)$",
14+
"^@pages/(.*)$",
15+
"^@routes/(.*)$",
16+
"^@components/(.*)$",
17+
"^@hooks/(.*)$",
18+
"^@styles/(.*)$",
19+
"^@stores/(.*)$",
20+
"^@contexts/(.*)$",
21+
"^@type/(.*)$",
22+
"^@consts/(.*)$",
23+
"^@utils/(.*)$",
24+
"^@assets/(.*)$",
25+
"^@tests/(.*)$",
26+
"^@mocks/(.*)$",
27+
"^[./]"
28+
],
29+
"bracketSpacing": true,
30+
"importOrderSeparation": true,
31+
"importOrderSortSpecifiers": true
32+
}

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# pickple-front
1+
# Pickple-front

Diff for: api/index.ts

Whitespace-only changes.

Diff for: index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>픽플</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)