Skip to content

Commit

Permalink
chore: Fix prettier issues
Browse files Browse the repository at this point in the history
- add missing comma to all files where 'standalone: false' was added
  • Loading branch information
pawelfras committed Dec 17, 2024
1 parent e3e935d commit 4048f17
Show file tree
Hide file tree
Showing 893 changed files with 4,042 additions and 4,030 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
} from './asm-bind-cart-dialog.component';

@Pipe({
name: 'cxTranslate',
standalone: false
name: 'cxTranslate',
standalone: false,
})
class MockTranslatePipe implements PipeTransform {
transform(): any {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export enum BIND_CART_DIALOG_ACTION {
}

@Component({
selector: 'cx-asm-bind-cart-dialog',
templateUrl: './asm-bind-cart-dialog.component.html',
standalone: false
selector: 'cx-asm-bind-cart-dialog',
templateUrl: './asm-bind-cart-dialog.component.html',
standalone: false,
})
export class AsmBindCartDialogComponent {
BIND_CART_ACTION = BIND_CART_DIALOG_ACTION;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ import { AsmBindCartComponent } from './asm-bind-cart.component';
import createSpy = jasmine.createSpy;

@Component({
selector: 'cx-icon',
template: '',
standalone: false
selector: 'cx-icon',
template: '',
standalone: false,
})
class MockCxIconComponent {
@Input() type: ICON_TYPE;
Expand Down Expand Up @@ -85,8 +85,8 @@ class MockActiveCartService implements Partial<ActiveCartFacade> {
}

@Pipe({
name: 'cxTranslate',
standalone: false
name: 'cxTranslate',
standalone: false,
})
class MockTranslatePipe implements PipeTransform {
transform(): any {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ import { SAVE_CART_DIALOG_ACTION } from '../asm-save-cart-dialog/asm-save-cart-d
import { AsmComponentService } from '../services/asm-component.service';

@Component({
selector: 'cx-asm-bind-cart',
templateUrl: './asm-bind-cart.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
selector: 'cx-asm-bind-cart',
templateUrl: './asm-bind-cart.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false,
})
export class AsmBindCartComponent implements OnInit, OnDestroy {
activeCartValidator: ValidatorFn = (control) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ const duplicatedUidErrorResponse: HttpErrorModel = {
};

@Component({
selector: 'cx-icon',
template: '',
standalone: false
selector: 'cx-icon',
template: '',
standalone: false,
})
class MockCxIconComponent {
@Input() type: ICON_TYPE;
Expand All @@ -99,8 +99,8 @@ class MockAsmCreateCustomerFacade implements Partial<AsmCreateCustomerFacade> {
}

@Directive({
selector: '[cxFocus]',
standalone: false
selector: '[cxFocus]',
standalone: false,
})
export class MockKeyboadFocusDirective {
@Input('cxFocus') config: FocusConfig = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import { first } from 'rxjs/operators';
import { CreatedCustomer } from './asm-create-customer-form.model';

@Component({
selector: 'cx-asm-create-customer-form',
templateUrl: './asm-create-customer-form.component.html',
standalone: false
selector: 'cx-asm-create-customer-form',
templateUrl: './asm-create-customer-form.component.html',
standalone: false,
})
export class AsmCreateCustomerFormComponent {
createdCustomer: CreatedCustomer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class MockAuthService implements Partial<AuthService> {
}

@Component({
selector: 'cx-icon',
template: '',
standalone: false
selector: 'cx-icon',
template: '',
standalone: false,
})
class MockCxIconComponent {
@Input() type: ICON_TYPE;
Expand Down Expand Up @@ -102,32 +102,32 @@ class MockLaunchDialogService implements Partial<LaunchDialogService> {
}

@Component({
selector: 'cx-asm-toggle-ui',
template: '',
standalone: false
selector: 'cx-asm-toggle-ui',
template: '',
standalone: false,
})
class MockAsmToggleUiComponent {}

@Component({
selector: 'cx-asm-session-timer',
template: '',
standalone: false
selector: 'cx-asm-session-timer',
template: '',
standalone: false,
})
class MockAsmSessionTimerComponent {}

@Component({
selector: 'cx-customer-selection',
template: '',
standalone: false
selector: 'cx-customer-selection',
template: '',
standalone: false,
})
class MockCustomerSelectionComponent {
@Output()
submitEvent = new EventEmitter();
}
@Component({
selector: 'cx-csagent-login-form',
template: '',
standalone: false
selector: 'cx-csagent-login-form',
template: '',
standalone: false,
})
class MockCSAgentLoginFormComponent {
@Output()
Expand All @@ -136,9 +136,9 @@ class MockCSAgentLoginFormComponent {
csAgentTokenLoading = false;
}
@Component({
template: '',
selector: 'cx-customer-emulation',
standalone: false
template: '',
selector: 'cx-customer-emulation',
standalone: false,
})
class MockCustomerEmulationComponent {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export const CART_TYPE_KEY: CartTypeKey = {
inactive: 'asm.saveInactiveCartAlertInfo',
};
@Component({
selector: 'cx-asm-main-ui',
templateUrl: './asm-main-ui.component.html',
standalone: false
selector: 'cx-asm-main-ui',
templateUrl: './asm-main-ui.component.html',
standalone: false,
})
export class AsmMainUiComponent implements OnInit, OnDestroy {
customerSupportAgentLoggedIn$: Observable<boolean>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
import { GlobalMessageType } from '@spartacus/core';

@Pipe({
name: 'cxTranslate',
standalone: false
name: 'cxTranslate',
standalone: false,
})
class MockTranslatePipe implements PipeTransform {
transform(): any {}
Expand All @@ -46,9 +46,9 @@ class MockLaunchDialogService implements Partial<LaunchDialogService> {
}

@Component({
selector: 'cx-message',
template: '',
standalone: false
selector: 'cx-message',
template: '',
standalone: false,
})
class MockCxMessageComponent {
@Input() text: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export enum SAVE_CART_DIALOG_ACTION {
}

@Component({
selector: 'cx-asm-save-cart-dialog',
templateUrl: './asm-save-cart-dialog.component.html',
standalone: false
selector: 'cx-asm-save-cart-dialog',
templateUrl: './asm-save-cart-dialog.component.html',
standalone: false,
})
export class AsmSaveCartDialogComponent implements OnInit {
BIND_CART_ACTION = SAVE_CART_DIALOG_ACTION;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class MockRoutingService implements Partial<RoutingService> {
}

@Pipe({
name: 'formatTimer',
standalone: false
name: 'formatTimer',
standalone: false,
})
class MockFormatTimerPipe implements PipeTransform {
transform() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import { distinctUntilChanged } from 'rxjs/operators';
import { AsmComponentService } from '../services/asm-component.service';

@Component({
selector: 'cx-asm-session-timer',
templateUrl: './asm-session-timer.component.html',
standalone: false
selector: 'cx-asm-session-timer',
templateUrl: './asm-session-timer.component.html',
standalone: false,
})
export class AsmSessionTimerComponent implements OnInit, OnDestroy {
protected subscriptions = new Subscription();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
name: 'formatTimer',
standalone: false
name: 'formatTimer',
standalone: false,
})
export class FormatTimerPipe implements PipeTransform {
transform(totalSeconds: number): string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import {
} from './asm-switch-customer-dialog.component';

@Pipe({
name: 'cxTranslate',
standalone: false
name: 'cxTranslate',
standalone: false,
})
class MockTranslatePipe implements PipeTransform {
transform(): any {}
Expand All @@ -45,9 +45,9 @@ class MockAsmComponentService extends AsmComponentService {
}

@Component({
selector: 'cx-icon',
template: '',
standalone: false
selector: 'cx-icon',
template: '',
standalone: false,
})
class MockCxIconComponent {
@Input() type: ICON_TYPE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export interface SwitchCustomerData {
}

@Component({
selector: 'cx-asm-switch-customer-dialog',
templateUrl: './asm-switch-customer-dialog.component.html',
standalone: false
selector: 'cx-asm-switch-customer-dialog',
templateUrl: './asm-switch-customer-dialog.component.html',
standalone: false,
})
export class AsmSwitchCustomerDialogComponent implements OnInit {
SWITCH_CUSTOMER_DIALOG_ACTION = SWITCH_CUSTOMER_DIALOG_ACTION;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { AsmUi } from '@spartacus/asm/root';
import { Subscription } from 'rxjs';

@Component({
selector: 'cx-asm-toggle-ui',
templateUrl: './asm-toggle-ui.component.html',
standalone: false
selector: 'cx-asm-toggle-ui',
templateUrl: './asm-toggle-ui.component.html',
standalone: false,
})
export class AsmToggleUiComponent implements OnInit, OnDestroy {
protected subscription = new Subscription();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
import { useFeatureStyles } from '@spartacus/core';

@Component({
selector: 'cx-csagent-login-form',
templateUrl: './csagent-login-form.component.html',
standalone: false
selector: 'cx-csagent-login-form',
templateUrl: './csagent-login-form.component.html',
standalone: false,
})
export class CSAgentLoginFormComponent implements OnInit {
csAgentLoginForm: UntypedFormGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ describe('CustomerEmulationComponent', () => {
@Component({
selector: 'cx-asm-bind-cart',
template: '',
standalone: false
})
standalone: false,
})
class MockAsmBindCartComponent {}

const dialogClose$ = new BehaviorSubject<any>('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import { filter } from 'rxjs/operators';
import { AsmComponentService } from '../services/asm-component.service';

@Component({
selector: 'cx-customer-emulation',
templateUrl: './customer-emulation.component.html',
standalone: false
selector: 'cx-customer-emulation',
templateUrl: './customer-emulation.component.html',
standalone: false,
})
export class CustomerEmulationComponent implements OnInit, OnDestroy {
customer: User;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ class MockLaunchDialogService implements Partial<LaunchDialogService> {
}

@Component({
selector: 'cx-icon',
template: '',
standalone: false
selector: 'cx-icon',
template: '',
standalone: false,
})
class MockCxIconComponent {
@Input() type: ICON_TYPE;
Expand Down Expand Up @@ -202,8 +202,8 @@ class MockAsmCustomerListFacade implements Partial<AsmCustomerListFacade> {
}

@Directive({
selector: '[cxFocus]',
standalone: false
selector: '[cxFocus]',
standalone: false,
})
export class MockKeyboadFocusDirective {
@Input('cxFocus') config: FocusConfig = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ import { distinctUntilChanged, map, tap } from 'rxjs/operators';
import { CustomerListAction } from './customer-list.model';

@Component({
selector: 'cx-customer-list',
templateUrl: './customer-list.component.html',
standalone: false
selector: 'cx-customer-list',
templateUrl: './customer-list.component.html',
standalone: false,
})
export class CustomerListComponent implements OnInit, OnDestroy {
protected DEFAULT_PAGE_SIZE = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ import { Observable, Subscription } from 'rxjs';
import { debounceTime } from 'rxjs/operators';

@Component({
selector: 'cx-customer-selection',
templateUrl: './customer-selection.component.html',
host: {
'(document:click)': 'onDocumentClick($event)',
},
standalone: false
selector: 'cx-customer-selection',
templateUrl: './customer-selection.component.html',
host: {
'(document:click)': 'onDocumentClick($event)',
},
standalone: false,
})
export class CustomerSelectionComponent implements OnInit, OnDestroy {
customerSelectionForm: UntypedFormGroup;
Expand Down
Loading

0 comments on commit 4048f17

Please sign in to comment.