Skip to content

Commit 881b365

Browse files
authored
[25.02.19 / TASK-98] Refactor - 페이지 로딩 효과 추가 (#25)
* modify: 페이지 이동 시 로딩 바 표시 기능 추가 * modify: 호버 관련 오류 수정 * modify: 오탈자 수정 * refactor: 코드 정리 * refactor: useCallback 적용 * fix: 패키지 정리 * feature: husky 추가 * modify: 코드래빗 의견 반영 * modify: 코드래빗 의견 반영 * modify: ReadME 최신화
1 parent 5f3f1aa commit 881b365

File tree

16 files changed

+527
-87
lines changed

16 files changed

+527
-87
lines changed

.eslintignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.next
2+
next-env.d.ts
3+
pnpm-lock.yaml
4+
public
5+
next.config.js
6+
readme.md
7+
Dockerfile
8+
.vscode
9+
.swc
10+
.github

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint-staged

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"trailingComma": "all",
55
"useTabs": false,
66
"tabWidth": 2,
7-
"printWidth": 80,
7+
"printWidth": 100,
88
"arrowParens": "always",
99
"bracketSpacing": true,
1010
"proseWrap": "preserve"

eslint.config.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import globals from 'globals';
21
import pluginJs from '@eslint/js';
32
import { configs as tseslint } from 'typescript-eslint';
43
import pluginReact from 'eslint-plugin-react';
@@ -34,10 +33,8 @@ export default [
3433
pluginImport.flatConfigs.recommended,
3534
{
3635
rules: {
37-
'import/order': [
38-
'error',
39-
{ groups: ['builtin', 'external', 'internal'] },
40-
],
36+
'prettier/prettier': ['error', { printWidth: 100 }],
37+
'import/order': ['error', { groups: ['builtin', 'external', 'internal'] }],
4138
'testing-library/no-container': 'warn',
4239
'testing-library/no-node-access': 'warn',
4340
'react/react-in-jsx-scope': 'off',

package.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"name": "velog-dashboard-v2-fe",
33
"version": "0.1.0",
44
"private": true,
5+
"lint-staged": {
6+
"*.{ts,tsx}": [
7+
"next lint",
8+
"prettier --check"
9+
]
10+
},
511
"scripts": {
612
"dev": "next dev --port 3000",
713
"build": "next build",
@@ -10,20 +16,19 @@
1016
"lint": "next lint",
1117
"lintTest": "eslint ./src/__test__",
1218
"format": "prettier --check --ignore-path .gitignore --ignore-path pnpm-lock.yaml .",
13-
"test": "jest"
19+
"test": "jest",
20+
"prepare": "husky"
1421
},
1522
"dependencies": {
1623
"@channel.io/channel-web-sdk-loader": "^2.0.0",
1724
"@next/third-parties": "^15.1.7",
1825
"@sentry/core": "^8.47.0",
1926
"@sentry/nextjs": "^8.47.0",
2027
"@tailwindcss/typography": "^0.5.16",
21-
"@tanstack/react-query": "^5.61.3",
22-
"@tanstack/react-query-devtools": "^5.62.11",
28+
"@tanstack/react-query": "^5.69.0",
29+
"@tanstack/react-query-devtools": "^5.69.0",
2330
"chart.js": "^4.4.7",
24-
"jest-fixed-jsdom": "^0.0.9",
2531
"js-cookie": "^3.0.5",
26-
"msw": "^2.7.0",
2732
"next": "14.2.18",
2833
"react": "^18",
2934
"react-chartjs-2": "^5.2.0",
@@ -58,9 +63,13 @@
5863
"eslint-plugin-react": "^7.37.2",
5964
"eslint-plugin-testing-library": "^6.5.0",
6065
"globals": "^15.12.0",
66+
"husky": "^9.1.7",
6167
"jest": "^29.7.0",
6268
"jest-environment-jsdom": "^29.7.0",
6369
"jest-fetch-mock": "^3.0.3",
70+
"jest-fixed-jsdom": "^0.0.9",
71+
"lint-staged": "^15.5.0",
72+
"msw": "^2.7.3",
6473
"postcss": "^8",
6574
"prettier": "^3.3.3",
6675
"tailwindcss": "^3.4.1",

0 commit comments

Comments
 (0)