Skip to content

chore: lint with the shared uxfront oxlint config - #111

Merged
alexgrozav merged 3 commits into
mainfrom
lint-shared-config-uxf-1016
Nov 24, 2026
Merged

alexgrozav merged 3 commits into
mainfrom
lint-shared-config-uxf-1016

Conversation

@alexgrozav

@alexgrozav alexgrozav commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What changed

This adds oxlint and oxfmt with the shared @uxfront configs, as Unframework uses them, and a Lint job in CI. Nothing on the site changes, and nothing is formatted yet: the reformat is a pull request of its own, so it lands as one format-only commit that .git-blame-ignore-revs can list. What this adds:

  • Tools. oxlint@^1.94.0, oxfmt@^0.79.0, @uxfront/oxlint-config@^0.1.1 and @uxfront/oxfmt-config@^0.1.1, as dev dependencies. The tools resolve to versions a week old, so minimumReleaseAgeExclude gains nothing. The lockfile only adds these packages: the other changed lines are peer hashes, since vite-plugin-checker takes oxlint as an optional peer.
  • oxlint.config.ts extends @uxfront/oxlint-config/vue, without type-aware rules. It lets no-unused-vars skip a key destructured beside a rest element, which is how the code copies an object without that key. It turns off one rule each for DocsNavigation.vue, which keeps Nuxt UI's line as it is, and for the Combobox's ACCENTS, which matches combining marks on purpose. Each has its reason in the file.
  • oxfmt.config.ts spreads @uxfront/oxfmt-config and leaves out the Markdown (MDC docs and the plugin's skills), app/reference/ (the pages show it byte for byte) and plugins/schemas/ (vendored).
  • Scripts. lint, lint:fix, format and format:check. The Lint job runs pnpm lint --format=github, so errors fail it and warnings only annotate the PR. It isn't a required check.
  • Docs. AGENTS.md and CONTRIBUTING.md list pnpm lint and pnpm format, and pnpm lint joins the checks for any change.
  • Two lint fixes in tests. Select.test.ts walks the shown set directly rather than a copy, since deleting the current entry during for…of is safe, and raw.test.ts uses endsWith(" Checklist"), which matches the same lines as / Checklist$/. The Select page shows Select.test.ts byte for byte, so its code block changes by the same one line. Neither test changes what it checks, so there's no changelog entry.

pnpm lint now reports no errors. main is merged in, with #109's @uxfront/layer-docs 0.9.1, so pnpm check-types passes too. The lockfile was rebuilt from main's, and adds only the four new packages, their bindings and tinypool.

Checklist

  • The title follows Conventional Commits, as in feat(docs): add the focus guideline.
  • pnpm check-types passes. (pnpm lint, pnpm check-reference and pnpm test pass too.)
  • Docs changes: the pages read well on pnpm dev. (Only one line in the Select page's Select.test.ts code block changes, to match the test. pnpm check-reference passes.)
  • Homepage changes: pnpm build, then pnpm lighthouse, still scores 100 in every category. (No homepage changes.)

Adds oxlint and oxfmt with @uxfront/oxlint-config/vue and @uxfront/oxfmt-config, the lint, lint:fix, format and format:check scripts, and a Lint job in CI. Nothing is formatted yet.

Co-authored-by: multica-agent <github@multica.ai>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://lint-shared-config-uxf-1016.opencomponents.dev, https://lint-shared-config-uxf-1016-opencomponents.uxfront.workers.dev (commit 5931221)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://31fdd9e4.opencomponents.dev, https://31fdd9e4-opencomponents.uxfront.workers.dev 5931221 2026-11-24T10:05:00.975Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c176fb1e.opencomponents.dev, https://c176fb1e-opencomponents.uxfront.workers.dev e5215ec 2026-11-24T09:47:41.311Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://133b0166.opencomponents.dev, https://133b0166-opencomponents.uxfront.workers.dev 9fbcf15 2026-11-24T09:32:13.288Z Visit the dashboard ↗

alexgrozav and others added 2 commits November 24, 2026 11:45
Select.test.ts walks the shown Set directly, since deleting the current
entry during for…of is safe, and its code block on the Select page
changes with it. raw.test.ts uses endsWith, which matches the same
strings as / Checklist$/ without the m flag.

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
@alexgrozav
alexgrozav marked this pull request as ready for review November 24, 2026 10:53
@alexgrozav
alexgrozav merged commit f2b75a4 into main Nov 24, 2026
7 checks passed
@alexgrozav
alexgrozav deleted the lint-shared-config-uxf-1016 branch November 24, 2026 12:04
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.

1 participant