From 4fb329d964ba38384ef14fc12671fa6a7b0c706f Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Fri, 21 Jun 2024 16:13:10 +0300 Subject: [PATCH] chore: fix lint (#7898) --- projects/core/components/calendar/calendar.component.ts | 3 ++- projects/core/components/data-list/option.component.ts | 3 ++- .../core/directives/date-format/date-format.directive.ts | 3 ++- .../directives/number-format/number-format.directive.ts | 3 ++- projects/core/pipes/format-number/format-number.pipe.ts | 3 ++- projects/core/services/breakpoint.service.ts | 3 ++- projects/demo/src/modules/app/app.config.ts | 6 ++++-- projects/demo/src/modules/components/accordion/index.ts | 6 ++++-- .../demo/src/modules/components/alert/examples/3/index.ts | 3 ++- .../demo/src/modules/components/alert/examples/4/index.ts | 3 ++- .../demo/src/modules/components/alert/examples/5/index.ts | 3 ++- projects/demo/src/modules/components/badge/index.ts | 4 ++-- projects/demo/src/modules/components/breadcrumbs/index.ts | 3 ++- .../src/modules/components/calendar/examples/3/index.ts | 3 ++- .../src/modules/customization/dialogs/examples/1/index.ts | 2 +- .../data-list-wrapper/data-list-wrapper.component.ts | 3 ++- .../get-country-calling-code.pipe.ts | 3 ++- .../components/routable-dialog/generate-dialogable-route.ts | 2 +- 18 files changed, 38 insertions(+), 21 deletions(-) diff --git a/projects/core/components/calendar/calendar.component.ts b/projects/core/components/calendar/calendar.component.ts index fed36b754cff..f49cafcab215 100644 --- a/projects/core/components/calendar/calendar.component.ts +++ b/projects/core/components/calendar/calendar.component.ts @@ -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'; diff --git a/projects/core/components/data-list/option.component.ts b/projects/core/components/data-list/option.component.ts index 7ebb25822225..911c364e867d 100644 --- a/projects/core/components/data-list/option.component.ts +++ b/projects/core/components/data-list/option.component.ts @@ -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'; diff --git a/projects/core/directives/date-format/date-format.directive.ts b/projects/core/directives/date-format/date-format.directive.ts index df451530f009..1fab9aa4939a 100644 --- a/projects/core/directives/date-format/date-format.directive.ts +++ b/projects/core/directives/date-format/date-format.directive.ts @@ -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({ diff --git a/projects/core/directives/number-format/number-format.directive.ts b/projects/core/directives/number-format/number-format.directive.ts index 1f89c1f801e6..fba7884cf17a 100644 --- a/projects/core/directives/number-format/number-format.directive.ts +++ b/projects/core/directives/number-format/number-format.directive.ts @@ -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({ diff --git a/projects/core/pipes/format-number/format-number.pipe.ts b/projects/core/pipes/format-number/format-number.pipe.ts index 56c0533fdcec..043668ecf711 100644 --- a/projects/core/pipes/format-number/format-number.pipe.ts +++ b/projects/core/pipes/format-number/format-number.pipe.ts @@ -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'; diff --git a/projects/core/services/breakpoint.service.ts b/projects/core/services/breakpoint.service.ts index 563eda3fd423..23ef10aca0ec 100644 --- a/projects/core/services/breakpoint.service.ts +++ b/projects/core/services/breakpoint.service.ts @@ -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; diff --git a/projects/demo/src/modules/app/app.config.ts b/projects/demo/src/modules/app/app.config.ts index 2f2c873c3158..0e4960716cc2 100644 --- a/projects/demo/src/modules/app/app.config.ts +++ b/projects/demo/src/modules/app/app.config.ts @@ -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 { @@ -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'; diff --git a/projects/demo/src/modules/components/accordion/index.ts b/projects/demo/src/modules/components/accordion/index.ts index 11734e265bfd..701cfabd5369 100644 --- a/projects/demo/src/modules/components/accordion/index.ts +++ b/projects/demo/src/modules/components/accordion/index.ts @@ -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'; diff --git a/projects/demo/src/modules/components/alert/examples/3/index.ts b/projects/demo/src/modules/components/alert/examples/3/index.ts index 6dd334070f11..bc23d9c83ffd 100644 --- a/projects/demo/src/modules/components/alert/examples/3/index.ts +++ b/projects/demo/src/modules/components/alert/examples/3/index.ts @@ -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'; diff --git a/projects/demo/src/modules/components/alert/examples/4/index.ts b/projects/demo/src/modules/components/alert/examples/4/index.ts index f635339d2413..09d066528e95 100644 --- a/projects/demo/src/modules/components/alert/examples/4/index.ts +++ b/projects/demo/src/modules/components/alert/examples/4/index.ts @@ -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'; diff --git a/projects/demo/src/modules/components/alert/examples/5/index.ts b/projects/demo/src/modules/components/alert/examples/5/index.ts index d8f13d6344dc..45de8d0805e8 100644 --- a/projects/demo/src/modules/components/alert/examples/5/index.ts +++ b/projects/demo/src/modules/components/alert/examples/5/index.ts @@ -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, diff --git a/projects/demo/src/modules/components/badge/index.ts b/projects/demo/src/modules/components/badge/index.ts index 475d54c8ad4d..6a6c5439fd12 100644 --- a/projects/demo/src/modules/components/badge/index.ts +++ b/projects/demo/src/modules/components/badge/index.ts @@ -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'; diff --git a/projects/demo/src/modules/components/breadcrumbs/index.ts b/projects/demo/src/modules/components/breadcrumbs/index.ts index 10dd56264bd6..99dc8146c51f 100644 --- a/projects/demo/src/modules/components/breadcrumbs/index.ts +++ b/projects/demo/src/modules/components/breadcrumbs/index.ts @@ -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({ diff --git a/projects/demo/src/modules/components/calendar/examples/3/index.ts b/projects/demo/src/modules/components/calendar/examples/3/index.ts index 877ac915565a..83bea18ea485 100644 --- a/projects/demo/src/modules/components/calendar/examples/3/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/3/index.ts @@ -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)', diff --git a/projects/demo/src/modules/customization/dialogs/examples/1/index.ts b/projects/demo/src/modules/customization/dialogs/examples/1/index.ts index 18c0749d4298..5de5e7b4e12c 100644 --- a/projects/demo/src/modules/customization/dialogs/examples/1/index.ts +++ b/projects/demo/src/modules/customization/dialogs/examples/1/index.ts @@ -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'; diff --git a/projects/kit/components/data-list-wrapper/data-list-wrapper.component.ts b/projects/kit/components/data-list-wrapper/data-list-wrapper.component.ts index cbbe902b1c23..5ef3c4c387fa 100644 --- a/projects/kit/components/data-list-wrapper/data-list-wrapper.component.ts +++ b/projects/kit/components/data-list-wrapper/data-list-wrapper.component.ts @@ -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, diff --git a/projects/kit/components/input-phone-international/get-country-calling-code.pipe.ts b/projects/kit/components/input-phone-international/get-country-calling-code.pipe.ts index 6d77e7354744..68f72eef58fb 100644 --- a/projects/kit/components/input-phone-international/get-country-calling-code.pipe.ts +++ b/projects/kit/components/input-phone-international/get-country-calling-code.pipe.ts @@ -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'; diff --git a/projects/kit/components/routable-dialog/generate-dialogable-route.ts b/projects/kit/components/routable-dialog/generate-dialogable-route.ts index 7dccc551d263..252a91fd5c60 100644 --- a/projects/kit/components/routable-dialog/generate-dialogable-route.ts +++ b/projects/kit/components/routable-dialog/generate-dialogable-route.ts @@ -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';