Skip to content

Commit 111dd59

Browse files
committed
style: lint
1 parent ce813fb commit 111dd59

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

core/src/components/datetime/utils/parse.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ export function parseDate(val: string | string[] | undefined | null): DatetimePa
105105

106106
if (parse === null) {
107107
// wasn't able to parse the ISO datetime
108-
printIonWarning(`[ion-datetime] - Unable to parse date string: ${val}. Please provide a valid ISO 8601 datetime string.`);
108+
printIonWarning(
109+
`[ion-datetime] - Unable to parse date string: ${val}. Please provide a valid ISO 8601 datetime string.`
110+
);
109111
return undefined;
110112
}
111113

core/src/components/datetime/utils/validate.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ export const checkForPresentationFormatMismatch = (
3333
case 'month':
3434
case 'year':
3535
if (formatOptions.date === undefined) {
36-
printIonWarning(`[ion-datetime] - The '${presentation}' presentation requires a date object in formatOptions.`, el);
36+
printIonWarning(
37+
`[ion-datetime] - The '${presentation}' presentation requires a date object in formatOptions.`,
38+
el
39+
);
3740
}
3841
break;
3942
case 'time':

core/src/components/segment-button/segment-button.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ export class SegmentButton implements ComponentInterface, ButtonInterface {
111111

112112
// Ensure the found element is a valid ION-SEGMENT-CONTENT
113113
if (segmentContent.tagName !== 'ION-SEGMENT-CONTENT') {
114-
printIonError(`[ion-segment-button] - Element with id="${this.contentId}" is not an <ion-segment-content> element.`);
114+
printIonError(
115+
`[ion-segment-button] - Element with id="${this.contentId}" is not an <ion-segment-content> element.`
116+
);
115117
return;
116118
}
117119
}

core/src/components/toast/toast.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,10 @@ export class Toast implements ComponentInterface, OverlayInterface {
511511
*/
512512
const foundEl = document.getElementById(positionAnchor);
513513
if (foundEl === null) {
514-
printIonWarning(`[ion-toast] - An anchor element with an ID of "${positionAnchor}" was not found in the DOM.`, el);
514+
printIonWarning(
515+
`[ion-toast] - An anchor element with an ID of "${positionAnchor}" was not found in the DOM.`,
516+
el
517+
);
515518
return undefined;
516519
}
517520

0 commit comments

Comments
 (0)