From 5f909abd4c71822abb391c1089f236906b3d0485 Mon Sep 17 00:00:00 2001 From: Timo Bechtel Date: Mon, 13 Nov 2023 13:49:14 +0100 Subject: [PATCH] docs(prettier): add comment about tabs vs spaces --- prettier/index.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prettier/index.mjs b/prettier/index.mjs index 0df0ef9..7e3888f 100644 --- a/prettier/index.mjs +++ b/prettier/index.mjs @@ -8,6 +8,9 @@ const overridableDefaults = { endOfLine: 'lf', tabWidth: 2, printWidth: 80, + // Why I'd generally prefer tabs, as they are a lot more customizable, + // I've found that in a lot of places, tabs are displayed as 8 spaces by default, + // which makes it hard to read on mobile devices. (e.g. the GitHub app) useTabs: false, };