Skip to content

Commit

Permalink
MWPW-141918 fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vhargrave committed Aug 5, 2024
1 parent 640b2cd commit d1279bc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 1 addition & 3 deletions express/blocks/blog-posts/blog-posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ async function getReadMoreString() {
// Given a post, get all the required parameters from it to construct a card or hero card
function getCardParameters(post, dateFormatter) {
const path = post.path.split('.')[0];
const {
title, teaser, image,
} = post;
const { title, teaser, image } = post;
const publicationDate = new Date(post.date * 1000);
const dateString = dateFormatter.format(publicationDate);
const filteredTitle = title.replace(/(\s?)(||\|)(\s?Adobe\sExpress\s?)$/g, '');
Expand Down
9 changes: 8 additions & 1 deletion express/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,14 @@ function decorateHeroLCP(loadStyle, config, createTag, getMetadata) {
}

(async function loadPage() {
const { loadArea, setConfig, getMetadata, loadLana, createTag, loadStyle } = await import(`${miloLibs}/utils/utils.js`);
const {
loadArea,
setConfig,
getMetadata,
loadLana,
createTag,
loadStyle,
} = await import(`${miloLibs}/utils/utils.js`);

const jarvisVisibleMeta = getMetadata('jarvis-immediately-visible')?.toLowerCase();
const desktopViewport = window.matchMedia('(min-width: 900px)').matches;
Expand Down
2 changes: 1 addition & 1 deletion express/templates/blog/blog.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable import/named, import/extensions */
import { getLibs, toClassName } from '../../scripts/utils.js';
import { createOptimizedPicture } from '../../scripts/utils/media.js';
import {decorateButtonsDeprecated} from "../../scripts/utils/decorate.js";
import { decorateButtonsDeprecated } from '../../scripts/utils/decorate.js';

const { createTag, getConfig, getMetadata } = await import(`${getLibs()}/utils/utils.js`);

Expand Down

0 comments on commit d1279bc

Please sign in to comment.