Stupid Prettier parsing, it adds two spaces triggering my ADHD error system

Kind of a stupid question but whenever I use an union in TS, Prettier lints it with two extra spaces, triggering a visual error on that line. What setting prevents that? Don’t you dare telling me stop using tabs and start using spaces though theowat
Solution:
if it triggers you that much just type // 😅...
Jump to solution
6 Replies
Solution
Sybatron
Sybatron2y ago
if it triggers you that much just type // 😅
Sybatron
Sybatron2y ago
it will add the needed space it wants to stop showing as error
Migu
Migu2y ago
you mean this?
Migu
Migu2y ago
so weird, it works though cheers!
cje
cje2y ago
that solution is so cursed lmao im also working in a ts repo with 4 spaces, and have just accepted that union types mess up the spacing and make the rainbow indent go red
Migu
Migu2y ago
I'm sure there's some weird prettier config that changes that behavior but unable to find the correct wording for my google searches so far seems to be a basic conflict between pipe representation that Typescript decides and Prettier that wants to convert everything into tabs, oh well
Want results from more Discord servers?
Add your server