eslint: Fix unicorn/no-anonymous-default-export.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-04-25 16:00:10 -07:00 committed by Anders Kaseorg
parent da2833319a
commit 3c57564213
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const path = require("path");
const {media_breakpoints} = require("./src/css_variables"); const {media_breakpoints} = require("./src/css_variables");
module.exports = ({file}) => ({ const config = ({file}) => ({
plugins: [ plugins: [
(file.basename ?? path.basename(file)) === "dark_theme.css" && (file.basename ?? path.basename(file)) === "dark_theme.css" &&
// Add postcss-import plugin with postcss-prefixwrap to handle // Add postcss-import plugin with postcss-prefixwrap to handle
@ -22,3 +22,4 @@ module.exports = ({file}) => ({
}), }),
], ],
}); });
module.exports = config;

View File

@ -13,7 +13,7 @@ import DebugRequirePlugin from "./debug-require-webpack-plugin";
import assets from "./webpack.assets.json"; import assets from "./webpack.assets.json";
import dev_assets from "./webpack.dev-assets.json"; import dev_assets from "./webpack.dev-assets.json";
export default ( const config = (
env: {minimize?: boolean; ZULIP_VERSION?: string} = {}, env: {minimize?: boolean; ZULIP_VERSION?: string} = {},
argv: {mode?: string}, argv: {mode?: string},
): webpack.Configuration[] => { ): webpack.Configuration[] => {
@ -272,3 +272,4 @@ export default (
return [frontendConfig, serverConfig]; return [frontendConfig, serverConfig];
}; };
export default config;