Skip to content

Commit 8b13c5b

Browse files
committed
Migrate client code to TypeScript
1 parent afd421a commit 8b13c5b

File tree

13 files changed

+1235
-507
lines changed

13 files changed

+1235
-507
lines changed

client/eslint.config.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

client/eslint.config.mjs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// @ts-check
2+
3+
import react from 'eslint-plugin-react'
4+
import reactHooks from 'eslint-plugin-react-hooks'
5+
import reactRefresh from 'eslint-plugin-react-refresh'
6+
import tseslint from 'typescript-eslint'
7+
import eslint from 'typescript-eslint'
8+
import { defineConfig } from 'eslint/config'
9+
10+
export default defineConfig(
11+
{ ignores: ["dist"] },
12+
eslint.configs.recommended,
13+
tseslint.configs.recommended,
14+
react.configs.flat.recommended,
15+
reactHooks.configs.flat.recommended,
16+
reactRefresh.configs.vite,
17+
{
18+
settings: {
19+
react: {
20+
version: 'detect',
21+
},
22+
},
23+
},
24+
)

client/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99
<body>
1010
<div id="root"></div>
11-
<script type="module" src="/src/main.jsx"></script>
11+
<script type="module" src="/src/main.tsx"></script>
1212
</body>
1313
</html>

0 commit comments

Comments
 (0)