diff --git a/web-app/eslint.config.js b/web-app/eslint.config.js index af876ec..53a87c7 100644 --- a/web-app/eslint.config.js +++ b/web-app/eslint.config.js @@ -1,11 +1,13 @@ import js from "@eslint/js"; import globals from "globals"; +import reactHooks from "eslint-plugin-react-hooks"; // Or import { configs as reactHooks } from "eslint-plugin-react-hooks"; +import reactRefresh from "eslint-plugin-react-refresh"; import { defineConfig, globalIgnores } from "eslint/config"; export default defineConfig([ globalIgnores(["dist"]), { - files: ["**/*.{js,jsx}"], + files: ["**/*{js,jsx}"], extends: [ js.configs.recommended, reactHooks.configs["recommended-latest"], diff --git a/web-app/package-lock.json b/web-app/package-lock.json index a974ff6..0aabb64 100644 --- a/web-app/package-lock.json +++ b/web-app/package-lock.json @@ -27,11 +27,13 @@ "vite-jsconfig-paths": "^2.0.1" }, "devDependencies": { + "@eslint/js": "^9.38.0", "eslint": "^9.38.0", "eslint-plugin-import": "^2.32.0", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.0.0", "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.4.0", "nodemon": "^3.1.10", "prettier": "^3.6.2", "tailwindcss": "^4.1.14", @@ -863,6 +865,19 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@eslint/js": { "version": "9.38.0", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.38.0.tgz", @@ -3867,9 +3882,9 @@ } }, "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", + "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", "dev": true, "license": "MIT", "engines": { diff --git a/web-app/package.json b/web-app/package.json index 198e9c6..91388fc 100644 --- a/web-app/package.json +++ b/web-app/package.json @@ -32,11 +32,13 @@ }, "packageManager": ">=npm@10.9.0", "devDependencies": { + "@eslint/js": "^9.38.0", "eslint": "^9.38.0", "eslint-plugin-import": "^2.32.0", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.0.0", "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.4.0", "nodemon": "^3.1.10", "prettier": "^3.6.2", "tailwindcss": "^4.1.14", diff --git a/web-app/src/components/ui/chat/chat-header.jsx b/web-app/src/components/ui/chat/chat-header.jsx index 73cc1c3..9b30b6c 100644 --- a/web-app/src/components/ui/chat/chat-header.jsx +++ b/web-app/src/components/ui/chat/chat-header.jsx @@ -18,7 +18,7 @@ export default function ChatHeader({ title = "AI Assistant" }) { setMessages([]); } }; - + return (
@@ -34,7 +34,6 @@ export default function ChatHeader({ title = "AI Assistant" }) {
-
); }