diff --git a/.eslintrc.json b/.eslintrc.json index 8cbb1d32..e9df6f8b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -51,14 +51,14 @@ ], "@angular-eslint/prefer-on-push-component-change-detection": ["off"], "@angular-eslint/prefer-output-readonly": ["error"], - "@angular-eslint/prefer-standalone": ["warn"], + "@angular-eslint/prefer-standalone": ["error"], "@angular-eslint/relative-url-prefix": ["error"], "@angular-eslint/use-component-view-encapsulation": ["error"], "@angular-eslint/use-injectable-provided-in": ["error"], "@angular-eslint/use-lifecycle-interface": ["error"], "@typescript-eslint/no-explicit-any": ["off"], "@typescript-eslint/no-unused-vars": [ - "warn", + "error", { "vars": "all", "args": "none" diff --git a/src/app/core/admin/cache-entries/list-cache-entries/list-cache-entries.component.ts b/src/app/core/admin/cache-entries/list-cache-entries/list-cache-entries.component.ts index 310bc498..38119089 100644 --- a/src/app/core/admin/cache-entries/list-cache-entries/list-cache-entries.component.ts +++ b/src/app/core/admin/cache-entries/list-cache-entries/list-cache-entries.component.ts @@ -5,9 +5,8 @@ import { HttpErrorResponse } from '@angular/common/http'; import { Component, DestroyRef, OnInit, inject } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; -import { filterNil } from 'ngxtension/filter-nil'; import { Observable } from 'rxjs'; -import { filter, first, switchMap } from 'rxjs/operators'; +import { first, switchMap } from 'rxjs/operators'; import { PagingOptions, @@ -16,7 +15,7 @@ import { SkipToDirective, SortDirection } from '../../../../common'; -import { DialogAction, DialogService, isDialogActionOK } from '../../../../common/dialog'; +import { DialogService, isDialogActionOK } from '../../../../common/dialog'; import { AgoDatePipe, UtcDatePipe } from '../../../../common/pipes'; import { SystemAlertComponent, SystemAlertService } from '../../../../common/system-alert'; import { diff --git a/src/app/core/admin/messages/list-messages/list-messages.component.ts b/src/app/core/admin/messages/list-messages/list-messages.component.ts index d9d3819e..bf8035ee 100644 --- a/src/app/core/admin/messages/list-messages/list-messages.component.ts +++ b/src/app/core/admin/messages/list-messages/list-messages.component.ts @@ -4,9 +4,8 @@ import { Component, DestroyRef, OnInit, inject } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { RouterLink } from '@angular/router'; -import { filterNil } from 'ngxtension/filter-nil'; import { Observable } from 'rxjs'; -import { filter, first, switchMap } from 'rxjs/operators'; +import { first, switchMap } from 'rxjs/operators'; import { CdkMenuItemRouterLinkDirective, @@ -16,7 +15,7 @@ import { SkipToDirective, SortDirection } from '../../../../common'; -import { DialogAction, DialogService, isDialogActionOK } from '../../../../common/dialog'; +import { DialogService, isDialogActionOK } from '../../../../common/dialog'; import { SystemAlertComponent, SystemAlertService } from '../../../../common/system-alert'; import { ActionsMenuColumnComponent, diff --git a/src/app/core/admin/user/list-users/admin-list-users.component.ts b/src/app/core/admin/user/list-users/admin-list-users.component.ts index e862a6bb..b38596e4 100644 --- a/src/app/core/admin/user/list-users/admin-list-users.component.ts +++ b/src/app/core/admin/user/list-users/admin-list-users.component.ts @@ -8,9 +8,8 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { RouterLink } from '@angular/router'; import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'; -import { filterNil } from 'ngxtension/filter-nil'; import { Observable, of } from 'rxjs'; -import { catchError, filter, first, switchMap } from 'rxjs/operators'; +import { catchError, first, switchMap } from 'rxjs/operators'; import { CdkMenuItemRouterLinkDirective, @@ -20,7 +19,7 @@ import { SkipToDirective, SortDirection } from '../../../../common'; -import { DialogAction, DialogService, isDialogActionOK } from '../../../../common/dialog'; +import { DialogService, isDialogActionOK } from '../../../../common/dialog'; import { JoinPipe } from '../../../../common/pipes'; import { SystemAlertComponent, SystemAlertService } from '../../../../common/system-alert'; import { diff --git a/src/app/core/messages/message.service.ts b/src/app/core/messages/message.service.ts index ab3e1330..72a720d5 100644 --- a/src/app/core/messages/message.service.ts +++ b/src/app/core/messages/message.service.ts @@ -5,7 +5,7 @@ import { ActivatedRouteSnapshot, ResolveFn, Router, RouterStateSnapshot } from ' import { filterNil } from 'ngxtension/filter-nil'; import { mapArray } from 'ngxtension/map-array'; import { Observable, take } from 'rxjs'; -import { catchError, filter, map } from 'rxjs/operators'; +import { catchError, filter } from 'rxjs/operators'; import { AbstractEntityService, ServiceMethod } from '../../common'; import { SocketService } from '../socket.service'; diff --git a/src/app/core/teams/view-team/view-team.component.ts b/src/app/core/teams/view-team/view-team.component.ts index 05257275..2228dfa5 100644 --- a/src/app/core/teams/view-team/view-team.component.ts +++ b/src/app/core/teams/view-team/view-team.component.ts @@ -9,9 +9,9 @@ import { import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { Router, RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router'; -import { filter, first, map, switchMap } from 'rxjs/operators'; +import { first, map, switchMap } from 'rxjs/operators'; -import { DialogAction, DialogService, isDialogActionOK } from '../../../common/dialog'; +import { DialogService, isDialogActionOK } from '../../../common/dialog'; import { SystemAlertComponent } from '../../../common/system-alert'; import { SessionService } from '../../auth'; import { APP_SESSION } from '../../tokens';