Skip to content

Commit ee70dd0

Browse files
authored
Merge pull request #40 from metabase/rolodato/typescript-client
Migrate client-side app to TypeScript
2 parents afd421a + 88d7ee0 commit ee70dd0

File tree

14 files changed

+1238
-502
lines changed

14 files changed

+1238
-502
lines changed

client/.prettierignore

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

client/.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

client/eslint.config.js

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

client/eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
react.configs.flat["jsx-runtime"],
16+
reactHooks.configs.flat.recommended,
17+
reactRefresh.configs.vite,
18+
{
19+
settings: {
20+
react: {
21+
version: "detect",
22+
},
23+
},
24+
},
25+
);

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)