Skip to content

Commit

Permalink
Increase expressionWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 30, 2023
1 parent e316747 commit 30aec99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/next-js-postgresql/prettier.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ const prettierPluginEmbedConfig = {
const prettierPluginSqlConfig = {
language: 'postgresql',
keywordCase: 'upper',
// Wrap all parenthesized expressions to new lines (eg. INSERT columns)
expressionWidth: 1,
// - Wrap all parenthesized expressions to new lines (eg. `INSERT` columns)
// - Do not wrap foreign keys (eg. `REFERENCES table_name (id)`)
// - Do not wrap column type expressions (eg. `VARCHAR(255)`)
expressionWidth: 8,
};

const config = {
Expand Down

0 comments on commit 30aec99

Please sign in to comment.