From e6cc6ca3471bad2452dbc5a05946fc7140beb93e Mon Sep 17 00:00:00 2001 From: Roman Popat Date: Wed, 9 Apr 2025 21:22:58 +0000 Subject: [PATCH] various build errors --- .devcontainer/devcontainer.json | 2 +- bs3/package.json | 1 + bs3/src/AppWrapper.tsx | 2 +- bs3/src/pages/new-post-form.tsx | 1 - bs3/src/pages/post-detail.tsx | 1 - bs3/src/pages/post-list.tsx | 2 +- 6 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 65ae85a..5e648fa 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -13,7 +13,7 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "yarn install", + "postCreateCommand": "yarn install", // Configure tool-specific properties. // "customizations": {}, diff --git a/bs3/package.json b/bs3/package.json index f8d1f46..a8ca1c3 100644 --- a/bs3/package.json +++ b/bs3/package.json @@ -36,6 +36,7 @@ "@typescript-eslint/parser": "^8.29.1", "env-cmd": "^10.1.0", "eslint": "^9.24.0", + "eslint-config-react-app": "^7.0.1", "typescript": "^5.8.3" }, "scripts": { diff --git a/bs3/src/AppWrapper.tsx b/bs3/src/AppWrapper.tsx index 26be926..4b5dcf4 100644 --- a/bs3/src/AppWrapper.tsx +++ b/bs3/src/AppWrapper.tsx @@ -8,7 +8,7 @@ interface AppModalProps { } const AppModal: React.FC = ({ onClose }) => { - const [showModal, setShowModal] = useState(true); + const [showModal] = useState(true); return (