dumb-react
dumb-react copied to clipboard
Can I suggest Prettier?
Hi Brad!
Prettier is an amazing project that could help you to format your code automatically, it seems like a good fit for this project.
Thanks @montogeek. I have Prettier set up in VSCode, but it formats JSX really wonky. I haven't had time to mess with any of the settings or configuration. Any resources or boilerplate configs that clean this up?
Wonky how exactly? I am pretty sure @vjeux it is interested.
@bradfrost I've had situations in the past where Beautify was fighting Prettier - perhaps you have that plugin installed as well? If you have another IDE-specific formatting plugins, you should consider disabling them on any React workspaces.
@kylemh I do have Beautify also installed. Will give that a shot, thanks!
Prettier is a bit opinionated and maybe has some settings which some dislike. But you can set-up vscode.settings to disable/enable/change some of the predefined rules.
For example I dont like that it always breaks object literal on many lines, even when it is very short, so I turn this rule off