-
Notifications
You must be signed in to change notification settings - Fork 5
chore(prettier): add prettier and prettierrc to template #50
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Nice! I like all decisions here!
Shall I add a run script in the |
I wouldn't add a run script. To migrate a project to prettier its often enough to do a |
Is there a VSC extension that takes the prettierrc settings into account and let you do that using a command? |
yep https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode uses the config file. I also activated the |
One more thing, when prettier handles the 80 chars line length, can we switch off the eslint setting for this? Prettier sometimes cannot split the lines and then eslint complains. We should let prettier do it as good as it can... |
@@ -0,0 +1,14 @@ | |||
{ | |||
"printWidth": 80, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disable eslint line width rule please
All prettier options: https://prettier.io/docs/en/options.html