Skip to content

Commit

Permalink
fix(core) Fix master linter (SAP#2936)
Browse files Browse the repository at this point in the history
  • Loading branch information
salarenko authored Jul 30, 2020
1 parent 696a44b commit a9dbc2d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions libs/core/src/lib/avatar/avatar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ANY_LANGUAGE_LETTERS_REGEX } from '../utils/consts';

export type AvatarSize = 'xs' | 's' | 'm' | 'l' | 'xl';
export type ColorAccent = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
let avatarUniqueId: number = 0;
let avatarUniqueId = 0;

@Component({
// TODO to be discussed
Expand All @@ -32,7 +32,7 @@ export class AvatarComponent implements OnChanges, OnInit, CssClassBuilder {
/** Id of the Avatar. */
@Input()
@HostBinding('attr.id')
id: string = `fd-avatar-${avatarUniqueId++}`;
id = `fd-avatar-${avatarUniqueId++}`;

/** Aria-label for Avatar. */
@Input()
Expand Down Expand Up @@ -61,19 +61,19 @@ export class AvatarComponent implements OnChanges, OnInit, CssClassBuilder {
@Input() zoomGlyph: string = null;

/** Whether or not to apply a circle style to the Avatar. */
@Input() circle: boolean = false;
@Input() circle = false;

/** Whether or not to apply a transparent style to the Avatar. */
@Input() transparent: boolean = false;
@Input() transparent = false;

/** Whether or not to apply a placeholder background style to the Avatar. */
@Input() placeholder: boolean = false;
@Input() placeholder = false;

/** Whether or not to apply a tile background style to the Avatar. */
@Input() tile: boolean = false;
@Input() tile = false;

/** Whether or not to apply a border to the Avatar. */
@Input() border: boolean = false;
@Input() border = false;

/** A number from 1 to 10 representing the background color of the Avatar. */
@Input() colorAccent: ColorAccent = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class CheckboxGroupComponent extends CollectionBaseInput {
* To Dispaly multiple checkboxes in a line
*/
@Input()
isInline: boolean = false;
isInline = false;

/** Children checkboxes passed as content */
@ContentChildren(CheckboxComponent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class PlatformCheckboxChange {
* https://github.com/SAP/fundamental-ngx/wiki/Platform:-Checkbox-Component-Technical-Design
* documents.
*/
let nextUniqueId: number = 0;
let nextUniqueId = 0;

@Component({
selector: 'fdp-checkbox',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class FormFieldComponent
* marks field as disabled. used in reactive form approach.
*/
@Input()
disabled: boolean = false;
disabled = false;

@Output()
onChange: EventEmitter<string> = new EventEmitter<string>();
Expand Down

0 comments on commit a9dbc2d

Please sign in to comment.