Skip to content

chore(tooling): Centralize oxlint/oxfmt config at workspace root#152

Merged
mhiro2 merged 2 commits intomainfrom
chore/oxlint-oxfmt-root-config
May 6, 2026
Merged

chore(tooling): Centralize oxlint/oxfmt config at workspace root#152
mhiro2 merged 2 commits intomainfrom
chore/oxlint-oxfmt-root-config

Conversation

@mhiro2
Copy link
Copy Markdown
Owner

@mhiro2 mhiro2 commented May 6, 2026

Summary

  • Move oxlint and oxfmt configuration to the repository root so both TS packages share a single source of truth, and reference it via the -c flag from each package script.
  • Enable type-aware lint with denyWarnings: true so warnings fail CI, and add oxlint-tsgolint to the workspace catalog and the dependabot oxc group.
  • Apply oxfmt (singleQuote, sortImports) across the frontend sources and address the type-aware findings surfaced by the new configuration.

Changes

  • 5826357 : chore(tooling): centralize oxlint/oxfmt config at workspace root
    • Add root .oxlintrc.json and .oxfmtrc.json, drop the per-crate .oxfmtrc.jsonc, and update playground and relune-render-html package scripts to point at the shared configs.
    • Pin oxlint-tsgolint in pnpm-workspace.yaml and group it with the existing oxc dependabot updates.
  • 1ef2eaa : style(frontend): apply oxfmt single-quote/sortImports and resolve type-aware lint findings
    • Reformat TypeScript, esbuild configs, HTML, and CSS under the new oxfmt rules.
    • Resolve type-aware lint findings: prefer Array.prototype.toSorted, replace the unused generic on emitViewerEvent with unknown, add exhaustive switch defaults, and rename a shadowed local in minimap.ts.
    • Regenerate the bundled viewer scripts under crates/relune-render-html/src/js to match the reformatted sources.

Move oxlint and oxfmt configuration to repository root and reference it from
both TS packages via -c flag. Enable type-aware lint with denyWarnings so
warnings fail CI, and add oxlint-tsgolint to the workspace catalog.
@mhiro2 mhiro2 changed the title chore(tooling): centralize oxlint/oxfmt config at workspace root chore(tooling): Centralize oxlint/oxfmt config at workspace root May 6, 2026
@mhiro2 mhiro2 self-assigned this May 6, 2026
@mhiro2 mhiro2 added the refactor label May 6, 2026
…e-aware lint findings

Reformat TypeScript, esbuild configs, HTML, and CSS via oxfmt with the new
root config, and address type-aware findings surfaced by oxlint-tsgolint:
prefer Array.prototype.toSorted over [...arr].sort, replace generic
emitViewerEvent with unknown detail, add exhaustive switch defaults, and
rename a shadowed local in minimap. Regenerate the bundled viewer scripts
under crates/relune-render-html/src/js to match the reformatted sources.
@mhiro2 mhiro2 force-pushed the chore/oxlint-oxfmt-root-config branch from fd0caf5 to 1ef2eaa Compare May 6, 2026 12:40
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Code Metrics Report

main (dc2f606) #152 (ef08e77) +/-
Coverage 94.4% 94.4% 0.0%
Test Execution Time 1m35s 1m35s 0s
Details
  |                     | main (dc2f606) | #152 (ef08e77) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          94.4% |          94.4% | 0.0% |
  |   Files             |            100 |            100 |    0 |
  |   Lines             |          36742 |          36742 |    0 |
  |   Covered           |          34704 |          34704 |    0 |
  | Test Execution Time |          1m35s |          1m35s |   0s |

Reported by octocov

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Schema review

Tip

✅ No risk findings — schema changes look safe to merge.

@mhiro2 mhiro2 merged commit 24db98c into main May 6, 2026
6 checks passed
@mhiro2 mhiro2 deleted the chore/oxlint-oxfmt-root-config branch May 6, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant