-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Pre-install Prettier and ESLint VSCode extensions #9269
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
ping @jankeromnes @filiptronicek 😊 |
Thanks for your contribution @trumbitta It's looks good to me, but I will ping @gitpod-io/engineering-webapp have a look |
/werft run no-preview 👍 started the job as gitpod-build-prettier-eslint-fork.0 |
Thanks for reviving this PR :) I had anticipated this the first time and the second time I worked on the general "unified code style" problem. Then @easyCZ took over a part of it and also added a pre-commit hook which, I guess, already addresses your concerns if finally applied to everything? This PR is a fundamental pre-requisite for #3841 🙏 |
Oh my, I'm sorry this was missed this long. Taking a look! |
I tried editing something in a .tsx file and the code didn't get prettified on save. @iQQBot it worked for you? |
🤔 could it be that the file had syntax errors? Prettier only activates when the file is completely sane 🤔 |
I have been having weird issues with my editor(s), so let me nudge someone else to test it. |
Thank you @andrew-farries for helping testing it and thank you @trumbitta for the contribution! It looks like there are only conflicts that need to be resolved, and then it's good to go. |
55a79d9
to
526bd36
Compare
Thank you @laushinka and @andrew-farries 🙏 I just rebased from |
/werft run no-preview 👍 started the job as gitpod-build-prettier-eslint-fork.1 |
Description
In an effort to further simplify #8995, this only adds pre-installed and pre-activated ESLint & Prettier extensions for VSCode with "format on save".
It's a cherry-pick from #8895 so it's expected to vanish from that PR once this gets merged.
Related Issue(s)
Re #3841
This is a prerequisite to ensure the work on the linting issues can proceed with sane defaults.
How to test
For Prettier: open a TS file, and see if the code you write gets formatted on save.
For ESLint: open a TS file, produce a linting error, and see if VSCode marks it with a squiggly yellow line.
Release Notes
Documentation