diffusionbee-stable-diffusion-ui icon indicating copy to clipboard operation
diffusionbee-stable-diffusion-ui copied to clipboard

use prettier library and clean up the codebase

Open gammons opened this issue 3 years ago • 1 comments

This codebase is hard to read and needs a bit of standardization with linting. There were also a lot of commented out code and superfluous newlines. This PR helps normalize the codebase so it will be easier to contribute to.

  • removed commented-out code
  • Removed superfluous newlines
  • Cleaned up spacing
  • Add prettier to devDependencies in package.json

This PR is similar to #40, but I also added prettier to the devDependencies as well.

For a formatting change like this, it's best to rip the band-aid off quickly, since it changed a lot of code. But it will make it easier to contribute to going forward.

One major caveat - I was not able to test this locally because of #62 . Care should be taken to validate that this PR works before even considering merging.

gammons avatar Sep 19 '22 22:09 gammons

Any update on this topic?

I also immediately noticed the inconsistent code format when starting to read this project's code. Would definitely improve readability if prettier is used.

SassNinja avatar Sep 11 '24 10:09 SassNinja