Skip to content

Commit 8942cc0

Browse files
authoredAug 4, 2024··
fix: default prettier printWidth: 120 not work as expected (#573)
1 parent 1215d9f commit 8942cc0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/configs/formatters.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export async function formatters(
4343
const prettierOptions: VendoredPrettierOptions = Object.assign(
4444
{
4545
endOfLine: 'auto',
46+
printWidth: 120,
4647
semi,
4748
singleQuote: quotes === 'single',
4849
tabWidth: typeof indent === 'number' ? indent : 2,
@@ -197,7 +198,6 @@ export async function formatters(
197198
'error',
198199
formater === 'prettier'
199200
? {
200-
printWidth: 120,
201201
...prettierOptions,
202202
embeddedLanguageFormatting: 'off',
203203
parser: 'markdown',
@@ -221,7 +221,6 @@ export async function formatters(
221221
'format/prettier': [
222222
'error',
223223
{
224-
printWidth: 120,
225224
...prettierOptions,
226225
embeddedLanguageFormatting: 'off',
227226
parser: 'slidev',

0 commit comments

Comments
 (0)
Please sign in to comment.