Added .prettierignore - What about Prettier support? #327
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thesrc
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 theformat 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):
And configure VS Code in your
Settings
:Then we can add a
.prettierrc
file containing all the formatting rules conventions for this specific project.What do you think?