diff --git a/.eslintrc.json b/.eslintrc.json index a0cca24..4227aa7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,6 +1,9 @@ { - "extends": "next/core-web-vitals", - // Remove invalid options - // "useEslintrc": false, - // "extensions": [".ts", ".tsx"] + "extends": [ + "next/core-web-vitals", + "plugin:@typescript-eslint/recommended" + ], + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "root": true } \ No newline at end of file diff --git a/next.config.js b/next.config.js index 33f5897..b965502 100644 --- a/next.config.js +++ b/next.config.js @@ -2,13 +2,9 @@ const nextConfig = { reactStrictMode: true, experimental: { - appDir: true, + // Remove the 'appDir' option as it's no longer needed in Next.js 14 }, - images: { - domains: ['localhost'], - }, - // Add this line - metadataBase: new URL('http://localhost:3000'), + // Remove the 'metadataBase' option if it's not needed } module.exports = nextConfig \ No newline at end of file diff --git a/package.json b/package.json index b70da7c..e9f2640 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,9 @@ "rxjs": "^7.8.1", "shell-quote": "^1.8.1", "supports-color": "^8.1.1", - "tree-kill": "^1.2.2" + "tree-kill": "^1.2.2", + "dotenv": "^16.0.3", + "@types/dotenv": "^8.2.0" }, "devDependencies": { "@babel/core": "^7.25.2", @@ -93,7 +95,9 @@ "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "supertest": "^7.0.0", - "ts-jest": "^29.2.5" + "ts-jest": "^29.2.5", + "@typescript-eslint/eslint-plugin": "^5.59.0", + "@typescript-eslint/parser": "^5.59.0" }, "resolutions": { "punycode": "2.1.0" diff --git a/playwright.config.ts b/playwright.config.ts index 45cdbe8..cc463f6 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,5 +1,5 @@ import { defineConfig, devices } from '@playwright/test'; // Add devices import -import dotenv from 'dotenv'; +import * as dotenv from 'dotenv'; import path from 'path'; /**