Skip to content

Commit

Permalink
ci: lint (#6939)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Mar 4, 2024
1 parent d4bd657 commit 6c16a09
Show file tree
Hide file tree
Showing 1,435 changed files with 3,080 additions and 2,768 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"@taiga-ui/browserslist-config": "0.6.0",
"@taiga-ui/commitlint-config": "0.7.1",
"@taiga-ui/cspell-config": "0.36.0",
"@taiga-ui/eslint-plugin-experience": "0.63.0",
"@taiga-ui/eslint-plugin-experience": "0.64.0",
"@taiga-ui/prettier-config": "0.10.0",
"@taiga-ui/stylelint-config": "0.20.0",
"@taiga-ui/tsconfig": "0.17.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
type ElementRef,
HostBinding,
inject,
Input,
Output,
QueryList,
type QueryList,
ViewChildren,
} from '@angular/core';
import {DomSanitizer, SafeValue} from '@angular/platform-browser';
import {DomSanitizer, type SafeValue} from '@angular/platform-browser';
import {TuiDestroyService, tuiTypedFromEvent, tuiWatch} from '@taiga-ui/cdk';
import {TuiSizeXL} from '@taiga-ui/core';
import {type TuiSizeXL} from '@taiga-ui/core';
import {
map,
merge,
Observable,
type Observable,
ReplaySubject,
startWith,
switchMap,
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/components/axes/axes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Input,
} from '@angular/core';
import {TUI_ALWAYS_DASHED, TUI_ALWAYS_SOLID} from '@taiga-ui/addon-charts/constants';
import {TuiLineHandler, TuiLineType} from '@taiga-ui/addon-charts/types';
import {type TuiLineHandler, type TuiLineType} from '@taiga-ui/addon-charts/types';
import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';
import {MODE_PROVIDER, TUI_MODE} from '@taiga-ui/core';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Component, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {TuiAxesComponent, TuiAxesModule} from '@taiga-ui/addon-charts';
import {type ComponentFixture, TestBed} from '@angular/core/testing';
import {type TuiAxesComponent, TuiAxesModule} from '@taiga-ui/addon-charts';
import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';

