-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Streamline code formatting #7757
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
Conversation
@trumbitta: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We Can add small automation too, that will run the prettier script ( to format whole code) before every commit. This way whole code will be formatted well. |
Thanks for giving this a go, @trumbitta! 💯
❓ question: Could we break this down into smaller pieces or steps to make it easier and faster to review? Breaking down changes per component, starting with the bare minimum linting rules, or leaving markdown files out of the scope of these changes could help. 💭 Cross-linking relevant issue in #3841. |
Hey @gtsiolis 👋 , these are just 💅🏻 code formatting changes. I already created one commit for each component, so that you can for example:
Is this what you mean? Re: markdown files. Personally I'd rather use Prettier for everything it supports and never spend another second of my life over code formatting, but if you prefer keeping markdown files out of the thing, I can add them to the ignored files! Just let me know 😃 |
Thanks, @trumbitta! I'm all in for adding prettier[1] support but would recommend a) breaking things down into smaller pieces if possible and if it makes sense in the spirit of MVC (minimum viable change) as well as b) starting with a bare minimum setup since prettier can be quite opinionated by default. Let me pass this to the folks in @gitpod-io/engineering-webapp to decide what's the best way forward here. 🏓 |
Another common approach when adopting Prettier is to just have a "configuration file + format on save" setup and let it propagate changes over time. |
@gtsiolis 👋 any news? 😊 |
@trumbitta I still stand by #7757 (comment) but I'd like to defer this to the @gitpod-io/engineering-webapp team for any additional input or decide what's the best way forward here. I've also just pinged the team internally to resurface this. |
@trumbitta after a short discussion about this with the team: Thanks again for opening this! I'm going to take a bias-for-action here and close this for now as this currently seems to add little to almost no value for our users and causes more distraction for the team instead of helping us push forward our product's vision and strategy[1]. Following the comment in #7757 (comment), if you still think some of the changes in this PR could be useful, I'd recommend Please, do not let this discourage you from contributing to other areas of the product. Thanks again for all your contributions! |
Description
Why
What
TODO
README
(which ones depends on the answer to the question just above) about thislint-staged
suggests stabilizing ESLint before configuring itHow to test
Use, build, test Gitpod to see if this broke something (it shouldn't have, since Prettier only reformats code)