Skip to content

Commit

Permalink
feat: set print width to 40 (#6068)
Browse files Browse the repository at this point in the history
  • Loading branch information
RostiMelk authored and rexxars committed Apr 26, 2024
1 parent c1f9071 commit 2e24fcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@sanity/cli/src/util/journeyConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ async function fetchJourneySchema(schemaUrl: string): Promise<DocumentOrObject[]
async function assembleJourneySchemaTypeFileContent(schemaType: DocumentOrObject): Promise<string> {
const serialised = wrapSchemaTypeInHelpers(schemaType)
const imports = getImports(serialised)
const prettifiedSchemaType = await format(serialised, {parser: 'typescript'})
const prettifiedSchemaType = await format(serialised, {
parser: 'typescript',
printWidth: 40,
})
// Start file with import, then export the schema type as a named export
return `${imports}\n\nexport const ${schemaType.name} = ${prettifiedSchemaType}\n`
}
Expand Down

0 comments on commit 2e24fcd

Please sign in to comment.