Skip to content

Commit 58174e4

Browse files
committed
check in missing files
1 parent 21cc798 commit 58174e4

File tree

5 files changed

+81
-0
lines changed

5 files changed

+81
-0
lines changed

client/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"react-app"
4+
]
5+
}

client/eslint.config.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { fixupConfigRules } from "@eslint/compat";
2+
import path from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
import js from "@eslint/js";
5+
import { FlatCompat } from "@eslint/eslintrc";
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all
13+
});
14+
15+
export default [{
16+
ignores: [],
17+
}, ...fixupConfigRules(compat.extends("react-app"))];

client/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Blue Button 2.0 Sample App"
11+
/>
12+
<link rel="manifest" href="/manifest.json" />
13+
<title>Medicare claims data sample app</title>
14+
</head>
15+
<body>
16+
<noscript>You need to enable JavaScript to run this app.</noscript>
17+
<div id="root"></div>
18+
<script type="module" src="/src/index.tsx"></script>
19+
</body>
20+
</html>

client/src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

client/vite.config.mts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/// <reference types="vitest/config" />
2+
import { defineConfig } from 'vite';
3+
import react from '@vitejs/plugin-react-swc';
4+
import eslint from 'vite-plugin-eslint';
5+
6+
// https://vitejs.dev/config/
7+
export default defineConfig({
8+
base: '/',
9+
server: {
10+
host: '0.0.0.0',
11+
port: 3000,
12+
proxy: {
13+
'/api': {
14+
target: 'http://server:3001',
15+
changeOrigin: true,
16+
},
17+
},
18+
},
19+
preview: {
20+
host: '0.0.0.0',
21+
// assume we don't start server in dev and preview mode at the same time
22+
port: 3000,
23+
proxy: {
24+
'/api': {
25+
target: 'http://server:3001',
26+
changeOrigin: true,
27+
},
28+
},
29+
},
30+
test: {
31+
globals: true,
32+
environment: "jsdom",
33+
setupFiles: ["./src/setupTests.ts"],
34+
},
35+
plugins: [
36+
react(), eslint()
37+
]
38+
})

0 commit comments

Comments
 (0)