Skip to content

lib/data/items 的文献数据是怎么 format 的? #409

Closed Answered by northword
zepinglee asked this question in Q&A
Discussion options

You must be logged in to vote

这里的 format 是由 prettier 控制的,配置文件在 .prettierrc。

可能是是 printWidth 达到了限制强制换了行,也可能是 prettier 对 array 类型的格式化确实是这样导致的。

我这会儿不在电脑前,明天调查这个原因。


edited

似乎是 printwidth 的原因,也许需要把这里调大,比如 120:

"printWidth": 80,

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@zepinglee
Comment options

zepinglee Nov 23, 2024
Maintainer Author

Answer selected by zepinglee
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants