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

Make FE code formatting more clear #395

Merged
merged 5 commits into from
Jun 5, 2024
Merged

Conversation

annavik
Copy link
Member

@annavik annavik commented Jun 4, 2024

I realized after checking #375 that how we format the frontend code is perhaps not super clear. In this PR we update the README and also we include a format check in the GitHub workflow. The commit history in this PR shows how the format check is first failing, then successful after code is auto formatted.

Copy link

netlify bot commented Jun 4, 2024

Deploy Preview for ami-web canceled.

Name Link
🔨 Latest commit 4dafe87
🔍 Latest deploy log https://app.netlify.com/sites/ami-web/deploys/665f73b178107b000781d505

Copy link

netlify bot commented Jun 4, 2024

Deploy Preview for ami-storybook canceled.

Name Link
🔨 Latest commit 4dafe87
🔍 Latest deploy log https://app.netlify.com/sites/ami-storybook/deploys/665f73b1fa18030008eb5ceb

@annavik annavik force-pushed the improvement/check-formatting branch from 70eba58 to b964272 Compare June 4, 2024 17:08
@annavik annavik force-pushed the improvement/check-formatting branch from b964272 to 2744341 Compare June 4, 2024 17:19
@annavik annavik force-pushed the improvement/check-formatting branch from ebf6021 to 8c9a1a9 Compare June 4, 2024 17:25
@annavik annavik requested a review from mihow June 4, 2024 17:26
@annavik annavik changed the title Make code formatting more clear Make FE code formatting more clear Jun 4, 2024
@mihow
Copy link
Collaborator

mihow commented Jun 4, 2024

Thanks @annavik! My formatter in VSCode was fighting with the existing formatting. I pushed two commits to enforce eslint & prettier on-save & pre-commit (then you don't have to wait for the github workflow to reject the changes to know something is wrong). Will you review the settings in .vscode/settings.json and the recommended extensions in .vscode/extensions.json? I like to have shared settings for the project workspace so everyone shares the same formatting during development. I just took a guess at the typescript settings. VS Code recently changed somethings in regards to formatting & linting extensions and I don't totally understand the new approach, but I believe this settings file uses the latest style now.

@annavik
Copy link
Member Author

annavik commented Jun 5, 2024

Thanks @annavik! My formatter in VSCode was fighting with the existing formatting. I pushed two commits to enforce eslint & prettier on-save & pre-commit (then you don't have to wait for the github workflow to reject the changes to know something is wrong). Will you review the settings in .vscode/settings.json and the recommended extensions in .vscode/extensions.json? I like to have shared settings for the project workspace so everyone shares the same formatting during development. I just took a guess at the typescript settings. VS Code recently changed somethings in regards to formatting & linting extensions and I don't totally understand the new approach, but I believe this settings file uses the latest style now.

Ah yes! Thanks for updating the VSCode recommendations and settings, looks perfect to me!

@annavik annavik merged commit 936590f into main Jun 5, 2024
6 checks passed
@annavik annavik deleted the improvement/check-formatting branch June 5, 2024 14:35
@annavik annavik self-assigned this Jun 7, 2024
@annavik annavik added this to the Internal Beta V2 Release milestone Jun 17, 2024
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.

2 participants