chore(lint): resolve new lint errors

This commit is contained in:
Liam DeBeasi
2022-09-19 15:08:28 +00:00
parent 39ba309036
commit 73a742bf5b
3 changed files with 4 additions and 2 deletions

View File

@@ -596,7 +596,7 @@ export class Alert implements ComponentInterface, OverlayInterface {
role={role}
aria-modal="true"
aria-labelledby={ariaLabelledBy}
aria-describedby={message ? msgId : null}
aria-describedby={message !== undefined ? msgId : null}
tabindex="-1"
{...(htmlAttributes as any)}
style={{

View File

@@ -145,7 +145,8 @@ export const getYear = (locale: string, refParts: DatetimeParts) => {
};
const getNormalizedDate = (refParts: DatetimeParts) => {
const timeString = !!refParts.hour && !!refParts.minute ? ` ${refParts.hour}:${refParts.minute}` : '';
const timeString =
refParts.hour !== undefined && refParts.minute !== undefined ? ` ${refParts.hour}:${refParts.minute}` : '';
return new Date(`${refParts.month}/${refParts.day}/${refParts.year}${timeString} GMT+0000`);
};

View File

@@ -1,6 +1,7 @@
import type { EventSpy } from '../page/event-spy';
export function toHaveReceivedEventTimes(eventSpy: EventSpy, count: number) {
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
if (!eventSpy) {
return {
message: () => `toHaveReceivedEventTimes event spy is null`,