wd icon indicating copy to clipboard operation
wd copied to clipboard

Big code reformat

Open Stvad opened this issue 3 years ago • 5 comments

@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 avatar Jan 22 '22 06:01 Stvad

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?

Stvad avatar Jan 22 '22 18:01 Stvad

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.

fuddl avatar Jan 29 '22 11:01 fuddl

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

Stvad avatar Jan 30 '22 01:01 Stvad

* 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 🤓.

fuddl avatar Jan 30 '22 10:01 fuddl

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)?

Stvad avatar Jan 31 '22 06:01 Stvad