Repository navigation
chore: lint with the shared uxfront oxlint config - #111
Merged
Merged
Conversation
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>
🚀 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 deploymentPreview Deployments by commit
|
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>
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.
What changed
This adds oxlint and oxfmt with the shared
@uxfrontconfigs, as Unframework uses them, and aLintjob 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-revscan list. What this adds:oxlint@^1.94.0,oxfmt@^0.79.0,@uxfront/oxlint-config@^0.1.1and@uxfront/oxfmt-config@^0.1.1, as dev dependencies. The tools resolve to versions a week old, sominimumReleaseAgeExcludegains nothing. The lockfile only adds these packages: the other changed lines are peer hashes, sincevite-plugin-checkertakesoxlintas an optional peer.oxlint.config.tsextends@uxfront/oxlint-config/vue, without type-aware rules. It letsno-unused-varsskip a key destructured beside a rest element, which is how the code copies an object without that key. It turns off one rule each forDocsNavigation.vue, which keeps Nuxt UI's line as it is, and for the Combobox'sACCENTS, which matches combining marks on purpose. Each has its reason in the file.oxfmt.config.tsspreads@uxfront/oxfmt-configand leaves out the Markdown (MDC docs and the plugin's skills),app/reference/(the pages show it byte for byte) andplugins/schemas/(vendored).lint,lint:fix,formatandformat:check. TheLintjob runspnpm lint --format=github, so errors fail it and warnings only annotate the PR. It isn't a required check.AGENTS.mdandCONTRIBUTING.mdlistpnpm lintandpnpm format, andpnpm lintjoins the checks for any change.Select.test.tswalks theshownset directly rather than a copy, since deleting the current entry duringfor…ofis safe, andraw.test.tsusesendsWith(" Checklist"), which matches the same lines as/ Checklist$/. The Select page showsSelect.test.tsbyte 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 lintnow reports no errors.mainis merged in, with #109's@uxfront/layer-docs0.9.1, sopnpm check-typespasses too. The lockfile was rebuilt frommain's, and adds only the four new packages, their bindings andtinypool.Checklist
feat(docs): add the focus guideline.pnpm check-typespasses. (pnpm lint,pnpm check-referenceandpnpm testpass too.)pnpm dev. (Only one line in the Select page'sSelect.test.tscode block changes, to match the test.pnpm check-referencepasses.)pnpm build, thenpnpm lighthouse, still scores 100 in every category. (No homepage changes.)