Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4072a7b
Merge pull request #19 from Gyulling/5wintaek/refactor-all
5wintaek Jun 4, 2024
251aef8
Chore: Ts 환경설정
5wintaek Jun 5, 2024
faa2389
Chore: tsconfig 수정
5wintaek Jun 5, 2024
f9d4ffa
refactor:SVG 타입 선언
5wintaek Jun 5, 2024
8b49fee
Chore: Type오류 뜨지 않는거 문제 해결 (vite/client 추가)
5wintaek Jun 6, 2024
2f60814
fix: Router 타입지정
5wintaek Jun 6, 2024
be8f8a1
fix: main 타입 지정
5wintaek Jun 6, 2024
b8e81c8
fix: style및 svg아이콘 타입지정
5wintaek Jun 6, 2024
17fc9b8
fix:header Type지정
5wintaek Jun 6, 2024
ba0a495
Fix:Hint 타입 지정
5wintaek Jun 6, 2024
c0974b2
Fix: Modal 타입 지정
5wintaek Jun 6, 2024
e64c793
Fix:OnButton 타입 지정
5wintaek Jun 6, 2024
304afb5
Fix:Question 타입 지정
5wintaek Jun 6, 2024
779e13c
Fix: Content 타입 지정
5wintaek Jun 6, 2024
a73acfe
Fix: FooterTitle jsx->tsx 이름 변경
5wintaek Jun 6, 2024
3481646
Fix: jsx->tsx 이름 변경
5wintaek Jun 6, 2024
d39d6ff
Fix: jsx->tsx 이름 변경
5wintaek Jun 6, 2024
f75aa91
Fix: ProfileCard Type 이유로 parseInt -> Math.ceil 바꿈
5wintaek Jun 6, 2024
52c8c21
Fix: SelectAnswer 타입 지정
5wintaek Jun 6, 2024
f6a8b61
Fix: Article Type 지정
5wintaek Jun 6, 2024
1b97c57
Fix: RetryButton type 지정
5wintaek Jun 6, 2024
10b65cc
Fix: jsx->tsx 이름 변경
5wintaek Jun 6, 2024
d7a3d24
Fix: SelectTag type 지정
5wintaek Jun 6, 2024
5f7f48e
Fix: jsx->tsx 이름 변경
5wintaek Jun 6, 2024
0d2981f
Fix: jsx->tsx 이름 변경
5wintaek Jun 6, 2024
40c9b4c
Fix: jsx->tsx 이름 변경
5wintaek Jun 6, 2024
3088414
Fix: jsx->tsx 이름 변경 및 MyPage Type 지정
5wintaek Jun 6, 2024
8ac60a0
Fix: isQuiz props 전달
5wintaek Jun 6, 2024
c4db632
Fix: Type지정
5wintaek Jun 6, 2024
dd38bb2
Merge branch '5wintaek/my-refactor' of https://github.com/Gyulling/gy…
5wintaek Jun 6, 2024
b061278
Fix: isQuiz props 전달
5wintaek Jun 7, 2024
224882e
Merge branch '5wintaek/my-refactor' of https://github.com/Gyulling/gy…
5wintaek Jun 7, 2024
235b278
Fix: Branch 꼬인거 다시 TS수정 후 업로드
5wintaek Jun 7, 2024
3b566b3
Chore: 필요없는 주석 및 navigate 두번째 인자 삭제
5wintaek Jun 13, 2024
061c09e
Chore: Router.jsx 필요없는 주석 삭제
5wintaek Jun 13, 2024
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
14 changes: 13 additions & 1 deletion krampoline/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module.exports = {
},
// 권장 규칙 모음(패키지)
extends: [
// 'airbnb-base',
'plugin:@typescript-eslint/recommended',
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
Expand All @@ -28,5 +30,15 @@ module.exports = {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/prop-types': ['off'],
'@typescript-eslint/explicit-module-boundary-types': 'error', // 모듈 경계에서 명시적 타입 요구
'@typescript-eslint/no-explicit-any': 'error', // 명시적인 any 타입 사용 금지
'@typescript-eslint/no-unused-vars': 'error', // 사용되지 않는 변수 금지
},
};
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
};
Comment on lines +37 to +43
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 무슨 의미인가요 !!?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 설정은 ESLint가 import 문을 분석할 때 사용하는겁니당. .extension는 파일 확장자를 의미하는거고, 파일을 읽어들일떄 .jsx .js .ts .tsx 확장자를 가진 파일들을 해석하는는 뜻

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve: {
    extensions: ['.ts', '.tsx'], // 여기서 .ts와 .tsx 확장자에 .을 추가합니다.
    alias: [{ find: '@', replacement: resolve(__dirname, './src') }],
  },

vite에서 TS를 사용할 떄 기본적으로 extensions 쪽에 .ts ,.tsx 에 확장자를 추가하는것을 권장합니다.

eslint에서의 설정은 제가 타입오류지정을 해결하면서 eslint-plugin을 같이 깔면서 설정해둔것 같습니다. 굳이 없어도 되는 확장자 입니다

}
2 changes: 1 addition & 1 deletion krampoline/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<body>
<div id="root"></div>
<div id="modal"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading