Skip to content

Commit

Permalink
check in missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
JFU-NAVA-PBC committed Dec 2, 2024
1 parent 21cc798 commit 58174e4
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"react-app"
]
}
17 changes: 17 additions & 0 deletions client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { fixupConfigRules } from "@eslint/compat";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: [],
}, ...fixupConfigRules(compat.extends("react-app"))];
20 changes: 20 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Blue Button 2.0 Sample App"
/>
<link rel="manifest" href="/manifest.json" />
<title>Medicare claims data sample app</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
1 change: 1 addition & 0 deletions client/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
38 changes: 38 additions & 0 deletions client/vite.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/// <reference types="vitest/config" />
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import eslint from 'vite-plugin-eslint';

// https://vitejs.dev/config/
export default defineConfig({
base: '/',
server: {
host: '0.0.0.0',
port: 3000,
proxy: {
'/api': {
target: 'http://server:3001',
changeOrigin: true,
},
},
},
preview: {
host: '0.0.0.0',
// assume we don't start server in dev and preview mode at the same time
port: 3000,
proxy: {
'/api': {
target: 'http://server:3001',
changeOrigin: true,
},
},
},
test: {
globals: true,
environment: "jsdom",
setupFiles: ["./src/setupTests.ts"],
},
plugins: [
react(), eslint()
]
})

0 comments on commit 58174e4

Please sign in to comment.