Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added .prettierignore - What about Prettier support? #327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tonix-tuft
Copy link

@tonix-tuft tonix-tuft commented Apr 26, 2020

I have forked your repo and as I am using Prettier with VS Code and it automatically formats code code on save, I had to add a .prettierignore file.
I guess other devs use Prettier too nowadays, so I think it would be great if the project supported it as well.

For now, the .prettierignore file ignores all the files within the src directory, but as soon as we enable Prettier, I will change that and the files will be automatically formatted on save (provided that the editor supports the format on save option, VS Code does).

If you are using VS Code, you can install Prettier by Esben Petersen (the first one with 6.1M downloads):

image

And configure VS Code in your Settings:

image

image

image

image

Then we can add a .prettierrc file containing all the formatting rules conventions for this specific project.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant