From a691f0c5273a4b6e23870cb10ebce7636fe057ed Mon Sep 17 00:00:00 2001 From: Priyank Patel Date: Thu, 20 Aug 2020 19:36:11 +0000 Subject: [PATCH] eslint: Disable no-use-before-define for functions. There are lots of function that will be used before they are defined when we migrate to ES6 from CommonJS, so disable this rule. Functions are hoisted and processed by webpack so this is fine. --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 0e6b02aa1a..fae5297d58 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -77,7 +77,7 @@ "varsIgnorePattern": "print_elapsed_time|check_duplicate_ids" } ], - "no-use-before-define": "error", + "no-use-before-define": ["error", {"functions": false}], "no-useless-constructor": "error", "no-var": "error", "object-shorthand": "error",