Skip to content

Use oxfmt, format code, configure VS Code#1030

Merged
kaisalmen merged 7 commits intomainfrom
oxfmt
Mar 5, 2026
Merged

Use oxfmt, format code, configure VS Code#1030
kaisalmen merged 7 commits intomainfrom
oxfmt

Conversation

@kaisalmen
Copy link
Collaborator

The code formatting wasn't really bad. Line limit is now 140 what makes looking at diffs easier, IMO.

Most changes are in HTML and json related content as I set the spacing to 2 there. The package.json files were reordered according.

VS Code formats on save now. editorconfig is dropped as it is no longer needed.

Btw, do you prefer two spaces for TypeScript? I am open to change that as well.

kaisalmen and others added 4 commits March 5, 2026 15:15
* chore(oxfmt): ignore clangd include files list
* chore(oxfmt): document clangd include ignore reason
* chore(oxfmt): clarify ignore rationale for markdown glob
@kaisalmen kaisalmen requested a review from CGNonofr as a code owner March 5, 2026 14:26
@kaisalmen kaisalmen changed the title Use oxfmt, configure Use oxfmt, format code, configure VS Code Mar 5, 2026
@kaisalmen
Copy link
Collaborator Author

kaisalmen commented Mar 5, 2026

@CGNonofr btw, during the switch to oxfmt I made this observation.

@kaisalmen
Copy link
Collaborator Author

Btw, do you prefer two spaces for TypeScript? I am open to change that as well.

@CGNonofr any thoughts on this? You use two spaces in mva.

@CGNonofr
Copy link
Collaborator

CGNonofr commented Mar 5, 2026

Btw, do you prefer two spaces for TypeScript? I am open to change that as well.

@CGNonofr any thoughts on this? You use two spaces in mva.

That's an infinite debate :) Both are fine as long as it's consistent and enforced

@kaisalmen
Copy link
Collaborator Author

kaisalmen commented Mar 5, 2026

That's an infinite debate :) Both are fine as long as it's consistent and enforced

I know, but I am in for it (I had a different opinion in the past). The default is now 2 and everything is formatted accordingly and the tools will ensure it stays consistent.

@CGNonofr CGNonofr self-requested a review March 5, 2026 15:17
@kaisalmen kaisalmen merged commit 15489d4 into main Mar 5, 2026
1 check passed
@kaisalmen kaisalmen deleted the oxfmt branch March 5, 2026 15:18
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.

3 participants