Skip to content

chore: migrate linting to Oxlint - #8057

Open
Sheraff wants to merge 1 commit into
mainfrom
chore/migrate-to-oxlint
Open

chore: migrate linting to Oxlint#8057
Sheraff wants to merge 1 commit into
mainfrom
chore/migrate-to-oxlint

Conversation

@Sheraff

@Sheraff Sheraff commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • replace the repository lint setup with a centralized, type-aware Oxlint configuration
  • rename package and Nx lint targets from test:eslint to test:lint
  • remove obsolete package ESLint configs and translate existing disable directives to Oxlint rule IDs
  • keep ESLint only where it is the product or integration under test, including the ESLint plugin e2e fixture

Performance

Full uncached 40-project lint run, with task dependencies excluded for a like-for-like comparison:

  • ESLint: 28.22s
  • Oxlint: 9.05s
  • 67.9% less wall time, or 3.12x faster

Validation

  • all 40 test:lint targets pass with zero errors
  • full unit suite passes for 34 projects and dependent tasks
  • type tests pass
  • formatting and git diff --check pass

Summary by CodeRabbit

  • Chores

    • Updated project-wide code quality checks to use a unified, faster linting workflow.
    • Standardized lint commands across packages and development tasks.
    • Improved lint coverage for TypeScript, imports, React, browser compatibility, and common correctness issues.
  • Documentation

    • Updated contributor and development guidance with the new lint command.
    • Refreshed workflow and verification instructions to match current project tooling.

@nx-cloud

nx-cloud Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit dee31e5

Command Status Duration Result
nx affected --targets=test:lint,test:unit,test:... ✅ Succeeded 11m 11s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1m 40s View ↗

☁️ Nx Cloud last updated this comment at 2026-08-12 21:07:00 UTC

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

2 package(s) bumped directly, 6 bumped as dependents.

🟩 Patch bumps

Package Version Reason
@tanstack/solid-router 1.170.25 → 1.170.26 Changeset
@tanstack/vue-router 1.170.24 → 1.170.25 Changeset
@tanstack/solid-start 1.168.42 → 1.168.43 Dependent
@tanstack/solid-start-client 1.168.24 → 1.168.25 Dependent
@tanstack/solid-start-server 1.167.31 → 1.167.32 Dependent
@tanstack/vue-start 1.168.41 → 1.168.42 Dependent
@tanstack/vue-start-client 1.167.27 → 1.167.28 Dependent
@tanstack/vue-start-server 1.167.31 → 1.167.32 Dependent

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedoxlint@​1.78.0991009196100
Addedoxlint-tsgolint@​7.0.20011001009794100

View full report

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The pull request replaces repository ESLint configuration with centralized Oxlint configuration, updates Nx and package lint commands, removes package-specific ESLint files, and renames suppression directives for Oxlint rule namespaces.

Changes

Oxlint migration

