Skip to content

Commit

Permalink
chore: fix lint (#7898)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Jun 21, 2024
1 parent f5b8b4a commit 4fb329d
Show file tree
Hide file tree
Showing 18 changed files with 38 additions and 21 deletions.
3 changes: 2 additions & 1 deletion projects/core/components/calendar/calendar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import type {TuiBooleanHandler, TuiMapper} from '@taiga-ui/cdk/types';
import {tuiNullableSame} from '@taiga-ui/cdk/utils/miscellaneous';
import {TuiScrollbar} from '@taiga-ui/core/components/scrollbar';

import {TuiCalendarSheet, type TuiMarkerHandler} from './calendar-sheet.component';
import type {TuiMarkerHandler} from './calendar-sheet.component';
import {TuiCalendarSheet} from './calendar-sheet.component';
import {TuiCalendarSpin} from './calendar-spin.component';
import {TuiCalendarYear} from './calendar-year.component';

Expand Down
3 changes: 2 additions & 1 deletion projects/core/components/data-list/option.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';
import {tuiIsNativeFocused} from '@taiga-ui/cdk/utils/focus';
import {TuiDropdownDirective} from '@taiga-ui/core/directives/dropdown';
import {TuiIcons} from '@taiga-ui/core/directives/icons';
import {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';
import type {PolymorpheusContent} from '@taiga-ui/polymorpheus';
import {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';

import {TuiDataListComponent} from './data-list.component';
import type {TuiDataListHost} from './data-list.tokens';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Directive, inject, Input} from '@angular/core';
import {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';
import {TUI_DATE_FORMAT, type TuiDateFormatSettings} from '@taiga-ui/core/tokens';
import type {TuiDateFormatSettings} from '@taiga-ui/core/tokens';
import {TUI_DATE_FORMAT} from '@taiga-ui/core/tokens';
import {combineLatest, map, Observable, ReplaySubject} from 'rxjs';

@Directive({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Directive, inject, Input} from '@angular/core';
import {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';
import {TUI_NUMBER_FORMAT, type TuiNumberFormatSettings} from '@taiga-ui/core/tokens';
import type {TuiNumberFormatSettings} from '@taiga-ui/core/tokens';
import {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';
import {combineLatest, map, Observable, ReplaySubject} from 'rxjs';

@Directive({
Expand Down
3 changes: 2 additions & 1 deletion projects/core/pipes/format-number/format-number.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type {PipeTransform} from '@angular/core';
import {inject, Pipe} from '@angular/core';
import {TUI_NUMBER_FORMAT, type TuiNumberFormatSettings} from '@taiga-ui/core/tokens';
import type {TuiNumberFormatSettings} from '@taiga-ui/core/tokens';
import {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens';
import {tuiFormatNumber} from '@taiga-ui/core/utils/format';
import type {Observable} from 'rxjs';
import {map} from 'rxjs';
Expand Down
3 changes: 2 additions & 1 deletion projects/core/services/breakpoint.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {inject, Injectable, NgZone} from '@angular/core';
import {tuiZoneOptimized} from '@taiga-ui/cdk/observables';
import {TUI_WINDOW_SIZE} from '@taiga-ui/cdk/tokens';
import {TUI_MEDIA, type TuiMedia} from '@taiga-ui/core/tokens';
import type {TuiMedia} from '@taiga-ui/core/tokens';
import {TUI_MEDIA} from '@taiga-ui/core/tokens';
import {distinctUntilChanged, map, Observable, shareReplay} from 'rxjs';

export type TuiBreakpointMediaKey = keyof Omit<TuiMedia, 'tablet'>;
Expand Down
6 changes: 4 additions & 2 deletions projects/demo/src/modules/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import type {ApplicationConfig} from '@angular/core';
import {inject, PLATFORM_ID, provideZoneChangeDetection} from '@angular/core';
import {Title} from '@angular/platform-browser';
import {provideAnimations} from '@angular/platform-browser/animations';
import {provideRouter, type UrlTree, withInMemoryScrolling} from '@angular/router';
import type {UrlTree} from '@angular/router';
import {provideRouter, withInMemoryScrolling} from '@angular/router';
import {environment} from '@demo/environments/environment';
import {SESSION_STORAGE} from '@ng-web-apis/common';
import {
Expand All @@ -30,7 +31,8 @@ import {
} from '@taiga-ui/core';
import {NgDompurifySanitizer} from '@taiga-ui/dompurify';
import {NG_EVENT_PLUGINS} from '@taiga-ui/event-plugins';
import {type TuiLanguageName, tuiLanguageSwitcher} from '@taiga-ui/i18n';
import type {TuiLanguageName} from '@taiga-ui/i18n';
import {tuiLanguageSwitcher} from '@taiga-ui/i18n';
import {TUI_SANITIZER} from '@taiga-ui/legacy';
import {HIGHLIGHT_OPTIONS} from 'ngx-highlightjs';

Expand Down
6 changes: 4 additions & 2 deletions projects/demo/src/modules/components/accordion/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import {Component, DestroyRef, type ElementRef, inject, ViewChild} from '@angular/core';
import type {ElementRef} from '@angular/core';
import {Component, DestroyRef, inject, ViewChild} from '@angular/core';
import {takeUntilDestroyed} from '@angular/core/rxjs-interop';
import {changeDetection} from '@demo/emulate/change-detection';
import {TuiDemo} from '@demo/utils';
import {TUI_EXPAND_LOADED, type TuiSizeS} from '@taiga-ui/core';
import type {TuiSizeS} from '@taiga-ui/core';
import {TUI_EXPAND_LOADED} from '@taiga-ui/core';
import {TuiAccordion} from '@taiga-ui/kit';
import {timer} from 'rxjs';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {Router} from '@angular/router';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import type {TuiPopover} from '@taiga-ui/cdk';
import {type TuiAlertOptions, TuiAlertService, TuiButton} from '@taiga-ui/core';
import type {TuiAlertOptions} from '@taiga-ui/core';
import {TuiAlertService, TuiButton} from '@taiga-ui/core';
import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@taiga-ui/polymorpheus';
import {switchMap, takeUntil} from 'rxjs';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {TuiAmountPipe} from '@taiga-ui/addon-commerce';
import type {TuiPopover} from '@taiga-ui/cdk';
import {type TuiAlertOptions, TuiAlertService, TuiButton, TuiLink} from '@taiga-ui/core';
import type {TuiAlertOptions} from '@taiga-ui/core';
import {TuiAlertService, TuiButton, TuiLink} from '@taiga-ui/core';
import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@taiga-ui/polymorpheus';
import {switchMap, takeUntil} from 'rxjs';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {Router} from '@angular/router';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import type {TuiPopover} from '@taiga-ui/cdk';
import {type TuiAlertOptions, TuiAlertService, TuiButton, TuiIcon} from '@taiga-ui/core';
import type {TuiAlertOptions} from '@taiga-ui/core';
import {TuiAlertService, TuiButton, TuiIcon} from '@taiga-ui/core';
import {
POLYMORPHEUS_CONTEXT,
PolymorpheusComponent,
Expand Down
4 changes: 2 additions & 2 deletions projects/demo/src/modules/components/badge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {Component} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {TuiDemo} from '@demo/utils';
import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc';
import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core';
import type {TuiRawLoaderContent} from '@taiga-ui/addon-doc';
import type {TuiSizeS, TuiSizeXL} from '@taiga-ui/core';
import {TuiBadge, TuiFade, TuiRadioList} from '@taiga-ui/kit';

import {TuiBadgeExample1} from './examples/1';
Expand Down
3 changes: 2 additions & 1 deletion projects/demo/src/modules/components/breadcrumbs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {Component} from '@angular/core';
import {changeDetection} from '@demo/emulate/change-detection';
import {TuiDemo} from '@demo/utils';
import {TuiItem} from '@taiga-ui/cdk';
import {TuiLink, type TuiSizeL} from '@taiga-ui/core';
import type {TuiSizeL} from '@taiga-ui/core';
import {TuiLink} from '@taiga-ui/core';
import {TuiBreadcrumbs} from '@taiga-ui/kit';

@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import type {TuiDay} from '@taiga-ui/cdk';
import {TuiDayRange, TuiMonth} from '@taiga-ui/cdk';
import {TuiCalendar, type TuiMarkerHandler} from '@taiga-ui/core';
import type {TuiMarkerHandler} from '@taiga-ui/core';
import {TuiCalendar} from '@taiga-ui/core';

const TWO_DOTS: [string, string] = [
'var(--tui-background-accent-1)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Component, inject} from '@angular/core';
import {changeDetection} from '@demo/emulate/change-detection';
import {TuiAlertService, TuiButton} from '@taiga-ui/core';
import {TuiAvatar} from '@taiga-ui/kit';
import {type PolymorpheusContent} from '@taiga-ui/polymorpheus';
import type {PolymorpheusContent} from '@taiga-ui/polymorpheus';
import {switchMap} from 'rxjs';

import {PromptService} from './prompt/prompt.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import {TuiLoader} from '@taiga-ui/core/components/loader';
import type {TuiValueContentContext} from '@taiga-ui/core/types';
import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens';
import {TUI_ITEMS_HANDLERS} from '@taiga-ui/kit/tokens';
import {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';
import type {PolymorpheusContent} from '@taiga-ui/polymorpheus';
import {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';

@Component({
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Pipe, type PipeTransform} from '@angular/core';
import type {PipeTransform} from '@angular/core';
import {Pipe} from '@angular/core';
import {CHAR_PLUS} from '@taiga-ui/cdk/constants';
import type {TuiCountryIsoCode} from '@taiga-ui/i18n/enums';
import type {MetadataJson} from 'libphonenumber-js/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {type Type} from '@angular/core';
import type {Type} from '@angular/core';
import type {DefaultExport, Route} from '@angular/router';
import type {TuiDialogOptions} from '@taiga-ui/core/components/dialog';

Expand Down

0 comments on commit 4fb329d

Please sign in to comment.