From d6644231000023ec89fec27e1215a1c25bdfaca1 Mon Sep 17 00:00:00 2001 From: Jason Wesson Date: Wed, 14 Feb 2024 18:55:33 +0000 Subject: [PATCH] chore: remove lint --- config/jest.config.js | 2 +- config/webpack.dev.config.js | 6 +++--- config/webpack.prod.config.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/jest.config.js b/config/jest.config.js index e8a5aec05..ab9d688b9 100644 --- a/config/jest.config.js +++ b/config/jest.config.js @@ -12,7 +12,7 @@ if (fs.existsSync(appEnvConfigPathJs)) { envConfigPath = appEnvConfigPathJs; } else if (fs.existsSync(appEnvConfigPathJsx)) { envConfigPath = appEnvConfigPathJsx; -}; +} module.exports = { testURL: 'http://localhost/', diff --git a/config/webpack.dev.config.js b/config/webpack.dev.config.js index 918b65086..7a44040f6 100644 --- a/config/webpack.dev.config.js +++ b/config/webpack.dev.config.js @@ -19,16 +19,16 @@ const resolvePrivateEnvConfig = require('../lib/resolvePrivateEnvConfig'); const getLocalAliases = require('./getLocalAliases'); // Provides the env.config object that is available in local development so that devserver port number -// can be assigned below. If no env.config exists (JS or JSX), then it provides an empty object. +// can be assigned below. If no env.config exists (JS or JSX), then it provides an empty object. let envConfig = {}; -const envConfigPathJs = path.resolve(process.cwd(),'./env.config.js'); +const envConfigPathJs = path.resolve(process.cwd(), './env.config.js'); const envConfigPathJsx = path.resolve(process.cwd(), './env.config.jsx'); if (fs.existsSync(envConfigPathJs)) { envConfig = require(envConfigPathJs); } else if (fs.existsSync(envConfigPathJsx)) { envConfig = require(envConfigPathJsx); -}; +} // Add process env vars. Currently used only for setting the // server port and the publicPath diff --git a/config/webpack.prod.config.js b/config/webpack.prod.config.js index 4cd1e42ee..bdd069ba4 100644 --- a/config/webpack.prod.config.js +++ b/config/webpack.prod.config.js @@ -39,9 +39,9 @@ if (envConfigPath) { const envConfigFilename = envConfigPath.slice(envConfigPath.indexOf('env.config')); fs.copyFileSync(envConfigPath, envConfigFilename); - let newConfigFilepath = path.resolve(process.cwd(), envConfigFilename); + const newConfigFilepath = path.resolve(process.cwd(), envConfigFilename); envConfig = require(newConfigFilepath); -}; +} // Add process env vars. Currently used only for setting the PUBLIC_PATH. dotenv.config({