Skip to content

Commit

Permalink
fix: resolve issues found by linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dyersituations committed Jul 22, 2024
1 parent 252495b commit da59885
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const metricsMiddleware = promBundle({
});

// Initialize tracing
require('./util/mockTrace');
require('./util/mockTrace.js');

// Initialize a Cache instance
const cache = initCache(config.server);
Expand Down
2 changes: 1 addition & 1 deletion server/live-loan-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { error } from './util/log.js';
import { getFromCache, setToCache } from './util/memJsUtils.js';
import drawLoanCard from './util/live-loan/live-loan-draw.js';
import fetchLoansByType from './util/live-loan/live-loan-fetch.js';
import { trace } from './util/mockTrace';
import { trace } from './util/mockTrace.js';

async function fetchRecommendedLoans(type, id, cache, flss = false) {
const loanCachedName = flss ? `recommendations-by-${type}-id-${id}-flss` : `recommendations-by-${type}-id-${id}`;
Expand Down
2 changes: 1 addition & 1 deletion server/util/fetchGraphQL.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import get from 'lodash/get.js';
import argv from './argv.js';
import selectConfig from '../../config/selectConfig.js';
import fetch from './fetch.js';
import { trace } from './mockTrace';
import { trace } from './mockTrace.js';

// Make a graphql query <request> and return the results found at <resultPath>
export default (async function fetchGraphQL(request, resultPath) {
Expand Down
2 changes: 1 addition & 1 deletion server/util/getGqlPossibleTypes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fetch from './fetch.js';
import { log } from './log.js';
import { trace } from './mockTrace';
import { trace } from './mockTrace.js';

const GQL_BUILT_IN_TYPES = [
'__Schema',
Expand Down
2 changes: 1 addition & 1 deletion server/util/getSessionCookies.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import setCookieParser from 'set-cookie-parser';
import fetch from './fetch.js';
import { wrap } from './mockTrace';
import { wrap } from './mockTrace.js';

const getCookieString = cookies => {
return Object.keys(cookies)
Expand Down
2 changes: 1 addition & 1 deletion server/util/live-loan/live-loan-draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from './canvas-utils.js';
import getLoanCallouts from '../../../src/util/loanCallouts.js';
import getLoanUse from '../../../src/util/loanUse.js';
import { trace } from '../mockTrace';
import { trace } from '../mockTrace.js';

// Polyfill Path2D for material design icon support
global.CanvasRenderingContext2D = CanvasRenderingContext2D;
Expand Down
2 changes: 1 addition & 1 deletion server/util/memJsUtils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { log } from './log.js';
import { trace } from './mockTrace';
import { trace } from './mockTrace.js';

export const getFromCache = (key, cache) => {
return trace('getFromCache', { resource: key }, () => {
Expand Down
2 changes: 1 addition & 1 deletion server/util/vueSsrCache.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { log } from './log.js';
import { trace } from './mockTrace';
import { trace } from './mockTrace.js';

export default (function wrapper(cache) {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Lend/LoanChannelCategoryControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ import KvClassicLoanCardContainer from '#src/components/LoanCards/KvClassicLoanC
import EmptyState from '#src/components/LoanFinding/EmptyState';
import experimentAssignmentQuery from '#src/graphql/query/experimentAssignment.graphql';
import { trackExperimentVersion } from '#src/util/experiment/experimentUtils';
import tuneUrl from '#src/assets/images/tune.svg?url';
import addToBasketExpMixin from '#src/plugins/add-to-basket-exp-mixin';
import tuneUrl from '#src/assets/images/tune.svg?url';
const defaultLoansPerPage = 12;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Lend/LoanSearchPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ import basketCountQuery from '#src/graphql/query/basketCount.graphql';
import addToBasketExpMixin from '#src/plugins/add-to-basket-exp-mixin';
import KvPageContainer from '@kiva/kv-components/vue/KvPageContainer';
import KvMaterialIcon from '@kiva/kv-components/vue/KvMaterialIcon';
import { setChallengeCookieData } from '../../util/teamChallengeUtils';
import KvCartModal from '@kiva/kv-components/vue/KvCartModal';
import { setChallengeCookieData } from '../../util/teamChallengeUtils';
const FLSS_ONGOING_EXP_KEY = 'EXP-FLSS-Ongoing-Sitewide-3';
const CATEGORY_REDIRECT_EXP_KEY = 'category_filter_redirect';
Expand Down
2 changes: 1 addition & 1 deletion src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export default [
{
name: 'lenderProfile',
path: '/lender-vue/:publicId',
component: () => import('@/pages/LenderProfile/LenderProfile'),
component: () => import('#src/pages/LenderProfile/LenderProfile'),
meta: {
excludeFromStaticSitemap: true,
unbounceEmailCapture: true,
Expand Down

0 comments on commit da59885

Please sign in to comment.