From b2c249a711b16ffb44fa08b39617ec99c9d81c02 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Mon, 24 Apr 2023 20:31:24 +0200 Subject: [PATCH] webapp: Enable stricter error reporting --- webapp/src/views/InverterAdminView.vue | 8 ++++---- webapp/tsconfig.json | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/webapp/src/views/InverterAdminView.vue b/webapp/src/views/InverterAdminView.vue index 558e5dd..eb692ba 100644 --- a/webapp/src/views/InverterAdminView.vue +++ b/webapp/src/views/InverterAdminView.vue @@ -104,7 +104,7 @@ -
+
@@ -128,7 +128,7 @@
Wp* @@ -143,7 +143,7 @@
kWh diff --git a/webapp/tsconfig.json b/webapp/tsconfig.json index 5168db6..45b15b4 100644 --- a/webapp/tsconfig.json +++ b/webapp/tsconfig.json @@ -8,6 +8,12 @@ }, "lib": ["ES2021", "DOM"], "moduleResolution": "Node", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true }, "references": [