diff --git a/eslint.config.mjs b/eslint.config.mjs index c85fb67..9852352 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,16 +1,19 @@ -import { dirname } from "path"; -import { fileURLToPath } from "url"; -import { FlatCompat } from "@eslint/eslintrc"; - -const __filename = fileURLToPath(import.meta.url); -const __dirname = dirname(__filename); - -const compat = new FlatCompat({ - baseDirectory: __dirname, -}); +import nextCoreWebVitals from "eslint-config-next/core-web-vitals"; +import nextTypescript from "eslint-config-next/typescript"; const eslintConfig = [ - ...compat.extends("next/core-web-vitals", "next/typescript"), + ...nextCoreWebVitals, + ...nextTypescript, + { + ignores: [ + "node_modules/**", + ".next/**", + "out/**", + "build/**", + "next-env.d.ts", + "agent", + ], + }, ]; export default eslintConfig; diff --git a/package.json b/package.json index 13d869e..5c01761 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "dev:ui": "next dev --turbopack", "build": "next build", "start": "next start", - "lint": "next lint", + "lint": "eslint .", "install:agent": "sh ./scripts/setup-agent.sh || scripts\\setup-agent.bat", "postinstall": "npm run install:agent" }, @@ -18,13 +18,12 @@ "@copilotkit/react-core": "1.10.6", "@copilotkit/react-ui": "1.10.6", "@copilotkit/runtime": "1.10.6", - "next": "15.3.2", - "react": "^19.0.0", - "react-dom": "^19.0.0", + "next": "16.0.1", + "react": "^19.2.0", + "react-dom": "^19.2.0", "zod": "^3.24.4" }, "devDependencies": { - "@eslint/eslintrc": "^3", "@langchain/langgraph-cli": "0.0.40", "@tailwindcss/postcss": "^4", "@types/node": "^20", @@ -32,7 +31,7 @@ "@types/react-dom": "^19", "concurrently": "^9.1.2", "eslint": "^9", - "eslint-config-next": "15.3.2", + "eslint-config-next": "16.0.1", "tailwindcss": "^4", "typescript": "^5" } diff --git a/tsconfig.json b/tsconfig.json index c133409..b575f7d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -11,7 +15,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve", + "jsx": "react-jsx", "incremental": true, "plugins": [ { @@ -19,9 +23,19 @@ } ], "paths": { - "@/*": ["./src/*"] + "@/*": [ + "./src/*" + ] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + ".next/dev/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] }