Repository navigation
chore(deps): lint with @uxfront/oxlint-config 0.2.0, with zero errors - #117
Merged
Merged
Conversation
…ules off 0.2.0 builds on Cloudflare's oxlint config. oxlint reads env and ignorePatterns only from the root config, so they are restated here. Each rule that fails turns off for now; the commits after this one fix its errors or keep it off with its reason. Co-authored-by: multica-agent <github@multica.ai>
…ntifier-case Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
…-string-raw Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
…space Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
…y/no-conditional-empty-object-spread Co-authored-by: multica-agent <github@multica.ai>
…-type-assertions Co-authored-by: multica-agent <github@multica.ai>
…o-instanceof Co-authored-by: multica-agent <github@multica.ai>
…omise-executor-return Co-authored-by: multica-agent <github@multica.ai>
…/no-array-filter-map Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
…ype-specifier-style Co-authored-by: multica-agent <github@multica.ai>
…tring-replace-all Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
…o-console Co-authored-by: multica-agent <github@multica.ai>
…-dictionary-type Co-authored-by: multica-agent <github@multica.ai>
…y/no-known-value-widening Co-authored-by: multica-agent <github@multica.ai>
…corn/consistent-function-scoping Co-authored-by: multica-agent <github@multica.ai>
…ty/no-unknown-returns Co-authored-by: multica-agent <github@multica.ai>
Most become a form that can't behave differently: a regex group that takes part in every match gets a default in its destructuring, an index inside its array gets a fallback, and a last item read after a length check is read once into a variable. Three changes are checks of their own, each with a test where it can be reached: pageByKey() throws when a key the standard gave out has no page, a checklist row with fewer cells than its header is an error rather than a skipped row, and the Dialog's and the Popover's handlers return when their element isn't there. Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
The toggle event arrives a task after the popover hides, so when it unmounts while open, onToggle runs once its ref is null. The early return added for no-non-null-assertion skipped the focus return there; it now only guards the reads of the element. Corrects the comments on the other two guards. Co-authored-by: multica-agent <github@multica.ai>
…cope no-instanceof to its files 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
The site now lints with
@uxfront/oxlint-config0.2.0, which builds on Cloudflare's oxlint config. It added 25 rules that failed here, about 1,200 errors in all, andpnpm lintnow passes with none.The first commit moves to 0.2.0 with every failing rule turned off, and each commit after it turns one rule back on and fixes its errors, so you can review a rule at a time. Readers see no change, so there's no changelog entry. Here's what changed:
envandignorePatternsonly from the root config, sooxlint.config.tsrestates them. Type-aware linting stays off.ifand loop body,Array<T>,import typestatements,replaceAll,Number.parseFloat,String.raw, sets for lookups and iterator helpers for filter-then-map. Lookup tables keyed by a runtime string, like each playground's code languages, becameMaps, and anonymous result types got names. Non-null assertions became forms that can't behave differently, like a default for a regex group that takes part in every match.pageByKey()throws when a key the standard gave out has no page, and a checklist row with fewer cells than its header is now an error rather than a row that's skipped without a word. The Popover gives focus back to its trigger when it unmounts while open, as before, now with a test, and two Combobox branches the tests didn't reach have one each.no-consolefor the reference components' development warnings and the scripts,quality/no-unknown-returns(slots) inapp/reference/,@nkzw/no-instanceofin the three reference files that tell elements apart, two rules in tests, one incontract.test.ts, andquality/no-chained-type-assertionsinDocsNavigation.vue, wheretv()loses the theme's types.<meta charset="utf-8">keeps its one-line exception, since the HTML standard asks for exactly that label.minimumReleaseAgeExclude. It adds@uxfront/oxlint-config@0.2.0, which was published on the same day.Checklist
feat(docs): add the focus guideline.pnpm check-typespasses. So dopnpm lint(0 errors),pnpm check-reference,pnpm test(3,209 tests),pnpm build,pnpm build:mcp,pnpm check-mcpandpnpm check-seo.pnpm dev. (No prose changes. Only the reference code blocks changed, andpnpm check-referencechecks them against the files.)pnpm build, thenpnpm lighthouse, still scores 100 in every category. (Every assertion inlighthouserc.json, 0.95 per category, passed.)