describe('Axes', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@ import {
Component,
inject,
Input,
QueryList,
type QueryList,
ViewChildren,
} from '@angular/core';
import {
EMPTY_QUERY,
TuiContext,
type TuiContext,
TuiIdService,
tuiPure,
tuiSum,
TuiTypedMapper,
type TuiTypedMapper,
} from '@taiga-ui/cdk';
import {
TuiHintHoverDirective,
TuiHintOptionsDirective,
tuiHintOptionsProvider,
TuiSizeL,
TuiSizeS,
type TuiSizeL,
type TuiSizeS,
} from '@taiga-ui/core';
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {Observable} from 'rxjs';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {type Observable} from 'rxjs';

@Component({
selector: 'tui-bar-chart',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Component, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {type ComponentFixture, TestBed} from '@angular/core/testing';
import {TuiBarChartComponent, TuiBarChartModule} from '@taiga-ui/addon-charts';

describe('BarChart', () => {
Expand Down
4 changes: 2 additions & 2 deletions projects/addon-charts/components/bar-set/bar-set.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ChangeDetectionStrategy, Component, Input} from '@angular/core';
import {SafeValue} from '@angular/platform-browser';
import {type SafeValue} from '@angular/platform-browser';
import {tuiPure} from '@taiga-ui/cdk';
import {TuiSizeL, TuiSizeS} from '@taiga-ui/core';
import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core';

const PERCENT = 100;
const EMPTY_ARRAY: readonly number[] = [];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Component, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {type ComponentFixture, TestBed} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {TuiBarSetComponent, TuiBarSetModule} from '@taiga-ui/addon-charts';

Expand Down
4 changes: 2 additions & 2 deletions projects/addon-charts/components/bar/bar.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';
import {SafeValue} from '@angular/platform-browser';
import {type SafeValue} from '@angular/platform-browser';
import {tuiPure, tuiSum} from '@taiga-ui/cdk';
import {TuiSizeL, TuiSizeS} from '@taiga-ui/core';
import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core';

@Component({
selector: 'tui-bar',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';
import {TuiSizeS} from '@taiga-ui/core';
import {type TuiSizeS} from '@taiga-ui/core';

@Component({
selector: 'tui-legend-item',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
import {
AfterViewInit,
type AfterViewInit,
ContentChildren,
Directive,
ElementRef,
forwardRef,
inject,
Input,
NgZone,
QueryList,
type QueryList,
Renderer2,
} from '@angular/core';
import {
EMPTY_QUERY,
TuiContext,
type TuiContext,
TuiDestroyService,
TuiHoveredService,
tuiPure,
tuiQueryListChanges,
tuiZonefree,
} from '@taiga-ui/cdk';
import {TuiPoint} from '@taiga-ui/core';
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {type TuiPoint} from '@taiga-ui/core';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {
combineLatest,
distinctUntilChanged,
filter,
map,
Observable,
type Observable,
startWith,
switchMap,
takeUntil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ import {
inject,
Input,
NgZone,
QueryList,
type QueryList,
ViewChildren,
} from '@angular/core';
import {TuiLineChartHintContext} from '@taiga-ui/addon-charts/interfaces';
import {type TuiLineChartHintContext} from '@taiga-ui/addon-charts/interfaces';
import {tuiDraw} from '@taiga-ui/addon-charts/utils';
import {
EMPTY_QUERY,
TuiIdService,
tuiIsPresent,
tuiPure,
TuiStringHandler,
type TuiStringHandler,
tuiZoneOptimized,
} from '@taiga-ui/cdk';
import {
TuiHintHoverDirective,
TuiHintOptionsDirective,
tuiHintOptionsProvider,
TuiPoint,
type TuiPoint,
} from '@taiga-ui/core';
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {distinctUntilChanged, Observable, Subject} from 'rxjs';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {distinctUntilChanged, type Observable, Subject} from 'rxjs';

import {TUI_LINE_CHART_OPTIONS} from './line-chart.options';
import {TuiLineChartHintDirective} from './line-chart-hint.directive';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Provider} from '@angular/core';
import {type Provider} from '@angular/core';
import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';

export interface TuiLineChartOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import {
AfterContentInit,
type AfterContentInit,
ContentChildren,
Directive,
forwardRef,
inject,
Input,
NgZone,
QueryList,
type QueryList,
} from '@angular/core';
import {tuiLineChartDrivers} from '@taiga-ui/addon-charts/components/line-chart';
import {
EMPTY_QUERY,
TuiContext,
TuiDay,
type TuiContext,
type TuiDay,
TuiDestroyService,
TuiHoveredService,
tuiPure,
tuiZonefree,
} from '@taiga-ui/cdk';
import {TuiPoint} from '@taiga-ui/core';
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {type TuiPoint} from '@taiga-ui/core';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {combineLatest, filter, takeUntil} from 'rxjs';

import {TuiLineDaysChartComponent} from './line-days-chart.component';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
AfterViewInit,
type AfterViewInit,
ChangeDetectionStrategy,
Component,
HostBinding,
inject,
Input,
NgZone,
QueryList,
type QueryList,
ViewChildren,
} from '@angular/core';
import {
Expand All @@ -18,19 +18,19 @@ import {
import {
EMPTY_ARRAY,
EMPTY_QUERY,
TuiContext,
type TuiContext,
TuiDay,
TuiDestroyService,
TuiHoveredService,
tuiIsNumber,
tuiIsPresent,
TuiMonth,
tuiPure,
TuiStringHandler,
type TuiStringHandler,
tuiZonefree,
} from '@taiga-ui/cdk';
import {TuiPoint} from '@taiga-ui/core';
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {type TuiPoint} from '@taiga-ui/core';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {combineLatest, filter, takeUntil} from 'rxjs';

import {TuiLineDaysChartHintDirective} from './line-days-chart-hint.directive';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import {
Input,
Output,
} from '@angular/core';
import {SafeValue} from '@angular/platform-browser';
import {TuiContext, TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk';
import {type SafeValue} from '@angular/platform-browser';
import {type TuiContext, TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk';
import {
TuiHintOptionsDirective,
tuiHintOptionsProvider,
TuiSizeXL,
TuiSizeXS,
type TuiSizeXL,
type TuiSizeXS,
} from '@taiga-ui/core';
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';

const RADII = {
xs: '50',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Location} from '@angular/common';
import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {type ComponentFixture, TestBed} from '@angular/core/testing';
import {TuiPieChartModule} from '@taiga-ui/addon-charts';
import {TuiPageObject} from '@taiga-ui/testing';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Input,
Output,
} from '@angular/core';
import {TuiSizeS, TuiSizeXL} from '@taiga-ui/core';
import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core';

@Component({
selector: 'tui-ring-chart',
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/constants/line-handlers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TuiLineHandler} from '@taiga-ui/addon-charts/types';
import {type TuiLineHandler} from '@taiga-ui/addon-charts/types';

export const TUI_ALWAYS_DASHED: TuiLineHandler = () => 'dashed';
export const TUI_ALWAYS_DOTTED: TuiLineHandler = () => 'dotted';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TuiContext} from '@taiga-ui/cdk';
import {type TuiContext} from '@taiga-ui/cdk';

export interface TuiLineChartHintContext<T> extends TuiContext<T> {
readonly index?: number;
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/types/line-handler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import {TuiLineType} from './line-type';
import {type TuiLineType} from './line-type';

export type TuiLineHandler = (index: number, total: number) => TuiLineType;
2 changes: 1 addition & 1 deletion projects/addon-charts/utils/control-point.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TuiPoint} from '@taiga-ui/core';
import {type TuiPoint} from '@taiga-ui/core';

import {tuiLineAngle} from './line-angle';
import {tuiLineLength} from './line-length';
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/utils/draw-curve.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TuiPoint} from '@taiga-ui/core';
import {type TuiPoint} from '@taiga-ui/core';

import {tuiControlPoint} from './control-point';

Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/utils/draw.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TuiPoint} from '@taiga-ui/core';
import {type TuiPoint} from '@taiga-ui/core';

import {tuiDrawCurve} from './draw-curve';
import {tuiDrawLine} from './draw-line';
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/utils/line-angle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TuiPoint} from '@taiga-ui/core';
import {type TuiPoint} from '@taiga-ui/core';

export function tuiLineAngle(a: TuiPoint, b: TuiPoint): number {
const x = b[0] - a[0];
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/utils/line-length.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TuiPoint} from '@taiga-ui/core';
import {type TuiPoint} from '@taiga-ui/core';

export function tuiLineLength(a: TuiPoint, b: TuiPoint): number {
const x = b[0] - a[0];
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/utils/prepare-external-url.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Location as NgLocation} from '@angular/common';
import {type Location as NgLocation} from '@angular/common';

/** @deprecated */
export function tuiPrepareExternalUrl(
Expand Down
Loading

0 comments on commit 6c16a09

Please sign in to comment.