From 4593e256c50dbb2f553fdc66dbab3c094526bfc0 Mon Sep 17 00:00:00 2001 From: hoah2333 Date: Tue, 23 Dec 2025 21:56:14 +0800 Subject: [PATCH] fix: replace object shorthand to fix Rollup parse error Disable `object-shorthand` eslint rule to ensure compatibility with bundlers that fail to parse shorthand properties in this file. --- lib/properties/font.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/properties/font.js b/lib/properties/font.js index 4cbcf553..50d1de10 100644 --- a/lib/properties/font.js +++ b/lib/properties/font.js @@ -47,7 +47,8 @@ module.exports.parse = function parse(v, opt = {}) { return; } const lineHeightB = lineHeight.parse(lineB, { - global + // eslint-disable-next-line object-shorthand + global: global }); if (typeof lineHeightB !== "string") { return;