From f5e40f8702d2af69f9fb44e16e0bbee4177ebd68 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 15 Mar 2023 11:12:55 +0000 Subject: [PATCH] Modify `tsconfig.json` as suggested --- .vscode/settings.json | 10 ++++++---- tsconfig.json | 8 +++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index f050132..3681dcc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,8 @@ { - "files.exclude": { - "node_modules/**": true, - ".idea/**": true, - } + "files.exclude": { + "node_modules/**": true, + ".idea/**": true + }, + "typescript.tsdk": "node_modules/typescript/lib", + "typescript.enablePromptUseWorkspaceTsdk": true } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 6ef4fb1..8c59848 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,11 +19,17 @@ "jsx": "preserve", "incremental": true, "noImplicitAny": false, + "plugins": [ + { + "name": "next" + } + ] }, "include": [ "next-env.d.ts", "**/*.ts", - "**/*.tsx" + "**/*.tsx", + ".next/types/**/*.ts" ], "exclude": [ "node_modules"