Skip to content

Commit

Permalink
feat(core): prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiia_glushkova committed Dec 17, 2024
1 parent a4dba4d commit bb4b649
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion core/src/components/cat-avatar/cat-avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import loadImg from '../../utils/load-img';
tag: 'cat-avatar',
styleUrl: 'cat-avatar.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatAvatar {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-button/cat-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { findClosest } from '../../utils/find-closest';
tag: 'cat-button',
styleUrl: 'cat-button.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatButton {
Expand Down
4 changes: 2 additions & 2 deletions core/src/components/cat-checkbox/cat-checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let nextUniqueId = 0;
tag: 'cat-checkbox',
styleUrls: ['cat-checkbox.scss'],
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatCheckbox {
Expand Down Expand Up @@ -248,6 +248,6 @@ export class CatCheckbox {
}

private updateResolved() {
this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false);
this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false;
}
}
4 changes: 2 additions & 2 deletions core/src/components/cat-date-inline/cat-date-inline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let nextUniqueId = 0;
tag: 'cat-date-inline',
styleUrl: 'cat-date-inline.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatDateInline {
Expand Down Expand Up @@ -453,7 +453,7 @@ export class CatDateInline {
} else if (isSameMonth(this.viewDate, now) && (!minDate || minDate <= now)) {
return isSameMonth(this.viewDate, date) && isSameDay(now, date);
}
const minDay = isSameMonth(date, minDate) ? (minDate?.getDate() ?? 1) : 1;
const minDay = isSameMonth(date, minDate) ? minDate?.getDate() ?? 1 : 1;
return isSameMonth(this.viewDate, date) && date.getDate() === minDay;
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-date/cat-date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { catI18nRegistry as i18n } from '../cat-i18n/cat-i18n-registry';
tag: 'cat-date',
styleUrl: 'cat-date.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatDate {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-dropdown/cat-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class CatDropdown {
const elem = elems.shift();
trigger = elem?.hasAttribute('data-trigger')
? (elem as HTMLElement)
: (elem?.querySelector('[data-trigger]') ?? undefined);
: elem?.querySelector('[data-trigger]') ?? undefined;
}
if (!trigger) {
trigger = firstTabbable(this.triggerSlot);
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-input/cat-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let nextUniqueId = 0;
tag: 'cat-input',
styleUrl: 'cat-input.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatInput {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-pagination/cat-pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { catI18nRegistry as i18n } from '../cat-i18n/cat-i18n-registry';
tag: 'cat-pagination',
styleUrl: 'cat-pagination.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatPagination {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-radio/cat-radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let nextUniqueId = 0;
tag: 'cat-radio',
styleUrl: 'cat-radio.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatRadio {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-select/cat-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ let nextTagUniqueId = 0;
tag: 'cat-select',
styleUrl: 'cat-select.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatSelect {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-tabs/cat-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, St
tag: 'cat-tabs',
styleUrl: 'cat-tabs.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatTabs {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-tag/cat-tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let nextUniqueId = 0;
tag: 'cat-tag',
styleUrl: 'cat-tag.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatTag {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-textarea/cat-textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let nextUniqueId = 0;
tag: 'cat-textarea',
styleUrl: 'cat-textarea.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatTextarea {
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-time/cat-time.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { clampTime, isAfter, isBefore } from './cat-time-math';
tag: 'cat-time',
styleUrl: 'cat-time.scss',
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatTime {
Expand Down
4 changes: 2 additions & 2 deletions core/src/components/cat-toggle/cat-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let nextUniqueId = 0;
tag: 'cat-toggle',
styleUrls: ['cat-toggle.scss'],
shadow: {
delegatesFocus: true,
delegatesFocus: true
}
})
export class CatToggle {
Expand Down Expand Up @@ -218,6 +218,6 @@ export class CatToggle {
}

private updateResolved() {
this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false);
this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false;
}
}

0 comments on commit bb4b649

Please sign in to comment.