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

Allow dangling identifiers for the known HAL identifiers

Oliver Günthera18cb6034a7b
diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js
index 2594cf41ccf..6ba4e683b68 100644
--- a/frontend/.eslintrc.js
+++ b/frontend/.eslintrc.js
@@ -105,7 +105,24 @@ module.exports = {
"import/prefer-default-export": "off",
- "no-underscore-dangle": "warn",
+ // HAL has a lot of dangling properties, so allow
+ // usage in properties but not in all other places
+ "no-underscore-dangle": [
+ "warn",
+ {
+ allow: [
+ "_links",
+ "_embedded",
+ "_meta",
+ ],
+ allowAfterThis: false,
+ allowAfterSuper: false,
+ allowAfterThisConstructor: false,
+ enforceInMethodNames: true,
+ allowFunctionParams: false,
+ }
+ ],
+
"no-return-assign": ["error", "except-parens"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],