Repository navigation
Conversation
Replace root Oxlint/Oxfmt JSON configs with liangmi() in vite.config.ts so vp lint, vp fmt, and Vitest load the same Vite+ config. Nuxt still owns application Vite via nuxt.config.ts.
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
0froq
added a commit
to 0froq/0froq.github.io
that referenced
this pull request
Oct 26, 2026
Replace hand-written Oxlint/Oxfmt JSON plus `vp lint --config` with `liangmi()` in root vite.config.ts, matching 0froq/lig#23. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
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.
Replace hand-written
.oxlintrc.json/.oxfmtrc.jsonplusvp lint --configwith@liangmi/vp-config(liangmi()). Lint is flat-config viaoxlint-flat-config; fmt comes from the preset plus lig-specific options.What moved where
Vite+ discovers
lint/fmtfrom a rootvite.config.ts(not fromtooling/and not from JSON files).liangmi()also locates the project from that file’s directory, so a config undertooling/would be treated as a workspace member and would not emit lint/fmt.Root
vite.config.tsis now the Vite+ tool config (liangmi()for Oxlint, Oxfmt, and Vitest). Nuxt still owns application Vite vianuxt.config.tsand ignores this file (B5004 is expected if it appears). The oldtooling/vite.config.tsVitest settings (tsconfig: 'core/tsconfig.json', node environment, token/syntax/port includes) moved into the same root file sovp testno longer needs--config.packis excluded (this is not a library). The presetstagedtask (vp check --fix) is excluded: this site’s check is lint + fmt +nuxt typecheck, not built-invp check.lint-stagedstays onsimple-git-hooks.Dependencies
@liangmi/vp-config@1.0.0in thedevcatalogoxlint-flat-config@0.4.0and@oxlint-flat-config/composer@0.3.1pulled transitivelytrustPolicyExclude(first publishes;no-downgradeotherwise blocks install)^24.21.0, pnpm 12.11.2)Scripts / hooks
lint/lint:fixvp lint --config .oxlintrc.json .vp lint/vp lint --fixfmt/fmt:checkvp fmt --config .oxfmtrc.json .vp fmt/vp fmt --checkchecknuxt typechecktest/tokens:test/syntax:test/ports:testvp test --config tooling/vite.config.tsvp test--configvp lint --fix+vp fmt(loadsvite.config.ts)Cached
ccheckis not wired: it runsvp check(Oxlint typecheck), which does not replacenuxt typecheckon this site.Vue / React
Vue is on (
vuein dependencies, plus.option({ vue: true, browser: true, node: true })). React is not enabled (react: false; no React rules in the resolved config).Ignores (preserved)
Lint:
vendor/**,content/**,**/generated/**,.agents/**(plus presetbin/**).Fmt: those plus
public/**,**/fixtures/**,docs/plans/**,AGENTS.md,pnpm-lock.yaml,skills-lock.json.Also kept lig fmt options: single quotes already from the preset, plus
quoteProps: 'consistent',singleAttributePerLine,htmlWhitespaceSensitivity: 'strict',trailingComma: 'all'. Import /package.jsonsorting from the preset is off so this PR does not reformat the tree.Overrides (infrastructure only)
The preset is stricter than the old correctness-only Oxlint JSON. Rather than rewriting app code:
typeAware/typeCheckoff so thetokensworkflow can lint without.nuxt.remove('liangmi/style')(hundreds ofcurly/ comment style hits)lig/compatturns off restriction/nursery rules that fire across the existing tree (import/extensions,node/no-sync,unicorn/no-array-sort, …)no-consoleallowed only under**/scripts/**Verification
Pre-commit lint-staged also ran successfully on this commit with the new
vp lint/vp fmtcommands.Remaining gaps
lig/compatcan be re-enabled in a follow-up that actually formats/fixes source.nuxt typecheck.docs/plans/**still mention.oxfmtrc.json(fmt-ignored on purpose).@froq/uipublish, osdash, and skills-pack are out of scope.