File tree Expand file tree Collapse file tree 5 files changed +81
-0
lines changed
Expand file tree Collapse file tree 5 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "extends": [
3+ "react-app"
4+ ]
5+ }
Original file line number Diff line number Diff line change 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" ) ) ] ;
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 1+ /// <reference types="vite/client" />
Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments