Skip to content

Commit

Permalink
Transition to ts and redux toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Wu committed Sep 28, 2024
1 parent 4cea7f1 commit 2d24df4
Show file tree
Hide file tree
Showing 11 changed files with 540 additions and 532 deletions.
17 changes: 17 additions & 0 deletions web/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
],
plugins: ["@typescript-eslint", "react", "import"],
settings: {
react: {
version: "detect",
},
},
};
5 changes: 3 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"map-sass": "sass src/assets/scss/paper-dashboard.scss src/assets/css/paper-dashboard.css --source-map true"
},
"dependencies": {
"@reduxjs/toolkit": "^2.2.7",
"binbot-charts": "^0.4.1",
"bootstrap": "5.2.2",
"history": "^5.0.0",
Expand Down Expand Up @@ -48,8 +49,8 @@
"@types/react-dom": "^18.2.13",
"@types/react-router-dom": "^5.3.3",
"@types/redux": "^3.6.0",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"prettier": "^2.4.3",
"react-scripts": "^5.0.1",
"sass": "^1.55.0",
Expand Down
3 changes: 1 addition & 2 deletions web/src/index.js → web/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import { Provider } from "react-redux";
import { BrowserRouter, Switch } from "react-router-dom";
import App from "./App.jsx";
import "./assets/scss/paper-dashboard.scss";
import configureStore from "./store";
import { store } from "./store.js";

const store = configureStore({});

ReactDOM.render(
<Provider store={store}>
Expand Down
Loading

0 comments on commit 2d24df4

Please sign in to comment.