From f2c4dea382f555cf7d6b47dbf35c91d5e86d1110 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Tue, 10 Sep 2024 13:47:23 +0300 Subject: [PATCH] refactor: support `no-import-type-side-effects` (#8926) --- package.json | 1 - .../line-days-chart/line-days-chart.component.ts | 2 +- projects/core/directives/dropdown/dropdown.directive.ts | 7 +------ .../input-date-range/input-date-range.component.ts | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index f61b69b3d824..1434271f64f5 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,6 @@ "plugin:@taiga-ui/experience/entry-points" ], "rules": { - "@typescript-eslint/no-import-type-side-effects": "off", "@typescript-eslint/prefer-regexp-exec": "off", "jest/prefer-importing-jest-globals": "off", "sonarjs/arguments-order": "off", diff --git a/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts b/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts index c826b39a91ed..a47b6dd4449d 100644 --- a/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts +++ b/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts @@ -1,5 +1,5 @@ import {NgForOf} from '@angular/common'; -import {type AfterViewInit, type QueryList} from '@angular/core'; +import type {AfterViewInit, QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, diff --git a/projects/core/directives/dropdown/dropdown.directive.ts b/projects/core/directives/dropdown/dropdown.directive.ts index 84e4c9cbf8da..327e8a5e4e90 100644 --- a/projects/core/directives/dropdown/dropdown.directive.ts +++ b/projects/core/directives/dropdown/dropdown.directive.ts @@ -1,9 +1,4 @@ -import { - type AfterViewChecked, - type ComponentRef, - type OnChanges, - type OnDestroy, -} from '@angular/core'; +import type {AfterViewChecked, ComponentRef, OnChanges, OnDestroy} from '@angular/core'; import { ChangeDetectorRef, Directive, diff --git a/projects/legacy/components/input-date-range/input-date-range.component.ts b/projects/legacy/components/input-date-range/input-date-range.component.ts index 71c4898bed6b..d68e4fcd533d 100644 --- a/projects/legacy/components/input-date-range/input-date-range.component.ts +++ b/projects/legacy/components/input-date-range/input-date-range.component.ts @@ -33,7 +33,7 @@ import { import type {TuiMarkerHandler} from '@taiga-ui/core/components/calendar'; import {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens'; import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; -import {type TuiDayRangePeriod} from '@taiga-ui/kit/components/calendar-range'; +import type {TuiDayRangePeriod} from '@taiga-ui/kit/components/calendar-range'; import type {TuiInputDateOptions} from '@taiga-ui/kit/tokens'; import { TUI_DATE_RANGE_VALUE_TRANSFORMER,