Skip to content

Chore/reformat codebase#25

Open
KadirBalku wants to merge 4 commits intomainfrom
chore/reformat-codebase
Open

Chore/reformat codebase#25
KadirBalku wants to merge 4 commits intomainfrom
chore/reformat-codebase

Conversation

@KadirBalku
Copy link
Copy Markdown
Collaborator

#22

Copy link
Copy Markdown
Member

@sveneberth sveneberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve the conflicts.

Can you integrate a pre-commit-hook and GH Action to enforce these styles?

Comment thread src/Shop.vue
<script setup>
import { onBeforeMount, watch, reactive } from 'vue';
import ShopOrderStepper from './ShopOrderStepper.vue'
import { onBeforeMount, watch, reactive } from "vue"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a personal option. If the prettier does his job i don't really case. But I hate these spaces around. Any reason to have theses? What's the industry standard?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is industry standard in JS and i wont change it cuz i am very used to this conventions and this makes it easier for me to identify the imports

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JS != Python !!!!

Comment thread .prettierrc
"bracketSameLine": false,
"arrowParens": "always",
"trailingComma": "none"
"trailingComma": "none",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use always trailing commas. That totally bad in combination with git history. Adding a new element means you change always two lines (the last needs the comma)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree didnt check that one. and not sure why is it on none. probably we need to talk to AK again, as this config was made by him in the utils

Comment thread .prettierrc
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't singleQuotes the default too?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope default in JS from the most common conventions are double quotes. we agreed on double quotes as well

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.

Current code style does not match with .editorconfig

2 participants