From 599397d89b670af7738122f449688c9ff25301a5 Mon Sep 17 00:00:00 2001 From: Ifycode Date: Wed, 8 Apr 2026 23:29:06 +0100 Subject: [PATCH] Fix: Prettier base settings - add 350 print width with bracket spacing --- docs.users/README.md | 4 ++++ prettier.config.mjs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/docs.users/README.md b/docs.users/README.md index eac60a5..fe00c94 100644 --- a/docs.users/README.md +++ b/docs.users/README.md @@ -47,6 +47,8 @@ In addition to `prettier`'s default settings, our preconfigured settings tells ` - Add trailing comma to the last item in an object - End every single code statement with a semicolon - Ensure that every file ends with exactly one empty line +- Allow e.g. import statements, function arguments etc. to be on straight line without breaking (only wrap to next line if printWidth exceeds 350) +- Add spaces between brackets in object literals, imports, and similar structures ```` { @@ -56,6 +58,8 @@ In addition to `prettier`'s default settings, our preconfigured settings tells ` trailingComma: 'all', semi: true, endOfLine: 'lf', + printWidth: 350, + bracketSpacing: true, }; ```` diff --git a/prettier.config.mjs b/prettier.config.mjs index 6baf04e..68ff83e 100644 --- a/prettier.config.mjs +++ b/prettier.config.mjs @@ -5,4 +5,6 @@ export default { trailingComma: 'all', semi: true, endOfLine: 'lf', + printWidth: 350, + bracketSpacing: true, };