From e1eef95f9dff485f7721e2222eba9faff67b236c Mon Sep 17 00:00:00 2001 From: Wesley Dean Date: Tue, 19 Nov 2024 17:11:06 +0000 Subject: [PATCH] [MegaLinter] Apply linters fixes --- .eleventy.js | 24 +++++++++++++++++++----- js/environmentValidators.js | 2 +- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index d0da9d62..b44ed7a9 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -83,11 +83,17 @@ module.exports = function (config) { config.addGlobalData("baseUrl", baseUrl); config.addGlobalData("site.baseUrl", baseUrl); - if (process.env.TWITTER && environmentValidators.isValidTwitterHandle(process.env.TWITTER)) { + if ( + process.env.TWITTER && + environmentValidators.isValidTwitterHandle(process.env.TWITTER) + ) { config.addGlobalData("site.twitter", process.env.TWITTER); } - if (process.env.DAP_AGENCY && environmentValidators.isValidDapAgency(process.env.DAP_AGENCY)) { + if ( + process.env.DAP_AGENCY && + environmentValidators.isValidDapAgency(process.env.DAP_AGENCY) + ) { config.addGlobalData("site.dap.agency", process.env.DAP_AGENCY); } @@ -98,15 +104,23 @@ module.exports = function (config) { config.addGlobalData("site.dap.subagency", process.env.DAP_SUBAGENCY); } - if (process.env.GA && environmentValidators.isValidAnalyticsId(process.env.GA)) { + if ( + process.env.GA && + environmentValidators.isValidAnalyticsId(process.env.GA) + ) { config.addGlobalData("site.ga", process.env.GA); } if ( process.env.GOOGLE_VERIFICATION_TOKEN && - environmentValidators.isValidVerificationToken (process.env.GOOGLE_VERIFICATION_TOKEN) + environmentValidators.isValidVerificationToken( + process.env.GOOGLE_VERIFICATION_TOKEN, + ) ) { - config.addGlobalData("site.google_verification_token", process.env.GOOGLE_VERIFICATION_TOKEN) + config.addGlobalData( + "site.google_verification_token", + process.env.GOOGLE_VERIFICATION_TOKEN, + ); } if ( diff --git a/js/environmentValidators.js b/js/environmentValidators.js index 8d46ce18..a6915397 100644 --- a/js/environmentValidators.js +++ b/js/environmentValidators.js @@ -40,5 +40,5 @@ module.exports = { isValidAnalyticsId, isValidVerificationToken, isValidSearchKey, - isValidSearchAffiliate + isValidSearchAffiliate, };