Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
bstopp committed Oct 25, 2023
1 parent bdd4966 commit 2083bf0
Show file tree
Hide file tree
Showing 23 changed files with 44 additions and 46 deletions.
2 changes: 1 addition & 1 deletion blocks/agent-search/agent-search.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getMetadata } from '../../scripts/lib-franklin.js';
import { getMetadata } from '../../scripts/aem.js';
import { getSpinner } from '../../scripts/util.js';
import {
fromParam as filterFromParam,
Expand Down
2 changes: 1 addition & 1 deletion blocks/agent-search/builders/form.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getMetadata } from '../../../scripts/lib-franklin.js';
import { getMetadata } from '../../../scripts/aem.js';
import { BREAKPOINTS } from '../../../scripts/scripts.js';

import { abortSuggestions, getSuggestions } from '../../../scripts/apis/agent/suggestion.js';
Expand Down
2 changes: 1 addition & 1 deletion blocks/agent-search/builders/sort.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchPlaceholders } from '../../../scripts/lib-franklin.js';
import { fetchPlaceholders } from '../../../scripts/aem.js';
import Sort, { sortFor } from '../../../scripts/apis/agent/sort.js';
import { PAGE_PARAM } from './pagination.js';

Expand Down
2 changes: 1 addition & 1 deletion blocks/avm-report/avm-report-delayed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchPlaceholders } from '../../scripts/lib-franklin.js';
import { fetchPlaceholders } from '../../scripts/aem.js';

async function initGooglePlacesAPI() {
const placeholders = await fetchPlaceholders();
Expand Down
2 changes: 1 addition & 1 deletion blocks/blog-listing/blog-listing.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
readBlockConfig,
} from '../../scripts/lib-franklin.js';
} from '../../scripts/aem.js';

const urlParams = new URLSearchParams(window.location.search);
export const API_HOST = urlParams.get('env') === 'stage' ? 'https://ignite-staging.bhhs.com' : 'https://www.bhhs.com';
Expand Down
2 changes: 1 addition & 1 deletion blocks/footer/footer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readBlockConfig, decorateIcons } from '../../scripts/lib-franklin.js';
import { readBlockConfig, decorateIcons } from '../../scripts/aem.js';

/**
* loads and decorates the footer
Expand Down
2 changes: 1 addition & 1 deletion blocks/header/header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BREAKPOINTS } from '../../scripts/scripts.js';
import { getMetadata, decorateIcons, decorateSections } from '../../scripts/lib-franklin.js';
import { getMetadata, decorateIcons, decorateSections } from '../../scripts/aem.js';

// media query match that indicates mobile/tablet width
const isDesktop = BREAKPOINTS.medium;
Expand Down
2 changes: 1 addition & 1 deletion blocks/hero/search/home-delayed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getMetadata } from '../../../scripts/lib-franklin.js';
import { getMetadata } from '../../../scripts/aem.js';
import { BREAKPOINTS } from '../../../scripts/scripts.js';
import {
close as closeCountrySelect,
Expand Down
2 changes: 1 addition & 1 deletion blocks/hero/search/home.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { decorateIcons } from '../../../scripts/lib-franklin.js';
import { decorateIcons } from '../../../scripts/aem.js';
import {
build as buildCountrySelect,
} from '../../shared/search-countries/search-countries.js';
Expand Down
2 changes: 1 addition & 1 deletion blocks/info-mouseover/info-mouseover.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { decorateIcons } from '../../scripts/lib-franklin.js';
import { decorateIcons } from '../../scripts/aem.js';
import { BREAKPOINTS } from '../../scripts/scripts.js';

function positionIcon(heading, icon) {
Expand Down
2 changes: 1 addition & 1 deletion blocks/juicer/juicer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readBlockConfig } from '../../scripts/lib-franklin.js';
import { readBlockConfig } from '../../scripts/aem.js';

function loadEmbeds() {
const style = document.createElement('link');
Expand Down
2 changes: 1 addition & 1 deletion blocks/liveby-demographics/liveby-demographics.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LIVEBY_API } from '../../scripts/scripts.js';
import { decorateIcons } from '../../scripts/lib-franklin.js';
import { decorateIcons } from '../../scripts/aem.js';

const dollarFormatter = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 0 });
const percFormatter = new Intl.NumberFormat('en-US', { style: 'percent' });
Expand Down
2 changes: 1 addition & 1 deletion blocks/liveby-map/liveby-map-delayed.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* global google */

