From e636487c396770593d0d15130d472a3a173c75af Mon Sep 17 00:00:00 2001 From: Jonas Francisco Date: Thu, 9 Oct 2025 17:00:35 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20corrigir=20configura=C3=A7=C3=A3o=20do?= =?UTF-8?q?=20TypeScript=20e=20regex=20compat=C3=ADveis=20com=20ES2022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- susconecta/tsconfig.json | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/susconecta/tsconfig.json b/susconecta/tsconfig.json index 48c9ec9..2d1779d 100644 --- a/susconecta/tsconfig.json +++ b/susconecta/tsconfig.json @@ -1,27 +1,25 @@ { "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "target": "ES6", - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, + "target": "ES2022", + "lib": ["dom", "dom.iterable", "es2022"], "module": "esnext", "moduleResolution": "bundler", + "strict": true, + "skipLibCheck": true, + "noEmit": true, + "allowJs": true, + "esModuleInterop": true, "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./*"] - } + "downlevelIteration": true, + "useDefineForClassFields": false, + "paths": { "@/*": ["./*"] }, + "plugins": [{ "name": "next" }] }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "lib/api.js"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] } + +