Repository navigation
Conversation
Add oxlint (pinned, with `npm run lint` failing on warnings) and fix everything it reports with the default rules: - examples/docusaurus.config.js didn't parse: the glob '**/drafts/**' inside the commented-out options block contains `*/`, which ended the block comment early. The block now uses line comments. - Remove unused imports, variables, parameters, catch bindings, and dead helpers (stub cleanup() functions with commented-out bodies, an unused mock, never-read `passed` counters in test-input-validation.js). - Drop unreachable fallback returns after try/catch blocks that always return, and replace `new Array(n).fill()` with `Array(n).fill()`. - Delete src/declarations.d.ts, which has been empty since the first commit. Also add oxfmt (pinned) with `format` and `format:check` scripts and a config that keeps the repo's single quotes and skips the test-docs fixtures; the formatting pass lands in its own commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mechanical: `npm run format` with the config from the previous commit. No behavior change; `npm test`, `npm run lint`, and the docs site build pass before and after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run `npm run lint` and `npm run format:check` in the CI test job, and list the formatting commit in .git-blame-ignore-revs so `git blame` (and GitHub's blame view) skips it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rachfop
added a commit
that referenced
this pull request
Oct 2, 2026
chore: add oxlint and oxfmt, fix findings, format the repo
rachfop
added a commit
that referenced
this pull request
Oct 2, 2026
chore: add oxlint and oxfmt, fix findings, format the repo
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.
Summary
Adds the Oxc linter and formatter, fixes everything the linter reports, formats the repo, and gates CI on both. Three commits, kept separate so the mechanical reformat can be skipped in
git blame:chore: add oxlint and fix its findings:oxlint1.86.0 andoxfmt0.71.0, pinned, withnpm run lint(fails on warnings),lint:fix,format, andformat:check. Fixes for the 110 default-rule findings:examples/docusaurus.config.jsdidn't parse: the glob'**/drafts/**'in the commented-out options block contains*/, which ended the block comment early. The block now uses line comments.cleanup()functions with commented-out bodies; an unused mock; never-readpassedcounters intest-input-validation.js; unreachable fallback returns; the emptysrc/declarations.d.ts.style: format the repo with oxfmt: mechanical.singleQuote: truekeeps the repo's existing quote style;test-docs/fixtures are excluded. Markdown changes are blank lines after headings, aligned tables, and quote style inside code fences; prose is untouched.ci: gate PRs on oxlint and oxfmt: lint and format checks in the CI test job, plus.git-blame-ignore-revslisting commit 2.Merge with a merge commit (not squash or rebase), so the SHA in
.git-blame-ignore-revsstays valid.Testing
npm test,npm run lint, andnpm run format:checkpass.