Draft
Conversation
Open
Co-authored-by: donatj <133747+donatj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Set up Oxfmt configuration for /ts and /scss
Set up scoped Oxfmt formatting
Sep 6, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
All reviewed changes are scoped to formatter setup, formatting, and generated assets, with no unresolved issues.
Pull request overview
Adds scoped Oxfmt tooling for frontend TypeScript and Sass sources, establishing a formatting baseline and regenerating browser assets.
Changes:
- Adds Oxfmt configuration, dependency, and
make fmt. - Formats
ts/andscss/sources. - Regenerates assets and documents the formatter command.
File summaries
| File | Description |
|---|---|
ts/main.ts |
Applies formatting. |
ts/Home.ts |
Applies formatting. |
ts/Dashboard.tsx |
Reformats dashboard JSX and expressions. |
ts/Controllers/ApiExampleController.ts |
Reformats controller code and examples. |
ts/api/tokens.ts |
Applies formatting. |
ts/api/shields.ts |
Applies formatting. |
ts/api/request.ts |
Applies formatting. |
ts/api/env.ts |
Applies formatting. |
ts/api/authed.ts |
Applies formatting. |
ts/AbstractController.ts |
Reformats class declarations. |
static/style/style.css |
Regenerates compiled CSS. |
static/main.js |
Regenerates the browser bundle. |
scss/style.scss |
Applies Sass formatting. |
scss/_variables.scss |
Normalizes whitespace. |
scss/_shared.scss |
Reformats shared styles. |
scss/_reset.scss |
Reformats selector lists. |
scss/_mixins.scss |
Applies formatting. |
scss/_home.scss |
Normalizes spacing and decimals. |
scss/_dashboard.scss |
Normalizes dashboard styles. |
scss/_code.scss |
Reformats font lists and whitespace. |
README.md |
Documents make fmt. |
package.json |
Adds the Oxfmt dependency. |
package-lock.json |
Locks Oxfmt and platform packages. |
Makefile |
Adds the scoped formatter target. |
.oxfmtrc.json |
Configures tab indentation. |
Review details
Files not reviewed (1)
- static/style/style.css: Generated file
- Files reviewed: 21/25 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Oxfmt alongside Oxlint and limits formatting to frontend TypeScript and Sass sources.
Formatter tooling
oxfmtas a development dependency..oxfmtrc.jsonto retain tab indentation.Project command
make fmt, scoped tots/andscss/.Formatting baseline