From 2fe323c9662ff4a5cabba6ec565249493c71f8f7 Mon Sep 17 00:00:00 2001 From: mobyw <44370805+mobyw@users.noreply.github.com> Date: Fri, 17 Mar 2023 21:54:48 +0800 Subject: [PATCH] fix(format): fix string width config (#12133) --- docs/.format/chineseFormat.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/.format/chineseFormat.js b/docs/.format/chineseFormat.js index f15ec1e31..c054b5b3b 100644 --- a/docs/.format/chineseFormat.js +++ b/docs/.format/chineseFormat.js @@ -22,9 +22,7 @@ module.exports = { }) .use(prettier) .use(gfm, { - options: { - stringLength: width, - }, + stringLength: width, }) .process(doc); return typeof result === 'string' ? result : typeof result.contents === 'string' ? result.contents : result.result;