Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 4, 2024
1 parent 3a66401 commit 1095bd5
Show file tree
Hide file tree
Showing 679 changed files with 1,390 additions and 1,392 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@
"sonarjs/single-character-alternation": "off",
"sonarjs/sonar-max-params": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/no-typeof-undefined": "off",
"@taiga-ui/experience/standalone-imports-sort": "off"
"unicorn/no-typeof-undefined": "off"
},
"root": true
},
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 @@ -12,7 +12,7 @@ export const TUI_ALWAYS_NONE: TuiLineHandler = () => 'none';
@Component({
standalone: true,
selector: 'tui-axes',
imports: [NgIf, NgForOf, TuiRepeatTimes],
imports: [NgForOf, NgIf, TuiRepeatTimes],
templateUrl: './axes.template.html',
styleUrls: ['./axes.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import type {Observable} from 'rxjs';
@Component({
standalone: true,
selector: 'tui-bar-chart',
imports: [NgForOf, TuiHint, TuiMapperPipe, AsyncPipe, TuiBarSet],
imports: [AsyncPipe, NgForOf, TuiBarSet, TuiHint, TuiMapperPipe],
templateUrl: './bar-chart.template.html',
styleUrls: ['./bar-chart.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const FILLER_ARRAY: readonly number[] = [1];
@Component({
standalone: true,
selector: 'tui-bar-set',
imports: [NgIf, NgForOf, NgTemplateOutlet, TuiBar],
imports: [NgForOf, NgIf, NgTemplateOutlet, TuiBar],
templateUrl: './bar-set.template.html',
styleUrls: ['./bar-set.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {TuiLineChartHint} from './line-chart-hint.directive';
@Component({
standalone: true,
selector: 'tui-line-chart',
imports: [TuiLet, AsyncPipe, NgIf, TuiHint, NgForOf],
imports: [AsyncPipe, NgForOf, NgIf, TuiHint, TuiLet],
templateUrl: './line-chart.template.html',
styleUrls: ['./line-chart.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const DUMMY: TuiPoint = [NaN, NaN];
@Component({
standalone: true,
selector: 'tui-line-days-chart',
imports: [TuiLineChart, NgForOf, TuiHint, PolymorpheusOutlet, PolymorpheusTemplate],
imports: [NgForOf, PolymorpheusOutlet, PolymorpheusTemplate, TuiHint, TuiLineChart],
templateUrl: './line-days-chart.template.html',
styleUrls: ['./line-days-chart.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const TRANSFORM = {
@Component({
standalone: true,
selector: 'tui-pie-chart',
imports: [TuiHint, TuiRepeatTimes, TuiHovered, TuiPieChartDirective],
imports: [TuiHint, TuiHovered, TuiPieChartDirective, TuiRepeatTimes],
templateUrl: './pie-chart.template.html',
styleUrls: ['./pie-chart.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,20 @@ export interface TuiCard {
standalone: true,
selector: 'tui-input-card-group',
imports: [
NgIf,
FormsModule,
MaskitoDirective,
WaResizeObserver,
NgIf,
PolymorpheusOutlet,
PolymorpheusTemplate,
TuiActiveZone,
TuiAppearance,
TuiChevron,
TuiFormatCardPipe,
TuiMapperPipe,
TuiLet,
TuiIcon,
TuiChevron,
TuiAppearance,
TuiIconPipe,
TuiLet,
TuiMapperPipe,
WaResizeObserver,
],
templateUrl: './input-card-group.template.html',
styleUrls: ['./input-card-group.style.less'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {firstValueFrom, timer} from 'rxjs';
describe('InputCardGroup', () => {
@Component({
standalone: true,
imports: [TuiInputCardGroup, ReactiveFormsModule, TuiIcon],
imports: [ReactiveFormsModule, TuiIcon, TuiInputCardGroup],
template: `
<tui-input-card-group
[formControl]="control"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {TUI_THUMBNAIL_CARD_OPTIONS} from './thumbnail-card.options';
@Component({
standalone: true,
selector: 'tui-thumbnail-card',
imports: [TuiIcon, NgIf, TuiIconPipe],
imports: [NgIf, TuiIcon, TuiIconPipe],
templateUrl: './thumbnail-card.template.html',
styleUrls: ['./thumbnail-card.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/components/code/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {BehaviorSubject, map, startWith, Subject, switchMap, timer} from 'rxjs';
@Component({
standalone: true,
selector: 'tui-doc-code',
imports: [NgIf, AsyncPipe, NgForOf, Highlight, TuiButton, ClipboardModule],
imports: [AsyncPipe, ClipboardModule, Highlight, NgForOf, NgIf, TuiButton],
templateUrl: './index.html',
styleUrls: ['./index.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/components/copy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const COPIED_TIMEOUT = 1500;
@Component({
standalone: true,
selector: 'tui-doc-copy',
imports: [NgIf, AsyncPipe, TuiButton, TuiLet],
imports: [AsyncPipe, NgIf, TuiButton, TuiLet],
templateUrl: './index.html',
styleUrls: ['./index.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
14 changes: 7 additions & 7 deletions projects/addon-doc/components/demo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ const MIN_WIDTH = 160;
standalone: true,
selector: 'tui-doc-demo',
imports: [
TuiResizer,
FormsModule,
TuiSwitch,
TuiResizable,
JsonPipe,
NgIf,
ReactiveFormsModule,
NgTemplateOutlet,
ReactiveFormsModule,
TuiButton,
TuiChevron,
TuiDataListWrapper,
TuiExpand,
JsonPipe,
TuiSelectModule,
TuiGroup,
TuiResizable,
TuiResizer,
TuiSelectModule,
TuiSwitch,
TuiTextfieldControllerModule,
TuiDataListWrapper,
],
templateUrl: './index.html',
styleUrls: ['./index.less'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,33 @@ import {TuiDocTypeReferencePipe} from './pipes/type-reference.pipe';
standalone: true,
selector: 'tui-doc-documentation',
imports: [
NgIf,
TuiFilterPipe,
AsyncPipe,
FormsModule,
NgForOf,
TuiStripOptionalPipe,
TuiIsOptionalPipe,
TuiBadge,
NgIf,
NgSwitch,
NgSwitchCase,
NgTemplateOutlet,
TuiBadge,
TuiDataListWrapper,
TuiDocTypeReferencePipe,
TuiSelectModule,
FormsModule,
TuiDropdown,
TuiShowCleanerPipe,
TuiDataListWrapper,
TuiInspectPipe,
NgSwitch,
NgSwitchCase,
TuiSwitch,
TuiTextfield,
TuiGroup,
TuiGetOpacityPipe,
TuiFilterPipe,
TuiGetColorPipe,
TuiGetOpacityPipe,
TuiGroup,
TuiInputNumberModule,
TuiInspectPipe,
TuiIsOptionalPipe,
TuiIsPrimitivePolymorpheusContentPipe,
TuiNotification,
AsyncPipe,
TuiToArrayPipe,
TuiSelectModule,
TuiShowCleanerPipe,
TuiStripOptionalPipe,
TuiSwitch,
TuiTextfield,
TuiTextfieldControllerModule,
TuiToArrayPipe,
],
templateUrl: './documentation.template.html',
styleUrls: ['./documentation.style.less'],
Expand Down
16 changes: 8 additions & 8 deletions projects/addon-doc/components/example/example.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ import {TuiDocExampleGetTabsPipe} from './example-get-tabs.pipe';
standalone: true,
selector: 'tui-doc-example',
imports: [
AsyncPipe,
NgForOf,
NgIf,
NgTemplateOutlet,
PolymorpheusOutlet,
PolymorpheusTemplate,
TuiButton,
RouterLink,
AsyncPipe,
RouterLinkActive,
TuiButton,
TuiDocCode,
TuiDocExampleGetTabsPipe,
TuiTabs,
NgForOf,
TuiLink,
TuiLoader,
TuiMapperPipe,
NgTemplateOutlet,
TuiDocCode,
TuiLink,
RouterLinkActive,
TuiTabs,
],
templateUrl: './example.template.html',
styleUrls: ['./example.style.less'],
Expand Down
6 changes: 3 additions & 3 deletions projects/addon-doc/components/internal/header/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import {TuiDocNavigation} from '../../navigation/navigation.component';
standalone: true,
selector: 'header[tuiDocHeader]',
imports: [
TuiButton,
TuiActiveZone,
TuiSidebar,
AsyncPipe,
PolymorpheusOutlet,
PolymorpheusTemplate,
TuiActiveZone,
TuiButton,
TuiDocNavigation,
TuiSidebar,
],
templateUrl: './index.html',
styleUrls: ['./index.less'],
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/components/internal/see-also/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {TuiLink} from '@taiga-ui/core/components/link';
@Component({
standalone: true,
selector: 'tui-doc-see-also',
imports: [TuiLink, NgForOf, RouterLink, NgIf],
imports: [NgForOf, NgIf, RouterLink, TuiLink],
templateUrl: './index.html',
styleUrls: ['./index.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
4 changes: 2 additions & 2 deletions projects/addon-doc/components/language-switcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import {TuiSelectModule} from '@taiga-ui/legacy/components/select';
standalone: true,
selector: 'tui-doc-language-switcher',
imports: [
ReactiveFormsModule,
TuiDataList,
NgForOf,
ReactiveFormsModule,
TitleCasePipe,
TuiDataList,
TuiFlagPipe,
TuiSelectModule,
],
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/components/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {TuiDocNavigation} from '../navigation/navigation.component';
@Component({
standalone: true,
selector: 'tui-doc-main',
imports: [TuiRoot, RouterOutlet, TuiButton, TuiDocHeader, TuiDocNavigation],
imports: [RouterOutlet, TuiButton, TuiDocHeader, TuiDocNavigation, TuiRoot],
templateUrl: './main.template.html',
styleUrls: ['./main.style.less'],
encapsulation: ViewEncapsulation.None,
Expand Down
20 changes: 10 additions & 10 deletions projects/addon-doc/components/navigation/navigation.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,25 @@ import {TuiDocScrollIntoViewLink} from './scroll-into-view.directive';
standalone: true,
selector: 'tui-doc-navigation',
imports: [
TuiInputModule,
TuiTextfield,
ReactiveFormsModule,
TuiAutoFocus,
TuiDataList,
AsyncPipe,
NgForOf,
NgIf,
TuiIcon,
NgTemplateOutlet,
PolymorpheusOutlet,
PolymorpheusTemplate,
ReactiveFormsModule,
RouterLink,
TuiScrollbar,
RouterLinkActive,
TuiAccordion,
NgTemplateOutlet,
TuiLink,
TuiAutoFocus,
TuiDataList,
TuiDocScrollIntoViewLink,
RouterLinkActive,
TuiExpand,
TuiIcon,
TuiInputModule,
TuiLink,
TuiScrollbar,
TuiTextfield,
TuiTextfieldControllerModule,
],
templateUrl: './navigation.template.html',
Expand Down
16 changes: 8 additions & 8 deletions projects/addon-doc/components/page/page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ import {TuiDocPageTabConnector} from './page-tab.directive';
standalone: true,
selector: 'tui-doc-page',
imports: [
TuiChip,
NgIf,
TuiAutoColorPipe,
TuiTabs,
NgForOf,
TuiItem,
NgIf,
NgTemplateOutlet,
RouterLink,
RouterLinkActive,
TuiReplacePipe,
TuiDocSourceCode,
TuiAutoColorPipe,
TuiChip,
TuiDocSeeAlso,
NgTemplateOutlet,
TuiDocSourceCode,
TuiItem,
TuiReplacePipe,
TuiTabs,
],
templateUrl: './page.template.html',
styleUrls: ['./page.style.less'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function tuiDocThemeProvider(): FactoryProvider {
@Component({
standalone: true,
selector: 'tui-doc-theme-switcher',
imports: [NgForOf, FormsModule, TuiDataList, TuiSelectModule],
imports: [FormsModule, NgForOf, TuiDataList, TuiSelectModule],
templateUrl: './theme-switcher.template.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {TuiCalendarSheetPipe} from '@taiga-ui/core/pipes/calendar-sheet';
@Component({
standalone: true,
selector: 'tui-mobile-calendar-sheet',
imports: [TuiLet, TuiCalendarSheetPipe, TuiRepeatTimes, TuiRipple, NgIf],
imports: [NgIf, TuiCalendarSheetPipe, TuiLet, TuiRepeatTimes, TuiRipple],
templateUrl: './mobile-calendar-sheet.template.html',
styleUrls: ['./mobile-calendar-sheet.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,20 @@ import {
standalone: true,
selector: 'tui-mobile-calendar',
imports: [
TuiButton,
AsyncPipe,
TuiRipple,
TuiLink,
TuiTouchable,
CdkFixedSizeVirtualScroll,
CdkVirtualScrollViewport,
CdkVirtualForOf,
TuiOrderWeekDaysPipe,
TuiMobileCalendarSheet,
TuiMonthPipe,
CdkVirtualScrollViewport,
NgForOf,
NgIf,
TuiButton,
TuiLink,
TuiMapperPipe,
TuiMobileCalendarSheet,
TuiMonthPipe,
TuiOrderWeekDaysPipe,
TuiRipple,
TuiTouchable,
],
templateUrl: './mobile-calendar.template.html',
styleUrls: ['./mobile-calendar.style.less'],
Expand Down
Loading

0 comments on commit 1095bd5

Please sign in to comment.