-
Notifications
You must be signed in to change notification settings - Fork 349
Add a .prettierrc (or .prettierrc.json) to auto-format JSON (and JS) files #1027
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
Comments
Good idea -- if you want to submit a PR we can see how well it might work. |
Here's the config I would recommend, but it does incorporate some of my own personal preferences.
Here's an easy way to try the different options and pick the config you like. There's a "copy config json" button at the bottom once you've got settings you're happy with. |
Cool - that looks good to me, @shaedrich @KamasamaK what do you think? |
I've never used Prettier, but it seems like a good idea to enforce (formatting) standards for the project. |
Please see #1649 for committed rules for .prettierrc and .cflintrc. If people are okay with these rules, I can apply to JSON files. |
Prettier is great. Having a definitions file will ensure that (at least for people who have the extension installed in their editor), the files are all consistently formatted.
The text was updated successfully, but these errors were encountered: