Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Exempt function variables from no-use-before-define.
Anders Kaseorge2cc125583cb
diff --git a/.eslintrc.js b/.eslintrc.jsindex d7048a30460..18621ae5d55 100644--- a/.eslintrc.js+++ b/.eslintrc.js@@ -104,7 +104,7 @@ module.exports = {"error",{args: "all", argsIgnorePattern: "^_", ignoreRestSiblings: true},],- "no-use-before-define": ["error", {functions: false}],+ "no-use-before-define": ["error", {functions: false, variables: false}],"no-useless-concat": "error","no-useless-constructor": "error","no-var": "error",@@ -198,7 +198,10 @@ module.exports = {"error",{args: "all", argsIgnorePattern: "^_", ignoreRestSiblings: true},],- "@typescript-eslint/no-use-before-define": ["error", {functions: false}],+ "@typescript-eslint/no-use-before-define": [+ "error",+ {functions: false, variables: false},+ ],"@typescript-eslint/parameter-properties": "error","@typescript-eslint/promise-function-async": "error","@typescript-eslint/restrict-plus-operands": ["error", {}],@@ -249,7 +252,10 @@ module.exports = {"error",{args: "all", argsIgnorePattern: "^_", ignoreRestSiblings: true},],- "@typescript-eslint/no-use-before-define": ["error", {functions: false}],+ "@typescript-eslint/no-use-before-define": [+ "error",+ {functions: false, variables: false},+ ],"@typescript-eslint/parameter-properties": "error","@typescript-eslint/promise-function-async": "error","@typescript-eslint/restrict-plus-operands": ["error", {}],