import { fetchPlaceholders } from '../../scripts/lib-franklin.js';
import { fetchPlaceholders } from '../../scripts/aem.js';

function getCenter(coords) {
// Find bounding box
Expand Down
2 changes: 1 addition & 1 deletion blocks/liveby-metadata/liveby-metadata.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getMetadata } from '../../scripts/lib-franklin.js';
import { getMetadata } from '../../scripts/aem.js';

async function getCommunityId(id, ref, name) {
const resp = await fetch(`https://api.liveby.com/v1/pages?id=${id}&ref=/${ref}/communities/${name}`);
Expand Down
2 changes: 1 addition & 1 deletion blocks/liveby-schools/liveby-schools.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { decorateIcons } from '../../scripts/lib-franklin.js';
import { decorateIcons } from '../../scripts/aem.js';
import { LIVEBY_API } from '../../scripts/scripts.js';

const ES_GRADES = ['PK', 'KG', '01', '02', '03', '04', '05', '06'];
Expand Down
2 changes: 1 addition & 1 deletion blocks/property-listing/cards/cards.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { propertySearch } from '../../../scripts/apis/creg/creg.js';
import { decorateIcons } from '../../../scripts/lib-franklin.js';
import { decorateIcons } from '../../../scripts/aem.js';

function createImage(listing) {
if (listing.SmallMedia?.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion blocks/property-listing/property-listing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getMetadata, readBlockConfig } from '../../scripts/lib-franklin.js';
import { getMetadata, readBlockConfig } from '../../scripts/aem.js';
import ApplicationType from '../../scripts/apis/creg/ApplicationType.js';
import SearchType, { searchTypeFor } from '../../scripts/apis/creg/SearchType.js';
import PropertyType from '../../scripts/apis/creg/PropertyType.js';
Expand Down
2 changes: 1 addition & 1 deletion blocks/property-result-map/map-delayed.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global google */
/* eslint-disable no-param-reassign, no-shadow, prefer-rest-params */

import { fetchPlaceholders } from '../../scripts/lib-franklin.js';
import { fetchPlaceholders } from '../../scripts/aem.js';
import { removeFilterValue, searchProperty, setFilterValue } from '../property-search-bar/filter-processor.js';
import Template from './Template.js';
import SearchParameters from '../../scripts/apis/creg/SearchParameters.js';
Expand Down
2 changes: 1 addition & 1 deletion blocks/quote/quote.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readBlockConfig } from '../../scripts/lib-franklin.js';
import { readBlockConfig } from '../../scripts/aem.js';

export default async function decorate(block) {
const config = readBlockConfig(block);
Expand Down
2 changes: 1 addition & 1 deletion blocks/shared/search-countries/search-countries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
loadCSS,
} from '../../../scripts/lib-franklin.js';
} from '../../../scripts/aem.js';

const imgHTML = (country) => `<img src="/icons/flags/${country}.png" alt="${country}" class="label-image" role="presentation" aria-hidden="true" tabIndex="-1" height="25" width="25"/>${country}`;

Expand Down
44 changes: 18 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,10 @@
"sinon": "15.0.1",
"stylelint": "15.2.0",
"stylelint-config-standard": "30.0.1"
},
"overrides": {
"stylelint": {
"cosmiconfig": "8.1.3"
}
}
}
1 change: 1 addition & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ main .section.disc-list li {
padding-left: 1em;
margin-bottom: 1.5em;
}

/* End to do check */

main .section.full-width {
Expand Down

0 comments on commit 2083bf0

Please sign in to comment.