Skip to content

Commit b344581

Browse files
authored
[PR] 프로젝트 세팅 추가 (#2)
2 parents 976c2ed + ea43f47 commit b344581

Some content is hidden

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

53 files changed

+434
-167
lines changed

.github/workflows/sync.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: git push into Fork Repo
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
container: pandoc/latex
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install mustache (to update the date)
14+
run: apk add ruby && gem install mustache
15+
- name: creates output
16+
run: sh ./build.sh
17+
- name: Pushes to another repository
18+
id: push_directory
19+
uses: cpina/github-action-push-to-another-repository@main
20+
env:
21+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
22+
with:
23+
source-directory: 'output'
24+
destination-github-username: Dobbymin
25+
destination-repository-name: seed-fe
26+
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
27+
commit-message: ${{ github.event.commits[0].message }}
28+
target-branch: main
29+
- name: Test get variable exported by push-to-another-repository
30+
run: echo $DESTINATION_CLONED_DIRECTORY

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
.eslintcache

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
npx lint-staged
2+
3+
pnpm run lint:fix
4+
pnpm run tsc

.prettierignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ public
77

88
# 환경설정 파일 무시
99
*.lock
10-
# *.config.js
11-
# *.config.ts
10+
*.config.js
11+
*.config.ts
1212
*.config.mjs
1313
*.md
1414

.prettierrc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"endOfLine": "auto",
77
"insertPragma": false,
88
"jsxSingleQuote": false,
9-
"printWidth": 120,
9+
"printWidth": 80,
1010
"proseWrap": "always",
1111
"quoteProps": "as-needed",
1212
"requirePragma": false,
@@ -19,7 +19,13 @@
1919

2020
"plugins": ["@trivago/prettier-plugin-sort-imports"],
2121

22-
"importOrder": ["^react(.*)$", "<THIRD_PARTY_MODULES>", "^@/(.*)$", "^\\.\\.(?:/|$)", "^\\.(?:/|$)"],
22+
"importOrder": [
23+
"^react(.*)$",
24+
"<THIRD_PARTY_MODULES>",
25+
"^@/(.*)$",
26+
"^\\.\\.(?:/|$)",
27+
"^\\.(?:/|$)"
28+
],
2329
"importOrderSeparation": true,
2430
"importOrderSortSpecifiers": true
2531
}

eslint.config.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import js from '@eslint/js'
2-
import globals from 'globals'
3-
import reactHooks from 'eslint-plugin-react-hooks'
1+
import js from "@eslint/js";
42
import eslintConfigPrettier from "eslint-config-prettier";
53
import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
6-
import reactRefresh from 'eslint-plugin-react-refresh'
7-
import tseslint from 'typescript-eslint'
8-
import { defineConfig, globalIgnores } from 'eslint/config'
4+
import reactHooks from "eslint-plugin-react-hooks";
5+
import reactRefresh from "eslint-plugin-react-refresh";
6+
import { defineConfig, globalIgnores } from "eslint/config";
7+
import globals from "globals";
8+
import tseslint from "typescript-eslint";
99

1010
export default defineConfig([
11-
globalIgnores(['dist']),
11+
globalIgnores(["dist"]),
1212
{
13-
files: ['**/*.{ts,tsx}'],
13+
files: ["**/*.{ts,tsx}"],
1414
extends: [
1515
js.configs.recommended,
1616
tseslint.configs.recommended,
@@ -24,4 +24,4 @@ export default defineConfig([
2424
globals: globals.browser,
2525
},
2626
},
27-
])
27+
]);

package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,26 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc -b && vite build",
9-
"lint": "eslint .",
10-
"preview": "vite preview"
9+
"lint": "eslint --cache .",
10+
"lint:fix": "eslint --cache --fix .",
11+
"tsc": "tsc --noEmit",
12+
"format": "prettier --write .",
13+
"preview": "vite preview",
14+
"prepare": "husky"
15+
},
16+
"lint-staged": {
17+
"*.{js,jsx,ts,tsx}": [
18+
"prettier --write",
19+
"eslint --fix"
20+
]
1121
},
1222
"dependencies": {
1323
"@chakra-ui/react": "^3.31.0",
24+
"@emotion/react": "^11.14.0",
1425
"@emotion/styled": "^11.14.1",
1526
"@react-pdf/renderer": "^4.3.2",
27+
"@tanstack/react-query": "^5.90.20",
28+
"axios": "^1.13.4",
1629
"react": "^19.2.0",
1730
"react-dom": "^19.2.0",
1831
"react-router": "^7.13.0"

0 commit comments

Comments
 (0)