From afdaac28ae7904043ab61eaf765e2fa1b1573769 Mon Sep 17 00:00:00 2001 From: Ryan Barnett Date: Thu, 21 Mar 2024 13:15:07 -0400 Subject: [PATCH] style: lint fixes --- .../sources/single-content.js | 3 ++- blocks/rss-feature-block/features/rss/xml.js | 3 ++- utils/promo-items/src/promoItems.js | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/blocks/feeds-source-single-content-block/sources/single-content.js b/blocks/feeds-source-single-content-block/sources/single-content.js index 302b83b7..10491dd4 100644 --- a/blocks/feeds-source-single-content-block/sources/single-content.js +++ b/blocks/feeds-source-single-content-block/sources/single-content.js @@ -14,12 +14,13 @@ const params = { website_url: 'text', } +/* eslint-disable dot-notation */ const fetch = (key, { cachedCall }) => { const urlSearch = new URLSearchParams({ ...(key['_id'] ? { _id: key['_id'] } : { website_url: key['website_url'] }), ...(key['arc-site'] ? { website: key['arc-site'] } : {}), }) - +/* eslint-enable dot-notation */ const ret = axios({ url: `${CONTENT_BASE}/content/v4/?${urlSearch.toString()}`, headers: { diff --git a/blocks/rss-feature-block/features/rss/xml.js b/blocks/rss-feature-block/features/rss/xml.js index 9cdccef3..c4706fbf 100644 --- a/blocks/rss-feature-block/features/rss/xml.js +++ b/blocks/rss-feature-block/features/rss/xml.js @@ -1,4 +1,3 @@ -const jmespath = require('jmespath') import moment from 'moment' import URL from 'url' @@ -11,6 +10,8 @@ import { resizerKey } from 'fusion:environment' import Consumer from 'fusion:consumer' import PropTypes from 'fusion:prop-types' import getProperties from 'fusion:properties' +const jmespath = require('jmespath') + const rssTemplate = ( elements, diff --git a/utils/promo-items/src/promoItems.js b/utils/promo-items/src/promoItems.js index 6e821a7a..b94d16cf 100644 --- a/utils/promo-items/src/promoItems.js +++ b/utils/promo-items/src/promoItems.js @@ -1,7 +1,7 @@ -const jmespath = require('jmespath') - import { buildResizerURL } from '@wpmedia/feeds-resizer' import { findVideo } from '@wpmedia/feeds-find-video-stream' +const jmespath = require('jmespath') + export function BuildPromoItems() { // A constructor to allow prototypal inheritance to override the behavior of member functions