Skip to main content
Oxlint is a blazingly fast JavaScript/TypeScript linter written in Rust that is 50-100x faster than ESLint. CodeRabbit runs Oxlint v1.89.0.

Files

Oxlint will run on files with the following extensions:
  • .js
  • .mjs
  • .cjs
  • .jsx
  • .ts
  • .mts
  • .cts
  • .tsx
  • .vue
  • .astro
  • .svelte

Configuration

boolean
default:true
Enable Oxlint
.coderabbit.yaml
Oxlint supports the following configuration files:
  • .oxlintrc.json
  • oxlintrc.json
  • .oxlintrc
  • oxlint.json
CodeRabbit searches the repository recursively for the first supported config file outside common generated and dependency directories and GitHub Actions or CircleCI pipeline paths. It uses that config for every supported changed file in the run. Config files can use JSONC syntax, so comments and trailing commas are allowed. Relative paths in extends are resolved from the directory of the file that contains them.
CodeRabbit only runs Oxlint when an Oxlint config file is present and Biome is disabled.

Security policy and restrictions

CodeRabbit runs Oxlint in a sandbox. JavaScript plugins can run code from your repository, so before running Oxlint, CodeRabbit checks your config and every config it inherits through extends. If any of them has a non-empty jsPlugins array, at the top level or inside an overrides entry, CodeRabbit skips Oxlint. Oxlint runs normally when every config in the chain omits jsPlugins or leaves it empty. Oxlint’s built-in plugins setting works normally and doesn’t cause a skip.

When we skip Oxlint

CodeRabbit will skip running Oxlint when:
  • Oxlint is disabled in your CodeRabbit configuration.
  • No files in the pull request match the supported extensions.
  • Oxlint is already configured in GitHub Actions, GitLab CI, CircleCI, or Azure Pipelines.
  • No Oxlint config file is found.
  • Biome is enabled.
  • The config, or a config it inherits through extends, has a non-empty jsPlugins array at the top level or inside an overrides entry.
  • The config, or a config it inherits, can’t be read, isn’t valid JSONC, or isn’t a JSON object.
  • An extends value isn’t an array of non-empty paths, or it lists more than 256 entries.
  • An extends path points outside the repository or goes through a symlink.
  • The extends chain loops back on itself or includes more than 256 different config files.
  • Oxlint reports a configuration parsing, loading, or resolution failure on the first file. CodeRabbit then skips the remaining files.