Skip to content

Fix Bug 1615565: Use prettier to format frontend code - #1688

Merged
mathjazz merged 8 commits into
mozilla:masterfrom
abowler2:add-prettier
Sep 27, 2020
Merged

Fix Bug 1615565: Use prettier to format frontend code#1688
mathjazz merged 8 commits into
mozilla:masterfrom
abowler2:add-prettier

Conversation

@abowler2

Copy link
Copy Markdown
Collaborator

This PR uses the Prettier documentation along with the previous work from @adngdb to add, configure, and run Prettier to format the frontend code.

Pending feedback and review on this I can add it to the CI as well as create a make command to make it easier to enforce the changes.

Comment thread frontend/.prettierignore
@@ -0,0 +1,19 @@
# dependencies
/node_modules

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is a replication of the .gitignore file for the frontend as I was uncertain which files we might want to ignore, and felt this was a good representation.

@jotes

jotes commented Sep 26, 2020

Copy link
Copy Markdown
Collaborator

I don't modify the JS code lately, but I'm in favor of using an auto-formatter. The hanges look good for me :-)

I can take a look later when the Makefile/Travis part is done, or help if there's any problem with that part.

@mathjazz

Copy link
Copy Markdown
Collaborator

I like!

Let's add it to CI and add some make commands.

@mathjazz mathjazz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent job!

@mathjazz
mathjazz merged commit 0f31239 into mozilla:master Sep 27, 2020
@abowler2
abowler2 deleted the add-prettier branch September 27, 2020 21:31
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.

3 participants