From fe4e103a0377385bc203133166f73a32d720cb69 Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Wed, 2 Oct 2024 15:22:59 +0200 Subject: [PATCH] 117616: Added default options in .eslintrc.json --- .eslintrc.json | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index e47c3ea5228..9e9a2b55366 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -261,13 +261,42 @@ "rxjs/no-nested-subscribe": "off", // todo: go over _all_ cases // Custom DSpace Angular rules - "dspace-angular-ts/alias-imports": "error", + "dspace-angular-ts/alias-imports": [ + "error", + { + "aliases": [ + { + "package": "rxjs", + "imported": "of", + "local": "observableOf" + } + ] + } + ], "dspace-angular-ts/themed-component-classes": "error", "dspace-angular-ts/themed-component-selectors": "error", "dspace-angular-ts/themed-component-usages": "error", - "dspace-angular-ts/themed-decorators": "error", + "dspace-angular-ts/themed-decorators": [ + "error", + { + "decorators": { + "listableObjectComponent": 3, + "rendersSectionForMenu": 2 + } + } + ], "dspace-angular-ts/themed-wrapper-no-input-defaults": "error", - "dspace-angular-ts/unique-decorators": "error" + "dspace-angular-ts/unique-decorators": [ + "error", + { + "decorators": [ + "listableObjectComponent", + "rendersSectionForMenu", + "rendersMenuItemForType", + "dataService" + ] + } + ] } }, {