Maybe a bit of a strange question, we like many companies use Prettier to format files. Generally that’s ok, but we’ve got a
printWidth of 80 which I find way too small for my liking.
I’m wondering if there are any approaches/plugins/hacks that people can think of that would allow me to increase the printWidth just for myself locally, but then would respect the 80 characters elsewhere. Ideas I thought of:
- Rendering different content to screen than within the file (e.g. running the code though prettier before showing in the editing window)
- Convert to a different length on disk, but converting back to 80 in a pre-commit hook.
I’m not sure either of those approaches would work, so I thought I’d just throw it out for some ideas.