From 4c5042e736c98eb9ddafb4bfd086dda36915e871 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 25 Mar 2023 09:08:49 -0700 Subject: [PATCH] eslint: Loosen no-use-before-define for TS like we do for JS. Signed-off-by: Anders Kaseorg --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9a098ddae5..c3cabcdac5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -188,7 +188,7 @@ "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/no-unsafe-return": "off", "@typescript-eslint/no-unused-vars": ["error", {"ignoreRestSiblings": true}], - "@typescript-eslint/no-use-before-define": "error", + "@typescript-eslint/no-use-before-define": ["error", {"functions": false}], "@typescript-eslint/no-useless-constructor": "error", "@typescript-eslint/prefer-includes": "error", "@typescript-eslint/prefer-string-starts-ends-with": "error",