Skip to content

Commit

Permalink
Merge pull request #693 from WPMedia/fix-lint
Browse files Browse the repository at this point in the history
Fix lint
  • Loading branch information
rmbrntt authored Mar 21, 2024
2 parents 0175e25 + afdaac2 commit 28fdee1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 2 additions & 1 deletion blocks/rss-feature-block/features/rss/xml.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const jmespath = require('jmespath')
import moment from 'moment'
import URL from 'url'

Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions utils/promo-items/src/promoItems.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 28fdee1

Please sign in to comment.