Skip to content

oxc and prisma-lint changelog #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ description: The latest updates and changes to CodeRabbit.
sidebar_position: 13
---

## April 8, 2025

### New Static Analysis Tools

We've expanded our static analysis capabilities with two new tools:

- **OXC**: A high-performance JavaScript/TypeScript linter written in Rust.
- **Prisma Lint**: A dedicated linter for Prisma schema files to help enforce consistent conventions and best practices.

Both tools can be configured through their respective config files or through CodeRabbit's settings page. See our [tools documentation](https://docs.coderabbit.ai/tools/tools) for more details.

## April 1, 2025

### Code Graph Analysis
Expand Down
46 changes: 46 additions & 0 deletions docs/tools/oxc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
title: OXC
sidebar_label: OXC
description: CodeRabbit's guide to OXC (Oxidation Compiler).
---

```mdx-code-block
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';

<ProPlanNotice />
```

[OXC](https://github.com/oxc-project/oxc) is a collection of high-performance JavaScript/TypeScript tools written in Rust, including a linter that is 50-100x faster than ESLint.

## Files

OXC will run on files with the following extensions:

- `.js`
- `.jsx`
- `.ts`
- `.tsx`

## Configuration

OXC supports the following config files:

- `oxlint.json`
- `.oxlintrc`
- `.oxlintrc.json`
- `oxlint.config.json`

:::note

OXC does not require configuration to run. If no OXC config file is found and Biome is enabled, CodeRabbit will use Biome instead as OXC functionality is included within Biome. If Biome is not enabled or an OXC config file is found, CodeRabbit will use the default OXC config.

:::

## Rule Configuration

While OXC embraces convention over configuration, you can customize rules in your config file if needed. The config file should be in JSON format. See the [OXC documentation](https://oxc-project.github.io) for more details on available rules and configuration options.

## Links

- [OXC GitHub Repository](https://github.com/oxc-project/oxc)
- [OXC Website](https://oxc.rust-server.org)
9 changes: 5 additions & 4 deletions docs/tools/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ Remove extraneous f prefix
| GitLab Pipelines | [Pipeline Remediation][Pipeline] | CI/CD Failure Remediation |
| Go | [golangci-lint][golangci-lint] | Code Quality |
| Helm | [Checkov][Checkov] | Code Security |
| Javascript | [Biome][Biome] | Code Quality |
| Javascript | [Biome][Biome], [OXC][OXC] | Code Quality |
| JSON, JSONC | [Biome][Biome] | Code Quality |
| JSX | [Biome][Biome] | Code Quality |
| JSX | [Biome][Biome], [OXC][OXC] | Code Quality |
| Kotlin | [detekt][detekt] | Code Quality |
| Kubernetes | [Checkov][Checkov] | Code Security |
| Markdown | [markdownlint][markdownlint], [LanguageTool][LanguageTool] | Code Quality, Grammar Checking |
Expand All @@ -73,8 +73,8 @@ Remove extraneous f prefix
| SQL | [SQLFluff][SQLFluff] | Code Quality |
| Swift | [SwiftLint][SwiftLint] | Code Quality |
| Terraform | [Checkov][Checkov] | Code Security |
| TSX | [Biome][Biome] | Code Quality |
| Typescript | [Biome][Biome] | Code Quality |
| TSX | [Biome][Biome], [OXC][OXC] | Code Quality |
| Typescript | [Biome][Biome], [OXC][OXC] | Code Quality |
| YAML | [YAMLlint][YAMLlint] | Code Quality |
| Prisma | [Prisma Lint][PrismaLint] | Code Quality |

Expand Down Expand Up @@ -102,3 +102,4 @@ Remove extraneous f prefix
[Semgrep]: ./semgrep.md
[Pipeline]: ./pipeline-remediation.md
[PrismaLint]: ./prisma-lint.md
[OXC]: ./oxc.md