From 72f7d52254805f576d43e764749b4e3db4cc832f Mon Sep 17 00:00:00 2001 From: "Simon Genin (ges)" Date: Thu, 17 Nov 2022 19:42:44 +0000 Subject: [PATCH] [IMP] dx: js tooling: imp to jsconfig file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove checkJS: It made the ts server check for error, bypassing some eslint rules (such as globals). add ts files in the include: ts files need to be included in the project as there are some .d.ts files defining types. closes odoo/odoo#105984 Signed-off-by: Michaƫl Mattiello --- addons/web/tooling/_jsconfig.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web/tooling/_jsconfig.json b/addons/web/tooling/_jsconfig.json index 8dfd2bfbad9..bbea2ce520d 100644 --- a/addons/web/tooling/_jsconfig.json +++ b/addons/web/tooling/_jsconfig.json @@ -3,7 +3,6 @@ "moduleResolution": "node", "baseUrl": ".", "target": "ES2022", - "checkJs": true, "noEmit": true, "disableSizeLimit": true, "typeRoots": ["addons/web/tooling/types"], @@ -24,7 +23,7 @@ "@pos/*": ["addons/pos/static/src/*"] } }, - "include": ["**/*.js"], + "include": ["**/*.js", "**/*.ts"], "exclude": [ "node_modules", "setup",