diff --git a/template/addons/prisma/client.ts b/template/addons/prisma/client.ts index da43a335e2..08342e5f9a 100644 --- a/template/addons/prisma/client.ts +++ b/template/addons/prisma/client.ts @@ -3,6 +3,7 @@ import { PrismaClient } from "@prisma/client"; import { env } from "../../env/server.mjs"; declare global { + // eslint-disable-next-line no-var var prisma: PrismaClient | undefined; } diff --git a/template/base/.eslintrc.json b/template/base/.eslintrc.json index 957cd1545e..1cd44706ec 100644 --- a/template/base/.eslintrc.json +++ b/template/base/.eslintrc.json @@ -1,3 +1,8 @@ { - "extends": ["next/core-web-vitals"] + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": "./tsconfig.json" + }, + "plugins": ["@typescript-eslint"], + "extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"] } diff --git a/template/base/package.json b/template/base/package.json index 6ef17772df..fdf1733339 100644 --- a/template/base/package.json +++ b/template/base/package.json @@ -9,17 +9,19 @@ "lint": "next lint" }, "dependencies": { - "next": "12.2.3", + "next": "12.2.5", "react": "18.2.0", "react-dom": "18.2.0", - "zod": "^3.17.3" + "zod": "^3.18.0" }, "devDependencies": { "@types/node": "18.0.0", "@types/react": "18.0.14", "@types/react-dom": "18.0.5", - "eslint": "8.18.0", - "eslint-config-next": "12.2.3", + "@typescript-eslint/eslint-plugin": "^5.33.0", + "@typescript-eslint/parser": "^5.33.0", + "eslint": "8.22.0", + "eslint-config-next": "12.2.5", "typescript": "4.7.4" } }