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

Big code reformat #49

Open
Stvad opened this issue Jan 22, 2022 · 5 comments
Open

Big code reformat #49

Stvad opened this issue Jan 22, 2022 · 5 comments

Comments

@Stvad
Copy link
Collaborator

Stvad commented Jan 22, 2022

@fuddl you mentioned potentially running reformat on the whole codebase after #38 is merged. This is to coordinate on the config/which rules should it enforce.

or

Let's not have unnecessary semicolons & other questions of taste 😛

@Stvad
Copy link
Collaborator Author

Stvad commented Jan 22, 2022

Also looking at https://github.com/fuddl/wd/pull/47/files#diff-b856ae74af118e6ad2395d1e1cc0fddd4a243bf239dc8c6e7e390db14b2f85b3L20 it seems most of the code is using single ' quote mark, so maybe it's better stick with that, to minimize actual formatting changes?

@fuddl
Copy link
Owner

fuddl commented Jan 29, 2022

Do you agree with the current state of .eslintrc.yml? Let's simply apply that rules?

Also looking at https://github.com/fuddl/wd/pull/47/files#diff-b856ae74af118e6ad2395d1e1cc0fddd4a243bf239dc8c6e7e390db14b2f85b3L20 it seems most of the code is using single ' quote mark, so maybe it's better stick with that, to minimize actual formatting changes?

agreed.

@Stvad
Copy link
Collaborator Author

Stvad commented Jan 30, 2022

Do you agree with the current state of .eslintrc.yml? Let's simply apply that rules?

well, I mentioned 2 things that I think we should change (assuming changes in the linked file were generated based on that config):

  • single quotes vs double quotes (to minimize codebase changes)
  • don't enforce semicolons/prefer no semicolons (this one is more of the matter of taste)

need to check it more/maybe try applying it to see how it impacts an existing codebase

@fuddl
Copy link
Owner

fuddl commented Jan 30, 2022

* single quotes vs double quotes (to minimize codebase changes)

I have no strong opinion here. I just think single quotes look better 😅

* don't enforce semicolons/prefer no semicolons (this one is more of the matter of taste)

It'll be hard to train my brain to not add semicolons but I'd accept the challenge 🤓.

@Stvad
Copy link
Collaborator Author

Stvad commented Jan 31, 2022

Ok, so let's change those & re-apply it to #47 to see impact on code-base (and if we need to adjust anything else)?

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

No branches or pull requests

2 participants