Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Disable no-use-before-define for TS functions/classes

Oliver Günther610d969fdbaf
diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js
index 05652d9a57b..4930db40b55 100644
--- a/frontend/.eslintrc.js
+++ b/frontend/.eslintrc.js
@@ -96,6 +96,10 @@ module.exports = {
// Until we do that, `void` is a good way to explicitly mark unhandled promises.
"no-void": ["error", { allowAsStatement: true }],
+ // Disable no-use for functions and classes
+ "no-use-before-define": ["error", { "functions": false, "classes": false }],
+ "@typescript-eslint/no-use-before-define": ["error", { "functions": false, "classes": false }],
+
/*
// Disable use before define, as irrelevant for TS interfaces
"no-use-before-define": "off",