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

fix(lint): adjust false positive eslint rule

as-op5f0c10a7b162
diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js
index b6796c3ee03..0481eb6edfc 100644
--- a/frontend/.eslintrc.js
+++ b/frontend/.eslintrc.js
@@ -169,7 +169,7 @@ module.exports = {
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
// https://typescript-eslint.io/rules/no-base-to-string/ Disable false positives due to missing types
- "@typescript-eslint/no-base-to-string": ["error", { "ignoredTypeNames": ["Error", "RegExp", "URL", "URLSearchParams"] }],
+ "@typescript-eslint/no-base-to-string": ["error", { "ignoredTypeNames": ["URI", "Error", "RegExp", "URL", "URLSearchParams"] }],
//////////////////////////////////////////////////////////////////////
// Anything below this line should be turned on again at some point //
diff --git a/frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.ts b/frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.ts
index ffb557a688f..665a33382a0 100644
--- a/frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.ts
+++ b/frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.ts
@@ -175,7 +175,7 @@ export class WpTableExportModalComponent extends OpModalComponent implements OnI
}
private addGanttOptionsToHref(href:string) {
- const url = new URI(href);
+ const url = URI(href);
this.ganttFieldsArray.forEach((field) => {
url.addSearch(field.paramName, field.value);
});
@@ -223,7 +223,7 @@ export class WpTableExportModalComponent extends OpModalComponent implements OnI
const columnIds = columns.map((column) => column.id);
- const url = new URI(href);
+ const url = URI(href);
// Remove current columns
url.removeSearch('columns[]');
url.addSearch('columns[]', columnIds);