From 404462fa0b6652a20c05060b4b5cbd2192f5f652 Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:32:42 +0900 Subject: [PATCH 01/10] =?UTF-8?q?:sparkles:=20Feat:=20husky=20=EC=84=A4?= =?UTF-8?q?=EC=B9=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 22 ++++++++++++++++++++++ package.json | 1 + 2 files changed, 23 insertions(+) diff --git a/package-lock.json b/package-lock.json index d0fc87f..19e3b7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,6 +35,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" @@ -3861,6 +3862,21 @@ "node": ">=4" } }, + "node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/ignore": { "version": "5.2.4", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", @@ -7740,6 +7756,12 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" }, + "husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true + }, "ignore": { "version": "5.2.4", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", diff --git a/package.json b/package.json index 22b695f..ae81fbc 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,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" From abb9770c47f8c6dea9bae9236f9f8b876e35e70c Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:35:08 +0900 Subject: [PATCH 02/10] =?UTF-8?q?:sparkles:=20Feat:=20husky=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/pre-commit | 4 ++++ .husky/pre-push | 4 ++++ package.json | 6 ++++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 .husky/pre-commit create mode 100755 .husky/pre-push diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..1bda9c1 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm run format diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 0000000..75fac8e --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm run lint diff --git a/package.json b/package.json index ae81fbc..47ce03a 100644 --- a/package.json +++ b/package.json @@ -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", From 94f86d8496cea6806c4ea4162fdc3fecdd8678e7 Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:35:35 +0900 Subject: [PATCH 03/10] =?UTF-8?q?:sparkles:=20Feat:=20lint=20=EB=A3=B0=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 172ad0d..68a0c19 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -7,5 +7,8 @@ module.exports = { plugins: ['react-refresh'], rules: { 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], + 'no-var': 'error', + 'no-console': ['error', { allow: ['warn', 'error', 'info'] }], + 'no-unused-vars': 'error', }, }; From 392916a9fb3e96accaa886694c89d82656a006d0 Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:37:22 +0900 Subject: [PATCH 04/10] =?UTF-8?q?:memo:=20Test:=20husky=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Test.tsx | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/components/Test.tsx diff --git a/src/components/Test.tsx b/src/components/Test.tsx new file mode 100644 index 0000000..7a6f1b8 --- /dev/null +++ b/src/components/Test.tsx @@ -0,0 +1 @@ +console.log('Testing'); From 853d70c9417f62173cebc12a62004a3017238e2a Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:40:24 +0900 Subject: [PATCH 05/10] =?UTF-8?q?:memo:=20Test:=20husky=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Test.tsx b/src/components/Test.tsx index 7a6f1b8..46f8b8b 100644 --- a/src/components/Test.tsx +++ b/src/components/Test.tsx @@ -1 +1,3 @@ console.log('Testing'); + +var test = 'testline'; From 0a47446ddcba1485fa5d3cf29a479482cf366c3f Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:45:22 +0900 Subject: [PATCH 06/10] =?UTF-8?q?:sparkles:=20Feat:=20husky=20commit=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=8B=9C=20lint=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/pre-commit | 1 + 1 file changed, 1 insertion(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index 1bda9c1..57fd229 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" +npm run lint npm run format From 7414d0b3af8018034c6d0ce7231ccbb78e401953 Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:46:15 +0900 Subject: [PATCH 07/10] =?UTF-8?q?:bulb:=20Remove:=20Test=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Test.tsx | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 src/components/Test.tsx diff --git a/src/components/Test.tsx b/src/components/Test.tsx deleted file mode 100644 index 46f8b8b..0000000 --- a/src/components/Test.tsx +++ /dev/null @@ -1,3 +0,0 @@ -console.log('Testing'); - -var test = 'testline'; From 4a2cfa0da4bac6d8c91fc1d797c8d8cdc6e65740 Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:49:58 +0900 Subject: [PATCH 08/10] =?UTF-8?q?:bug:=20Fix=20:=20=ED=95=84=EC=9A=94?= =?UTF-8?q?=EC=97=86=EB=8A=94=20=EA=B7=9C=EC=B9=99=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 1 - 1 file changed, 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 68a0c19..37b02bb 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -9,6 +9,5 @@ module.exports = { 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], 'no-var': 'error', 'no-console': ['error', { allow: ['warn', 'error', 'info'] }], - 'no-unused-vars': 'error', }, }; From db52afe32d1626767d3e75ee685978d5b8c1b26f Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:51:15 +0900 Subject: [PATCH 09/10] =?UTF-8?q?:gear:=20Chore=20:=20git=20ignore?= =?UTF-8?q?=EC=97=90=20=EC=BA=90=EC=8B=9C=ED=8C=8C=EC=9D=BC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 438657a..a4b3987 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ dist dist-ssr *.local .env +.eslintcache # Editor directories and files .vscode/* From 38158c51bac15831a531d2b750d593030b43bab6 Mon Sep 17 00:00:00 2001 From: doitidey Date: Wed, 29 Nov 2023 17:52:48 +0900 Subject: [PATCH 10/10] =?UTF-8?q?:gear:=20Style:=20husky=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=20=EC=9D=B4=ED=9B=84=20=ED=8F=AC=EB=A7=B7=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=EB=90=9C=20=ED=8C=8C=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/issue-template.md | 5 +-- index.html | 44 +++++++++++++----------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/issue-template.md b/.github/ISSUE_TEMPLATE/issue-template.md index fd87b27..ecb0e63 100644 --- a/.github/ISSUE_TEMPLATE/issue-template.md +++ b/.github/ISSUE_TEMPLATE/issue-template.md @@ -1,16 +1,17 @@ --- name: issue template about: 미니 프로젝트 이슈 템플릿 -title: "[ 페이지명 ] 이슈 내용" +title: '[ 페이지명 ] 이슈 내용' labels: '' assignees: '' - --- ## Todo + - [ ] Todo1 - [ ] Todo2 - [ ] Todo3 ## 참고자료 + - 있으면 추가하고 없을 시 삭제 하세요. diff --git a/index.html b/index.html index 05bfe53..a564273 100644 --- a/index.html +++ b/index.html @@ -1,24 +1,26 @@ + + + + + + + + + + + + Dr. Cal + - - - - - - - - - - - - Dr. Cal - - - -
- - - - \ No newline at end of file + +
+ + +