Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.
Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.
So every MR restyles the code to fit your style? How are you going to review the code?
Every problem in computer science can be solved by adding another layer of indirection.
Whatever is displaying the MR formats it. The server saves a normalized copy.
Like crlf/lf. But for all formatting.
Sure. Toooootally the same thing. Now the server will have to save a copy of your formatting preferences, checkout the project at point t-1, checkout the project at t, format it, create a diff, and present that to you. Now when you leave a comment on line x, it might be line y for another person.
Or make it worse, someone introduces malicious code with UTF-8, or switches around parameters, or adds pragma comments that fundamentally change your code, but your formatter happily fixes that for you in the preview so you are oblivious.
Or you’re hosting this server and someone makes a change that completely reformats the entire codebase, but you see absolutely nothing of it because the preview diff only shows “relevant” changes.
All fine by you👌
Right. You can still put that through a linter; the linter just wouldn’t be concerned with human-readability.
In any case, my editor would not hardcode my display preferences, so if I open and save a document, nothing changes except what I actually changed.