From 314ac21842319cb4942424750c2d093a512305c6 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 25 Oct 2020 15:38:52 +0100 Subject: [PATCH] Disable `var` usage for the `test/unit` folder This allows us to enforce that `var` is not used anymore in the unit tests to modernize the code and prevent subtle bugs. --- test/unit/.eslintrc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/unit/.eslintrc diff --git a/test/unit/.eslintrc b/test/unit/.eslintrc new file mode 100644 index 000000000..4a0b538f6 --- /dev/null +++ b/test/unit/.eslintrc @@ -0,0 +1,10 @@ +{ + "extends": [ + "../.eslintrc" + ], + + "rules": { + // ECMAScript 6 + "no-var": "error", + }, +}