Skip to content

Commit

Permalink
chore: 优化prettierrc 的换行规则
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Jan 12, 2024
1 parent fb5b903 commit 4cd1ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// .prettierrc.js
module.exports = {
// 一行最多 120 字符
printWidth: 120,
// 一行最多 1000 字符 建议不强制换行使用编辑器的查看/自动换行进行展示换行
printWidth: 1000,
// 超出不换行
proseWrap: 'never',
// 使用 2 个空格缩进
Expand Down

0 comments on commit 4cd1ad4

Please sign in to comment.