Layer / File(s) Summary
Central lint configuration
.oxlintrc.json, package.json
Adds Oxlint plugins, environments, type-aware options, correctness rules, React rules, test overrides, and React Server Components import restrictions. Adds Oxlint dependencies and removes ESLint-specific dependencies.
Task and package integration
nx.json, package.json, packages/*/package.json, e2e/*/package.json, AGENTS.md, CONTRIBUTING.md
Renames lint targets from test:eslint to test:lint and changes commands from ESLint to Oxlint. Nx inputs now track .oxlintrc.json.
Configuration cleanup and directives
eslint.config.js, packages/*/eslint.config.*, packages/*/src/*, packages/*/tests/*
Removes package-specific ESLint configurations and updates suppression directives to react, typescript, unused-vars, and related Oxlint namespaces.
TypeScript project scope
packages/eslint-plugin-*/tsconfig.json, packages/*/tests/*
Removes deleted ESLint configuration files from TypeScript includes and updates lint suppressions in type tests and generated-route fixtures.

Estimated code review effort: 3 (Moderate) | ~25 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 52.63% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: migrating repository linting from ESLint to Oxlint.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/migrate-to-oxlint

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Benchmarks

This pull request does not affect bundle size in any measured scenario.

@pkg-pr-new

pkg-pr-new Bot commented Aug 12, 2026

Copy link
Copy Markdown
More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/@tanstack/arktype-adapter@8057

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@8057

@tanstack/eslint-plugin-start

npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@8057

@tanstack/history

npm i https://pkg.pr.new/@tanstack/history@8057

@tanstack/nitro-v2-vite-plugin

npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@8057

@tanstack/react-router

npm i https://pkg.pr.new/@tanstack/react-router@8057

@tanstack/react-router-devtools

npm i https://pkg.pr.new/@tanstack/react-router-devtools@8057

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@8057

@tanstack/react-start

npm i https://pkg.pr.new/@tanstack/react-start@8057

@tanstack/react-start-client

npm i https://pkg.pr.new/@tanstack/react-start-client@8057

@tanstack/react-start-rsc

npm i https://pkg.pr.new/@tanstack/react-start-rsc@8057

@tanstack/react-start-server

npm i https://pkg.pr.new/@tanstack/react-start-server@8057

@tanstack/router-cli

npm i https://pkg.pr.new/@tanstack/router-cli@8057

@tanstack/router-core

npm i https://pkg.pr.new/@tanstack/router-core@8057

@tanstack/router-devtools

npm i https://pkg.pr.new/@tanstack/router-devtools@8057

@tanstack/router-devtools-core

npm i https://pkg.pr.new/@tanstack/router-devtools-core@8057

@tanstack/router-generator

npm i https://pkg.pr.new/@tanstack/router-generator@8057

@tanstack/router-plugin

npm i https://pkg.pr.new/@tanstack/router-plugin@8057

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@8057

@tanstack/router-utils

npm i https://pkg.pr.new/@tanstack/router-utils@8057

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/@tanstack/router-vite-plugin@8057

@tanstack/solid-router

npm i https://pkg.pr.new/@tanstack/solid-router@8057

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/@tanstack/solid-router-devtools@8057

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@8057

@tanstack/solid-start

npm i https://pkg.pr.new/@tanstack/solid-start@8057

@tanstack/solid-start-client

npm i https://pkg.pr.new/@tanstack/solid-start-client@8057

@tanstack/solid-start-server

npm i https://pkg.pr.new/@tanstack/solid-start-server@8057

@tanstack/start-client-core

npm i https://pkg.pr.new/@tanstack/start-client-core@8057

@tanstack/start-fn-stubs

npm i https://pkg.pr.new/@tanstack/start-fn-stubs@8057

@tanstack/start-plugin-core

npm i https://pkg.pr.new/@tanstack/start-plugin-core@8057

@tanstack/start-server-core

npm i https://pkg.pr.new/@tanstack/start-server-core@8057

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/@tanstack/start-static-server-functions@8057

@tanstack/start-storage-context

npm i https://pkg.pr.new/@tanstack/start-storage-context@8057

@tanstack/valibot-adapter

npm i https://pkg.pr.new/@tanstack/valibot-adapter@8057

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/@tanstack/virtual-file-routes@8057

@tanstack/vue-router

npm i https://pkg.pr.new/@tanstack/vue-router@8057

@tanstack/vue-router-devtools

npm i https://pkg.pr.new/@tanstack/vue-router-devtools@8057

@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@8057

@tanstack/vue-start

npm i https://pkg.pr.new/@tanstack/vue-start@8057

@tanstack/vue-start-client

npm i https://pkg.pr.new/@tanstack/vue-start-client@8057

@tanstack/vue-start-server

npm i https://pkg.pr.new/@tanstack/vue-start-server@8057

@tanstack/zod-adapter

npm i https://pkg.pr.new/@tanstack/zod-adapter@8057

commit: dee31e5

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.oxlintrc.json:
- Line 26: Update the rules configuration in .oxlintrc.json to enable the curly
rule with error severity and the all option, enforcing braces for every control
statement.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 10c5c68f-23f9-4647-9af7-99b094a0286c

📥 Commits

Reviewing files that changed from the base of the PR and between 3848503 and dee31e5.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (141)
  • .oxlintrc.json
  • AGENTS.md
  • CONTRIBUTING.md
  • e2e/e2e-utils/eslint.config.js
  • e2e/e2e-utils/package.json
  • e2e/eslint-plugin-start/package.json
  • eslint.config.js
  • nx.json
  • package.json
  • packages/arktype-adapter/eslint.config.js
  • packages/arktype-adapter/package.json
  • packages/eslint-plugin-router/eslint.config.js
  • packages/eslint-plugin-router/package.json
  • packages/eslint-plugin-router/tsconfig.json
  • packages/eslint-plugin-start/eslint.config.js
  • packages/eslint-plugin-start/package.json
  • packages/eslint-plugin-start/src/rules/no-async-client-component/no-async-client-component.rule.ts
  • packages/eslint-plugin-start/tsconfig.json
  • packages/history/eslint.config.js
  • packages/history/package.json
  • packages/nitro-v2-vite-plugin/eslint.config.js
  • packages/nitro-v2-vite-plugin/package.json
  • packages/react-router-devtools/eslint.config.js
  • packages/react-router-devtools/package.json
  • packages/react-router-ssr-query/eslint.config.js
  • packages/react-router-ssr-query/package.json
  • packages/react-router/eslint.config.ts
  • packages/react-router/package.json
  • packages/react-router/src/Match.tsx
  • packages/react-router/src/Matches.tsx
  • packages/react-router/src/Scripts.tsx
  • packages/react-router/src/Transitioner.tsx
  • packages/react-router/src/fileRoute.ts
  • packages/react-router/src/headContentUtils.tsx
  • packages/react-router/src/link.tsx
  • packages/react-router/src/not-found.tsx
  • packages/react-router/src/route.tsx
  • packages/react-router/src/useCanGoBack.ts
  • packages/react-router/src/useLocation.tsx
  • packages/react-router/src/useMatch.tsx
  • packages/react-router/src/useRouterState.tsx
  • packages/react-router/tests/route.test-d.tsx
  • packages/react-router/tests/router.test-d.tsx
  • packages/react-router/tests/useBlocker.test-d.tsx
  • packages/react-router/tests/useLoaderData.test-d.tsx
  • packages/react-router/tests/useMatch.test-d.tsx
  • packages/react-router/tests/useParams.test-d.tsx
  • packages/react-router/tests/useRouteContext.test-d.tsx
  • packages/react-router/tests/useSearch.test-d.tsx
  • packages/react-start-client/eslint.config.js
  • packages/react-start-client/package.json
  • packages/react-start-client/src/GenericHydrate.tsx
  • packages/react-start-client/src/Hydrate.tsx
  • packages/react-start-client/src/hydration/never.tsx
  • packages/react-start-client/src/hydration/visible.tsx
  • packages/react-start-rsc/eslint.config.js
  • packages/react-start-rsc/package.json
  • packages/react-start-rsc/src/ReplayableStream.ts
  • packages/react-start-rsc/src/createServerComponentFromStream.ts
  • packages/react-start-server/eslint.config.js
  • packages/react-start-server/package.json
  • packages/react-start/eslint.config.js
  • packages/router-cli/eslint.config.js
  • packages/router-cli/package.json
  • packages/router-core/eslint.config.js
  • packages/router-core/package.json
  • packages/router-core/src/utils.ts
  • packages/router-devtools-core/eslint.config.js
  • packages/router-devtools-core/package.json
  • packages/router-devtools-core/src/BaseTanStackRouterDevtoolsPanel.tsx
  • packages/router-devtools-core/src/Explorer.tsx
  • packages/router-devtools-core/src/FloatingTanStackRouterDevtools.tsx
  • packages/router-devtools-core/src/useLocalStorage.ts
  • packages/router-devtools-core/src/useMediaQuery.ts
  • packages/router-devtools-core/src/utils.tsx
  • packages/router-devtools/eslint.config.js
  • packages/router-devtools/package.json
  • packages/router-generator/eslint.config.js
  • packages/router-generator/package.json
  • packages/router-generator/src/utils.ts
  • packages/router-generator/tests/generator/types-disabled/routes/__root.tsx
  • packages/router-generator/tests/generator/types-disabled/routes/index.tsx
  • packages/router-generator/tests/generator/types-disabled/routes/posts.tsx
  • packages/router-generator/tests/generator/types-disabled/routes/posts/$postId.tsx
  • packages/router-generator/tests/generator/types-disabled/routes/users.$userId.tsx
  • packages/router-plugin/eslint.config.js
  • packages/router-plugin/package.json
  • packages/router-ssr-query-core/eslint.config.js
  • packages/router-ssr-query-core/package.json
  • packages/router-utils/eslint.config.js
  • packages/router-utils/package.json
  • packages/router-vite-plugin/eslint.config.js
  • packages/router-vite-plugin/package.json
  • packages/solid-router-devtools/eslint.config.js
  • packages/solid-router-devtools/package.json
  • packages/solid-router-ssr-query/eslint.config.js
  • packages/solid-router-ssr-query/package.json
  • packages/solid-router/eslint.config.ts
  • packages/solid-router/package.json
  • packages/solid-router/src/fileRoute.ts
  • packages/solid-start-client/eslint.config.js
  • packages/solid-start-client/package.json
  • packages/solid-start-client/src/GenericHydrate.tsx
  • packages/solid-start-server/eslint.config.js
  • packages/solid-start-server/package.json
  • packages/solid-start/eslint.config.js
  • packages/start-client-core/eslint.config.js
  • packages/start-client-core/package.json
  • packages/start-client-core/src/client-rpc/frame-decoder.ts
  • packages/start-client-core/src/client-rpc/serverFnFetcher.ts
  • packages/start-client-core/src/hydration/runtime.ts
  • packages/start-fn-stubs/eslint.config.js
  • packages/start-fn-stubs/package.json
  • packages/start-plugin-core/eslint.config.js
  • packages/start-plugin-core/package.json
  • packages/start-plugin-core/src/start-compiler/compiler.ts
  • packages/start-plugin-core/src/start-manifest-plugin/manifestBuilder.ts
  • packages/start-server-core/eslint.config.js
  • packages/start-server-core/package.json
  • packages/start-static-server-functions/eslint.config.js
  • packages/start-static-server-functions/package.json
  • packages/start-storage-context/eslint.config.js
  • packages/start-storage-context/package.json
  • packages/valibot-adapter/eslint.config.js
  • packages/valibot-adapter/package.json
  • packages/virtual-file-routes/eslint.config.js
  • packages/virtual-file-routes/package.json
  • packages/vue-router-devtools/eslint.config.js
  • packages/vue-router-devtools/package.json
  • packages/vue-router-ssr-query/eslint.config.ts
  • packages/vue-router-ssr-query/package.json
  • packages/vue-router/eslint.config.ts
  • packages/vue-router/package.json
  • packages/vue-router/src/fileRoute.ts
  • packages/vue-start-client/eslint.config.ts
  • packages/vue-start-client/package.json
  • packages/vue-start-server/eslint.config.ts
  • packages/vue-start-server/package.json
  • packages/vue-start/eslint.config.ts
  • packages/zod-adapter/eslint.config.js
  • packages/zod-adapter/package.json
💤 Files with no reviewable changes (44)
  • packages/solid-router-ssr-query/eslint.config.js
  • packages/router-generator/eslint.config.js
  • packages/vue-start/eslint.config.ts
  • packages/router-core/eslint.config.js
  • eslint.config.js
  • packages/router-ssr-query-core/eslint.config.js
  • packages/start-server-core/eslint.config.js
  • packages/start-fn-stubs/eslint.config.js
  • packages/zod-adapter/eslint.config.js
  • packages/virtual-file-routes/eslint.config.js
  • packages/react-router-devtools/eslint.config.js
  • packages/history/eslint.config.js
  • packages/start-client-core/eslint.config.js
  • packages/router-devtools/eslint.config.js
  • packages/eslint-plugin-router/eslint.config.js
  • packages/router-devtools-core/eslint.config.js
  • e2e/e2e-utils/eslint.config.js
  • packages/react-start-rsc/eslint.config.js
  • packages/arktype-adapter/eslint.config.js
  • packages/router-utils/eslint.config.js
  • packages/router-vite-plugin/eslint.config.js
  • packages/start-storage-context/eslint.config.js
  • packages/solid-start/eslint.config.js
  • packages/solid-router-devtools/eslint.config.js
  • packages/vue-router-ssr-query/eslint.config.ts
  • packages/solid-router/eslint.config.ts
  • packages/vue-start-server/eslint.config.ts
  • packages/vue-start-client/eslint.config.ts
  • packages/nitro-v2-vite-plugin/eslint.config.js
  • packages/start-plugin-core/eslint.config.js
  • packages/valibot-adapter/eslint.config.js
  • packages/eslint-plugin-start/eslint.config.js
  • packages/vue-router-devtools/eslint.config.js
  • packages/start-static-server-functions/eslint.config.js
  • packages/router-cli/eslint.config.js
  • packages/react-router-ssr-query/eslint.config.js
  • packages/vue-router/eslint.config.ts
  • packages/solid-start-client/eslint.config.js
  • packages/react-router/eslint.config.ts
  • packages/router-plugin/eslint.config.js
  • packages/react-start/eslint.config.js
  • packages/react-start-client/eslint.config.js
  • packages/solid-start-server/eslint.config.js
  • packages/react-start-server/eslint.config.js

Comment thread .oxlintrc.json
"typeAware": true,
"respectEslintDisableDirectives": true
},
"rules": {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/sh
set -eu

printf '%s\n' '--- .oxlintrc.json ---'
cat -n .oxlintrc.json | sed -n '1,150p'

printf '%s\n' '--- repository references to curly and Oxlint configuration ---'
rg -n --hidden -g '!node_modules' -g '!dist' -g '!build' \
  '"curly"|curly|oxlint|oxlintrc' . | sed -n '1,240p'

printf '%s\n' '--- local Oxlint metadata, if present ---'
find . -maxdepth 3 \( -iname '*oxlint*' -o -name 'package.json' \) -type f -print | sed -n '1,120p'

Repository: TanStack/router

Length of output: 21764


🌐 Web query:

Oxlint curly rule support configuration schema

💡 Result:

In Oxlint, the curly rule is configured using an array format that accepts up to two elements, mirroring the traditional ESLint configuration style [1][2]. It does not support a single configuration object with named properties [3]. The configuration schema for the curly rule is as follows: 1. The first element (required) is the enforcement type, which must be one of: "all", "multi", "multi-line", or "multi-or-nest" [1][2]. 2. The second element (optional) accepts the string "consistent", which enforces consistent brace usage within if-else chains [1][2]. Example configurations in your.oxlintrc.json or oxlint.config.ts file: // Require braces for multi-statement blocks "rules": { "curly": ["error", "multi"] } // Require braces for multi-line blocks, with consistent usage in if-else chains "rules": { "curly": ["error", "multi-line", "consistent"] } Oxlint maintains its own rule implementations in Rust [4][5], and the curly rule's behavior and accepted configuration options are defined by the underlying native implementation, not by passing a configuration object [2][3]. If you encounter documentation or suggestions indicating that a configuration object (e.g., { "curlyType": "..." }) is supported, please note that this is incorrect and such configurations will not function as expected [3].

Citations:


🏁 Script executed:

#!/bin/sh
set -eu

repo='oxc-project/oxc'
tag='oxlint_v1.78.0'

printf '%s\n' '--- exact-version curly rule source ---'
curl -fsSL "https://raw.githubusercontent.com/${repo}/${tag}/crates/oxc_linter/src/rules/eslint/curly.rs" \
  | sed -n '1,240p'

printf '%s\n' '--- exact-version rule registration references ---'
curl -fsSL "https://api.github.com/repos/${repo}/git/trees/${tag}?recursive=1" \
  | jq -r '.tree[]?.path' \
  | rg 'curly|configuration_schema' \
  | sed -n '1,120p'

printf '%s\n' '--- exact-version commit resolution ---'
curl -fsSL "https://api.github.com/repos/${repo}/git/ref/tags/${tag}" \
  | jq '{ref, object}'

Repository: TanStack/router

Length of output: 7918


🌐 Web query:

site:github.com/oxc-project/oxc "oxlint_v1.78.0" "curly"

💡 Result:

In oxlint, the curly rule corresponds to the standard ESLint rule of the same name, which enforces consistent use of curly braces for control statements [1][2]. As of oxlint v1.78.0, the rule configuration follows the ESLint-style format, using strings as arguments rather than an object-based configuration [3][4][5]. The rule supports the following configuration options: "all" (default): Requires curly braces for all control statements [1]. "multi": Requires curly braces only when the control statement block contains multiple lines [1]. "multi-line": Requires curly braces if the statement is multiline or if the body spans multiple lines [1]. "multi-or-nest": Requires curly braces for control statements that are multiline or nested [1]. Additionally, the "consistent" option can be added as a separate string argument to ensure consistency across statements (e.g., ["error", "multi-or-nest", "consistent"]) [4][5]. While there was previous confusion in the documentation regarding whether "consistent" should be an object property or a string argument, the project has clarified that it is implemented as a string argument to match ESLint's behavior [3][6][4]. If you are working with JSX, oxlint also provides the react/jsx-curly-brace-presence rule, which manages the presence of curly braces for JSX props and children [7].

Citations:


Enable the required curly rule.

Oxlint 1.78.0 supports this rule. Add "curly": ["error", "all"] to enforce braces for all control statements.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.oxlintrc.json at line 26, Update the rules configuration in .oxlintrc.json
to enable the curly rule with error severity and the all option, enforcing
braces for every control statement.

Source: Coding guidelines

@codspeed-hq

codspeed-hq Bot commented Aug 12, 2026

Copy link
Copy Markdown

Merging this PR will regress 9 benchmarks

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 11 improved benchmarks
❌ 9 regressed benchmarks
✅ 147 untouched benchmarks
⏩ 13 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Memory mem client unique-location-churn (react) 667.3 KB 751.5 KB -11.2%
Memory mem server peak-large-page (solid) 1 MB 1.1 MB -7.69%
Memory mem server error-paths redirect (react) 304.4 KB 322.6 KB -5.64%
Memory mem client interrupted-navigations (vue) 435.8 KB 461.4 KB -5.55%
Memory mem server error-paths error (react) 997.3 KB 1,052.9 KB -5.28%
Memory mem server server-fn-churn (vue) 340.7 KB 359.5 KB -5.22%
Memory mem client navigation-churn (vue) 1.5 MB 1.6 MB -4.57%
Memory mem client unique-location-churn (vue) 576.1 KB 599.9 KB -3.97%
Memory mem server error-paths unmatched (vue) 589.9 KB 608.6 KB -3.07%
Memory mem server error-paths not-found (solid) 911.2 KB 564.4 KB +61.46%
Memory mem server error-paths unmatched (react) 629.2 KB 396 KB +58.88%
Memory mem server error-paths redirect (vue) 648.5 KB 477.6 KB +35.78%
Memory mem server server-fn-churn (solid) 360.4 KB 330.2 KB +9.13%
Memory mem server request-churn (react) 710.7 KB 669 KB +6.23%
Memory mem server peak-large-page (vue) 1,027.3 KB 984.7 KB +4.33%
Memory mem server error-paths not-found (react) 402.7 KB 386.1 KB +4.29%
Memory mem client loader-data-retention (solid) 162.4 KB 156.3 KB +3.87%
Memory mem server aborted-requests (vue) 1,012.4 KB 976 KB +3.73%
Memory mem server error-paths redirect (solid) 392.3 KB 379.6 KB +3.33%
Memory mem server server-fn-churn (react) 393.7 KB 381.4 KB +3.21%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing chore/migrate-to-oxlint (dee31e5) with main (3848503)

Open in CodSpeed

Footnotes

  1. 13 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment