From 1090fe926ffe0741464d0e424723685ee885acf9 Mon Sep 17 00:00:00 2001
From: Michele Alberti <michele.alberti@cea.fr>
Date: Tue, 28 Jul 2020 11:33:11 +0200
Subject: [PATCH] [linter] Add rule no-var to disallow the use of var in favor
 of let and const.

---
 ivette/.eslintrc.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ivette/.eslintrc.js b/ivette/.eslintrc.js
index ebdbbb656e9..3bd72978334 100644
--- a/ivette/.eslintrc.js
+++ b/ivette/.eslintrc.js
@@ -77,5 +77,7 @@ module.exports = {
     "react/destructuring-assignment": "off",
     // Allow console errors and warnings
     "no-console": ["error", { allow: ["warn", "error"] }],
+    // Disallow the use of var in favor of let and const
+    "no-var": "error",
   }
 };
-- 
GitLab