From 3c5756421396d103f43cf8c956739e8ae2a0e0be Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 25 Apr 2024 16:00:10 -0700 Subject: [PATCH] eslint: Fix unicorn/no-anonymous-default-export. Signed-off-by: Anders Kaseorg --- web/postcss.config.js | 3 ++- web/webpack.config.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/postcss.config.js b/web/postcss.config.js index ec7e6949f5..ee23f7f171 100644 --- a/web/postcss.config.js +++ b/web/postcss.config.js @@ -4,7 +4,7 @@ const path = require("path"); const {media_breakpoints} = require("./src/css_variables"); -module.exports = ({file}) => ({ +const config = ({file}) => ({ plugins: [ (file.basename ?? path.basename(file)) === "dark_theme.css" && // Add postcss-import plugin with postcss-prefixwrap to handle @@ -22,3 +22,4 @@ module.exports = ({file}) => ({ }), ], }); +module.exports = config; diff --git a/web/webpack.config.ts b/web/webpack.config.ts index dc0b153b69..1b6034386c 100644 --- a/web/webpack.config.ts +++ b/web/webpack.config.ts @@ -13,7 +13,7 @@ import DebugRequirePlugin from "./debug-require-webpack-plugin"; import assets from "./webpack.assets.json"; import dev_assets from "./webpack.dev-assets.json"; -export default ( +const config = ( env: {minimize?: boolean; ZULIP_VERSION?: string} = {}, argv: {mode?: string}, ): webpack.Configuration[] => { @@ -272,3 +272,4 @@ export default ( return [frontendConfig, serverConfig]; }; +export default config;