Skip to content

Commit

Permalink
ci: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Mar 6, 2024
1 parent be53d5f commit c1003b0
Show file tree
Hide file tree
Showing 1,427 changed files with 3,496 additions and 3,772 deletions.
11 changes: 4 additions & 7 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.64.0",
"@taiga-ui/eslint-plugin-experience": "0.65.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
@@ -1,22 +1,22 @@
import type {ElementRef, QueryList} from '@angular/core';
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
type ElementRef,
HostBinding,
inject,
Input,
Output,
type QueryList,
ViewChildren,
} from '@angular/core';
import {DomSanitizer, type SafeValue} from '@angular/platform-browser';
import type {SafeValue} from '@angular/platform-browser';
import {DomSanitizer} from '@angular/platform-browser';
import {TuiDestroyService, tuiTypedFromEvent, tuiWatch} from '@taiga-ui/cdk';
import {type TuiSizeXL} from '@taiga-ui/core';
import type {TuiSizeXL} from '@taiga-ui/core';
import type {Observable} from 'rxjs';
import {
map,
merge,
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 {type TuiLineHandler, type TuiLineType} from '@taiga-ui/addon-charts/types';
import type {TuiLineHandler, 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,8 @@
import {Component, ViewChild} from '@angular/core';
import {type ComponentFixture, TestBed} from '@angular/core/testing';
import {type TuiAxesComponent, TuiAxesModule} from '@taiga-ui/addon-charts';
import type {ComponentFixture} from '@angular/core/testing';
import {TestBed} from '@angular/core/testing';
import type {TuiAxesComponent} from '@taiga-ui/addon-charts';
import {TuiAxesModule} from '@taiga-ui/addon-charts';
import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';

describe('Axes', () => {
Expand Down
19 changes: 6 additions & 13 deletions projects/addon-charts/components/bar-chart/bar-chart.component.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
import type {QueryList} from '@angular/core';
import {
ChangeDetectionStrategy,
Component,
inject,
Input,
type QueryList,
ViewChildren,
} from '@angular/core';
import {
EMPTY_QUERY,
type TuiContext,
TuiIdService,
tuiPure,
tuiSum,
type TuiTypedMapper,
} from '@taiga-ui/cdk';
import type {TuiContext, TuiTypedMapper} from '@taiga-ui/cdk';
import {EMPTY_QUERY, TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk';
import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core';
import {
TuiHintHoverDirective,
TuiHintOptionsDirective,
tuiHintOptionsProvider,
type TuiSizeL,
type TuiSizeS,
} from '@taiga-ui/core';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {type 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,6 @@
import {Component, ViewChild} from '@angular/core';
import {type ComponentFixture, TestBed} from '@angular/core/testing';
import type {ComponentFixture} from '@angular/core/testing';
import {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 {type SafeValue} from '@angular/platform-browser';
import type {SafeValue} from '@angular/platform-browser';
import {tuiPure} from '@taiga-ui/cdk';
import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core';
import type {TuiSizeL, 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,6 @@
import {Component, ViewChild} from '@angular/core';
import {type ComponentFixture, TestBed} from '@angular/core/testing';
import type {ComponentFixture} from '@angular/core/testing';
import {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 {type SafeValue} from '@angular/platform-browser';
import type {SafeValue} from '@angular/platform-browser';
import {tuiPure, tuiSum} from '@taiga-ui/cdk';
import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core';
import type {TuiSizeL, 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 {type 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,31 @@
import type {AfterViewInit, QueryList} from '@angular/core';
import {
type AfterViewInit,
ContentChildren,
Directive,
ElementRef,
forwardRef,
inject,
Input,
NgZone,
type QueryList,
Renderer2,
} from '@angular/core';
import type {TuiContext} from '@taiga-ui/cdk';
import {
EMPTY_QUERY,
type TuiContext,
TuiDestroyService,
TuiHoveredService,
tuiPure,
tuiQueryListChanges,
tuiZonefree,
} from '@taiga-ui/cdk';
import {type TuiPoint} from '@taiga-ui/core';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import type {TuiPoint} from '@taiga-ui/core';
import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import type {Observable} from 'rxjs';
import {
combineLatest,
distinctUntilChanged,
filter,
map,
type Observable,
startWith,
switchMap,
takeUntil,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
import type {QueryList} from '@angular/core';
import {
ChangeDetectionStrategy,
Component,
HostListener,
inject,
Input,
NgZone,
type QueryList,
ViewChildren,
} from '@angular/core';
import {type 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 type {TuiStringHandler} from '@taiga-ui/cdk';
import {
EMPTY_QUERY,
TuiIdService,
tuiIsPresent,
tuiPure,
type TuiStringHandler,
tuiZoneOptimized,
} from '@taiga-ui/cdk';
import type {TuiPoint} from '@taiga-ui/core';
import {
TuiHintHoverDirective,
TuiHintOptionsDirective,
tuiHintOptionsProvider,
type TuiPoint,
} from '@taiga-ui/core';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {distinctUntilChanged, type Observable, Subject} from 'rxjs';
import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import type {Observable} from 'rxjs';
import {distinctUntilChanged, 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 {type 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,23 @@
import type {AfterContentInit, QueryList} from '@angular/core';
import {
type AfterContentInit,
ContentChildren,
Directive,
forwardRef,
inject,
Input,
NgZone,
type QueryList,
} from '@angular/core';
import {tuiLineChartDrivers} from '@taiga-ui/addon-charts/components/line-chart';
import type {TuiContext, TuiDay} from '@taiga-ui/cdk';
import {
EMPTY_QUERY,
type TuiContext,
type TuiDay,
TuiDestroyService,
TuiHoveredService,
tuiPure,
tuiZonefree,
} from '@taiga-ui/cdk';
import {type TuiPoint} from '@taiga-ui/core';
import {type 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,11 @@
import type {AfterViewInit, QueryList} from '@angular/core';
import {
type AfterViewInit,
ChangeDetectionStrategy,
Component,
HostBinding,
inject,
Input,
NgZone,
type QueryList,
ViewChildren,
} from '@angular/core';
import {
Expand All @@ -15,22 +14,21 @@ import {
tuiLineChartDrivers,
TuiLineChartHintDirective,
} from '@taiga-ui/addon-charts/components/line-chart';
import type {TuiContext, TuiStringHandler} from '@taiga-ui/cdk';
import {
EMPTY_ARRAY,
EMPTY_QUERY,
type TuiContext,
TuiDay,
TuiDestroyService,
TuiHoveredService,
tuiIsNumber,
tuiIsPresent,
TuiMonth,
tuiPure,
type TuiStringHandler,
tuiZonefree,
} from '@taiga-ui/cdk';
import {type TuiPoint} from '@taiga-ui/core';
import {type 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,12 @@ import {
Input,
Output,
} from '@angular/core';
import {type SafeValue} from '@angular/platform-browser';
import {type TuiContext, TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk';
import {
TuiHintOptionsDirective,
tuiHintOptionsProvider,
type TuiSizeXL,
type TuiSizeXS,
} from '@taiga-ui/core';
import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import type {SafeValue} from '@angular/platform-browser';
import type {TuiContext} from '@taiga-ui/cdk';
import {TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk';
import type {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core';
import {TuiHintOptionsDirective, tuiHintOptionsProvider} from '@taiga-ui/core';
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,7 @@
import {Location} from '@angular/common';
import {Component} from '@angular/core';
import {type ComponentFixture, TestBed} from '@angular/core/testing';
import type {ComponentFixture} from '@angular/core/testing';
import {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 {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core';
import type {TuiSizeS, 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 {type 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 {type 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 {type 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 {type 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 {type 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 {type TuiPoint} from '@taiga-ui/core';
import type {TuiPoint} from '@taiga-ui/core';

import {tuiDrawCurve} from './draw-curve';
import {tuiDrawLine} from './draw-line';
Expand Down
Loading

0 comments on commit c1003b0

Please sign in to comment.