|
22 | 22 | "mqtt": "^5.15.1", |
23 | 23 | "notistack": "^3.0.2", |
24 | 24 | "prismjs": "^1.29.0", |
25 | | - "react": "^18.3.1", |
26 | | - "react-dom": "^18.3.1", |
| 25 | + "react": "^19.2.7", |
| 26 | + "react-dom": "^19.2.7", |
27 | 27 | "react-pro-sidebar": "^1.1.0-alpha.1", |
28 | 28 | "react-router": "^7.17.0", |
29 | | - "react-scripts": "^5.0.1", |
30 | 29 | "react-showdown": "^2.3.1", |
31 | 30 | "react-simple-code-editor": "^0.13.1", |
32 | | - "victory": "36.9.2" |
| 31 | + "victory": "^37.3.6" |
33 | 32 | }, |
34 | 33 | "scripts": { |
35 | | - "start": "react-scripts start", |
36 | | - "dev": "react-scripts start", |
| 34 | + "start": "vite --host 127.0.0.1 --port 3000", |
| 35 | + "dev": "vite --host 127.0.0.1 --port 3000", |
37 | 36 | "lint": "eslint src --ext .js,.jsx,.ts,.tsx", |
38 | 37 | "lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix", |
39 | | - "build": "react-scripts build", |
40 | | - "test": "react-scripts test", |
41 | | - "eject": "react-scripts eject", |
| 38 | + "build": "vite build", |
| 39 | + "test": "jest", |
42 | 40 | "postbuild": "rm -rf ../core/pioreactor/web/static/* && cp -R build/* ../core/pioreactor/web/static" |
43 | 41 | }, |
44 | 42 | "eslintConfig": { |
45 | | - "extends": "react-app", |
| 43 | + "env": { |
| 44 | + "browser": true, |
| 45 | + "es2021": true, |
| 46 | + "jest": true |
| 47 | + }, |
| 48 | + "extends": [], |
46 | 49 | "plugins": [ |
| 50 | + "react", |
| 51 | + "react-hooks", |
47 | 52 | "unused-imports" |
48 | 53 | ], |
| 54 | + "parserOptions": { |
| 55 | + "ecmaFeatures": { |
| 56 | + "jsx": true |
| 57 | + }, |
| 58 | + "ecmaVersion": "latest", |
| 59 | + "sourceType": "module" |
| 60 | + }, |
| 61 | + "settings": { |
| 62 | + "react": { |
| 63 | + "version": "detect" |
| 64 | + } |
| 65 | + }, |
49 | 66 | "rules": { |
| 67 | + "react/prop-types": "off", |
| 68 | + "react/jsx-uses-react": "error", |
| 69 | + "react/jsx-uses-vars": "error", |
| 70 | + "react/react-in-jsx-scope": "off", |
| 71 | + "react-hooks/rules-of-hooks": "error", |
| 72 | + "react-hooks/exhaustive-deps": "warn", |
50 | 73 | "no-unused-vars": "off", |
51 | 74 | "unused-imports/no-unused-imports": "warn", |
52 | 75 | "unused-imports/no-unused-vars": [ |
|
78 | 101 | ] |
79 | 102 | }, |
80 | 103 | "devDependencies": { |
81 | | - "@babel/plugin-proposal-private-property-in-object": "^7.21.11", |
| 104 | + "@babel/preset-env": "^7.28.5", |
| 105 | + "@babel/preset-react": "^7.28.5", |
| 106 | + "@vitejs/plugin-react": "^5.2.0", |
| 107 | + "babel-jest": "^30.4.1", |
82 | 108 | "css-loader": "^5.0.1", |
83 | | - "eslint-plugin-react": "^7.37.3", |
| 109 | + "eslint": "^8.57.1", |
| 110 | + "eslint-plugin-react": "^7.37.5", |
| 111 | + "eslint-plugin-react-hooks": "^7.1.1", |
84 | 112 | "eslint-plugin-unused-imports": "^4.4.1", |
| 113 | + "jest": "^30.4.2", |
| 114 | + "jest-environment-jsdom": "^30.4.1", |
85 | 115 | "prettier": "2.1.2", |
86 | | - "style-loader": "^2.0.0" |
| 116 | + "style-loader": "^2.0.0", |
| 117 | + "vite": "^7.3.6" |
87 | 118 | } |
88 | 119 | } |
0 commit comments