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({