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

Code formatting using Prettier JS #15

Closed
mikerodonnell89 opened this issue May 31, 2018 · 2 comments
Closed

Code formatting using Prettier JS #15

mikerodonnell89 opened this issue May 31, 2018 · 2 comments

Comments

@mikerodonnell89
Copy link
Member

Add prettier js to the library and have it run before commits

@tobi-or-not-tobi
Copy link

I recommend to format on save. VS Code provides the following setting:

"editor.formatOnSave": true,

Documentation on this setting: Format a file on save. A formatter must be available, the file must not be auto-saved, and editor must not be shutting down.

Although I typically have this applied as a global setting, we could make this a workspace setting for VS Code users.

Other IDEs have similar things.

@mikerodonnell89
Copy link
Member Author

Here's how to set it up for Webstorm users: https://prettier.io/docs/en/webstorm.html

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

No branches or pull requests

2 participants