From 17c787c0a30fccdb391a54b2428bce077ce3b905 Mon Sep 17 00:00:00 2001 From: Konrad Dzwinel Date: Tue, 17 Oct 2017 21:04:38 +0200 Subject: [PATCH 1/2] Enable type checking for JavaScript --- jsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsconfig.json b/jsconfig.json index 534f7fb05291..cbd40a022e1e 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -6,7 +6,8 @@ "compilerOptions": { "target": "ES6", "noEmit": true, - "diagnostics": true + "diagnostics": true, + "checkJs": true }, "exclude": [ "lighthouse-cli", From d1ef8cafdb1843f3ad82c49822afb6387517c60a Mon Sep 17 00:00:00 2001 From: Konrad Dzwinel Date: Tue, 17 Oct 2017 21:20:59 +0200 Subject: [PATCH 2/2] Add strict:true --- jsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsconfig.json b/jsconfig.json index cbd40a022e1e..0c891c981011 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -7,7 +7,8 @@ "target": "ES6", "noEmit": true, "diagnostics": true, - "checkJs": true + "checkJs": true, + "strict": true }, "exclude": [ "lighthouse-cli",