diff --git a/npm/webpack-dev-server/src/helpers/createReactAppHandler.ts b/npm/webpack-dev-server/src/helpers/createReactAppHandler.ts index df109486540a..d0915b76265a 100644 --- a/npm/webpack-dev-server/src/helpers/createReactAppHandler.ts +++ b/npm/webpack-dev-server/src/helpers/createReactAppHandler.ts @@ -90,10 +90,10 @@ function addCypressToWebpackEslintRulesInPlace (webpackConfig: Configuration) { if (eslintPlugin) { const cypressGlobalsRules = cypressGlobals - .reduce((acc, global) => { - acc[global] = 'writable'; + .reduce>((acc, global) => { + acc[global] = 'writable' - return acc; + return acc }, {}) eslintPlugin.options.baseConfig = {